adding an /sso endpoint for testing.
This commit is contained in:
parent
4628834106
commit
0265db7146
|
@ -42,6 +42,10 @@ def sso_login(user_info):
|
||||||
# TODO: Get redirect URL from Shibboleth request header
|
# TODO: Get redirect URL from Shibboleth request header
|
||||||
_handle_login(user_info, redirect)
|
_handle_login(user_info, redirect)
|
||||||
|
|
||||||
|
@app.route('/sso')
|
||||||
|
def index():
|
||||||
|
return str(request.headers)
|
||||||
|
|
||||||
|
|
||||||
def _handle_login(user_info, redirect_url=app.config['FRONTEND_AUTH_CALLBACK']):
|
def _handle_login(user_info, redirect_url=app.config['FRONTEND_AUTH_CALLBACK']):
|
||||||
"""On successful login, adds user to database if the user is not already in the system,
|
"""On successful login, adds user to database if the user is not already in the system,
|
||||||
|
|
Loading…
Reference in New Issue