adding a default url. And some debugging information to see if we hit he endpoint in the logs.

This commit is contained in:
Dan Funk 2020-05-14 15:07:05 -04:00
parent 490f95505e
commit f2c9fd5fc4
2 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@ FRONTEND_AUTH_CALLBACK = environ.get('FRONTEND_AUTH_CALLBACK', default="http://l
SWAGGER_AUTH_KEY = environ.get('SWAGGER_AUTH_KEY', default="SWAGGER")
#: Default attribute map for single signon.
SSO_LOGIN_URL = '/login'
SSO_ATTRIBUTE_MAP = {
'eppn': (False, 'eppn'), # dhf8r@virginia.edu
'uid': (True, 'uid'), # dhf8r

View File

@ -1,3 +1,5 @@
import json
import connexion
from flask import redirect, g
@ -33,6 +35,7 @@ def get_current_user():
@sso.login_handler
def sso_login(user_info):
app.logger.info("Login from Shibboleth happening. " + json.dump(user_info))
# TODO: Get redirect URL from Shibboleth request header
_handle_login(user_info)