Unverified Commit 7ac6529e authored by Steve Shipway's avatar Steve Shipway Committed by GitHub
Browse files

Corrections to Azure auth service definition after refactor

parent 52eb62a9
......@@ -11,6 +11,10 @@ def azure_oauth():
def fetch_azure_token():
return session.get('azure_token')
def update_token(token):
session['azure_token'] = token
return token
azure = authlib_oauth_client.register(
......@@ -33,6 +37,6 @@ def azure_oauth():
return 'Access denied: reason=%s error=%s' % (
request.args['error'], request.args['error_description'])
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment