diff --git a/plugins/unity_integration.py b/plugins/unity_integration.py index 91466b37d0b7472bfadaba841025b5027b109b5d..e7f7208feb2578d040fc5e5247869b2de16094e6 100644 --- a/plugins/unity_integration.py +++ b/plugins/unity_integration.py @@ -44,6 +44,15 @@ class UnityIntegrationView(AppBuilderBaseView): first_name = user["given_name"] last_name = user["family_name"] admin_access = user.get('eflows:dlsAccess', False) + + log.debug("SSO user logging in...") + log.debug("sub : " + persistent_identifier) + log.debug("first name : " + first_name) + log.debug("last name : " + last_name) + log.debug("email : " + email) + log.debug("admin : " + admin_access) + log.debug("......................") + role = FAB_VIEWER_ROLE if admin_access: role = FAB_ADMIN_ROLE @@ -64,7 +73,7 @@ class UnityIntegrationView(AppBuilderBaseView): ) # login as that user login_user(fab_user, remember=False) - return redirect('/') + return redirect(url_for('home')) @unity.route('/logout') def logout():