From b421b9b38ad4e0bcd955aea8ed696cb5c41940a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 5 Mar 2020 17:07:13 +0100 Subject: [PATCH] Fix token name in session for OIDC and GitHub authentication --- powerdnsadmin/services/github.py | 2 +- powerdnsadmin/services/oidc.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/powerdnsadmin/services/github.py b/powerdnsadmin/services/github.py index fcfd172..cf615e8 100644 --- a/powerdnsadmin/services/github.py +++ b/powerdnsadmin/services/github.py @@ -12,7 +12,7 @@ def github_oauth(): return session.get('github_token') def update_token(token): - session['google_token'] = token + session['github_token'] = token return token github = authlib_oauth_client.register( diff --git a/powerdnsadmin/services/oidc.py b/powerdnsadmin/services/oidc.py index b298469..7e8172b 100644 --- a/powerdnsadmin/services/oidc.py +++ b/powerdnsadmin/services/oidc.py @@ -12,7 +12,7 @@ def oidc_oauth(): return session.get('oidc_token') def update_token(token): - session['google_token'] = token + session['oidc_token'] = token return token oidc = authlib_oauth_client.register(