Skip to content

Commit

Permalink
fix: Change get admin token from get to post method
Browse files Browse the repository at this point in the history
  • Loading branch information
antidodo committed Apr 23, 2024
1 parent 8c20de3 commit 4b2e897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def _get_keycloak_admin_token() -> str:
"client_id": keycloak_admin_client_id,
"client_secret": keycloak_admin_client_secret
}
response = requests.get(url_admin_access_token, data=data)
response = requests.post(url_admin_access_token, data=data)
response.raise_for_status()
print('Admin token:', response.json()['access_token'])

Expand Down

0 comments on commit 4b2e897

Please sign in to comment.