Fixed OAuth options in settings — Auth header in str not bytes and client id seperated
This commit is contained in:
parent
8e8fb8e53f
commit
cb296bd565
@ -133,5 +133,6 @@ STATIC_URL = '/static/'
|
|||||||
|
|
||||||
|
|
||||||
AUTH_TOKEN_ENDPOINT = oauth_options.get('token_endpoint','https://icynet.eu/oauth/')
|
AUTH_TOKEN_ENDPOINT = oauth_options.get('token_endpoint','https://icynet.eu/oauth/')
|
||||||
AUTH_B64 = base64.b64encode(bytearray('%s:%s'%(oauth_options.get('client_id'),oauth_options.get('client_secret')),'utf-8'))
|
AUTH_CLIENT_ID = oauth_options.get('client_id')
|
||||||
|
AUTH_B64 = base64.b64encode(bytearray('%s:%s'%(AUTH_CLIENT_ID,oauth_options.get('client_secret')),'utf-8')).decode("utf-8")
|
||||||
AUTH_REDIRECT_URL = oauth_options.get('redirect_url')
|
AUTH_REDIRECT_URL = oauth_options.get('redirect_url')
|
||||||
|
Reference in New Issue
Block a user