Fixed OAuth options in settings — Auth header in str not bytes and client id seperated

This commit is contained in:
Taizo 'Tsa6' Simpson 2017-09-22 15:58:10 -04:00
parent 8e8fb8e53f
commit cb296bd565

View File

@ -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')