Private
Public Access
1
0

some better parameterization of NK LinK

This commit is contained in:
Sander Roosendaal
2021-04-29 15:40:12 +02:00
parent 2e1f422827
commit 9746b9925f
3 changed files with 6 additions and 4 deletions

View File

@@ -29,7 +29,7 @@ import gzip
from rowsandall_app.settings import (
NK_CLIENT_ID, NK_REDIRECT_URI, NK_CLIENT_SECRET,
SITE_URL, NK_API_LOCATION,
SITE_URL, NK_API_LOCATION,NK_OAUTH_LOCATION,
UPLOAD_SERVICE_URL, UPLOAD_SERVICE_SECRET,
)
@@ -48,13 +48,13 @@ oauth_data = {
'client_id': NK_CLIENT_ID,
'client_secret': NK_CLIENT_SECRET,
'redirect_uri': NK_REDIRECT_URI,
'autorization_uri': "https://oauth-stage.nkrowlink.com/oauth/authorize",
'autorization_uri': NK_OAUTH_LOCATION+"/oauth/authorize",
'content_type': 'application/json',
'tokenname': 'nktoken',
'refreshtokenname': 'nkrefreshtoken',
'expirydatename': 'nktokenexpirydate',
'bearer_auth': True,
'base_url': "https://oauth-stage.nkrowlink.com/oauth/token",
'base_url': NK_OAUTH_LOCATION+"/oauth/token",
'scope':'read',
}