From 262a877292206f92c3082d0e412611a795f6e324 Mon Sep 17 00:00:00 2001 From: Fi Quick <47183728+fiquick@users.noreply.github.com> Date: Mon, 4 Mar 2024 16:45:23 +0000 Subject: [PATCH] Authenticating api requests (#326) Co-authored-by: Nicola Vitucci --- modules/ROOT/pages/platform/api/authentication.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ROOT/pages/platform/api/authentication.adoc b/modules/ROOT/pages/platform/api/authentication.adoc index fb5855d07..694fcdead 100644 --- a/modules/ROOT/pages/platform/api/authentication.adoc +++ b/modules/ROOT/pages/platform/api/authentication.adoc @@ -106,13 +106,13 @@ response = requests.request( "https://api.neo4j.io/oauth/token", headers={"Content-Type": "application/x-www-form-urlencoded"}, data={"grant_type": "client_credentials"}, - auth=HTTPBasicAuth(client_id, client_secret), - timeout=10 + auth=HTTPBasicAuth(client_id, client_secret) <1> ) print(response.json()) ---- +<1> `client_id` and `client_secret` must be set to the values obtained from the Aura Console. ===== ====