From cb296bd5650d17950b24d724f0d8842c27bf7838 Mon Sep 17 00:00:00 2001 From: Taizo 'Tsa6' Simpson Date: Fri, 22 Sep 2017 15:58:10 -0400 Subject: [PATCH] =?UTF-8?q?Fixed=20OAuth=20options=20in=20settings=20?= =?UTF-8?q?=E2=80=94=20Auth=20header=20in=20str=20not=20bytes=20and=20clie?= =?UTF-8?q?nt=20id=20seperated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EpisodesCommunity/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EpisodesCommunity/settings.py b/EpisodesCommunity/settings.py index 01e0fac..56f9aa1 100644 --- a/EpisodesCommunity/settings.py +++ b/EpisodesCommunity/settings.py @@ -133,5 +133,6 @@ STATIC_URL = '/static/' 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')