mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 23:20:27 +00:00
Corrections to Azure auth service definition after refactor
This commit is contained in:
parent
52eb62a911
commit
7ac6529e0a
@ -11,6 +11,10 @@ def azure_oauth():
|
|||||||
def fetch_azure_token():
|
def fetch_azure_token():
|
||||||
return session.get('azure_token')
|
return session.get('azure_token')
|
||||||
|
|
||||||
|
def update_token(token):
|
||||||
|
session['azure_token'] = token
|
||||||
|
return token
|
||||||
|
|
||||||
azure = authlib_oauth_client.register(
|
azure = authlib_oauth_client.register(
|
||||||
'azure',
|
'azure',
|
||||||
client_id=Setting().get('azure_oauth_key'),
|
client_id=Setting().get('azure_oauth_key'),
|
||||||
@ -33,6 +37,6 @@ def azure_oauth():
|
|||||||
return 'Access denied: reason=%s error=%s' % (
|
return 'Access denied: reason=%s error=%s' % (
|
||||||
request.args['error'], request.args['error_description'])
|
request.args['error'], request.args['error_description'])
|
||||||
session['azure_token'] = (token)
|
session['azure_token'] = (token)
|
||||||
return redirect(url_for('.login', _external=True, _scheme='https'))
|
return redirect(url_for('index.login', _external=True, _scheme='https'))
|
||||||
|
|
||||||
return azure
|
return azure
|
||||||
|
Loading…
Reference in New Issue
Block a user