correct scops
This commit is contained in:
parent
adf8913707
commit
1c42e3784a
1 changed files with 2 additions and 2 deletions
|
|
@ -33,9 +33,9 @@ def login_as_client_credentials():
|
|||
"grant_type": 'client_credentials',
|
||||
"scope": settings.OAUTH2_SCOPES,
|
||||
}
|
||||
auth = (settings.CLIENT_ID, settings.CLIENT_SECRET)
|
||||
auth = (settings.OAUTH2_CLIENT_ID, settings.OAUTH2_CLIENT_SECRET)
|
||||
|
||||
response = requests.post(f'{settings.BASE_OAUTH2_PROVIDER_PUBLIC_URL}/token/',
|
||||
response = requests.post(f'{settings.OAUTH2_PROVIDER_PUBLIC_URL}/token/',
|
||||
data=data,
|
||||
auth=auth)
|
||||
print(response.content)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue