Skip to content

Commit

Permalink
Authenticating api requests (#326)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicola Vitucci <[email protected]>
  • Loading branch information
fiquick and nvitucci authored Mar 4, 2024
1 parent 2cc427f commit 262a877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ROOT/pages/platform/api/authentication.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
=====
====

Expand Down

0 comments on commit 262a877

Please sign in to comment.