mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +00:00
Merge pull request #675 from eht16/fix_openid_update_token_typo
Fix token name in session for OIDC and GitHub authentication
This commit is contained in:
commit
65a59d2e59
@ -12,7 +12,7 @@ def github_oauth():
|
|||||||
return session.get('github_token')
|
return session.get('github_token')
|
||||||
|
|
||||||
def update_token(token):
|
def update_token(token):
|
||||||
session['google_token'] = token
|
session['github_token'] = token
|
||||||
return token
|
return token
|
||||||
|
|
||||||
github = authlib_oauth_client.register(
|
github = authlib_oauth_client.register(
|
||||||
|
@ -12,7 +12,7 @@ def oidc_oauth():
|
|||||||
return session.get('oidc_token')
|
return session.get('oidc_token')
|
||||||
|
|
||||||
def update_token(token):
|
def update_token(token):
|
||||||
session['google_token'] = token
|
session['oidc_token'] = token
|
||||||
return token
|
return token
|
||||||
|
|
||||||
oidc = authlib_oauth_client.register(
|
oidc = authlib_oauth_client.register(
|
||||||
|
Loading…
Reference in New Issue
Block a user