From ce6e952a4f714f6c3393e1f3a72779cb435d1f18 Mon Sep 17 00:00:00 2001 From: Tyler Burton Date: Fri, 20 Dec 2024 17:22:26 -0600 Subject: [PATCH] more logs --- ckanext/saml2auth/tests/test_interface.py | 2 +- ckanext/saml2auth/views/saml2auth.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ckanext/saml2auth/tests/test_interface.py b/ckanext/saml2auth/tests/test_interface.py index 7ce2f22..0717546 100644 --- a/ckanext/saml2auth/tests/test_interface.py +++ b/ckanext/saml2auth/tests/test_interface.py @@ -38,7 +38,7 @@ class ExampleISaml2AuthPlugin(plugins.SingletonPlugin): plugins.implements(ISaml2Auth, inherit=True) def __init__(self, *args, **kwargs): - + self.name = 'ckanext-saml2auth' self.calls = defaultdict(int) def before_saml2_user_update(self, user_dict, saml_attributes): diff --git a/ckanext/saml2auth/views/saml2auth.py b/ckanext/saml2auth/views/saml2auth.py index 36a6c0f..86049cc 100644 --- a/ckanext/saml2auth/views/saml2auth.py +++ b/ckanext/saml2auth/views/saml2auth.py @@ -248,6 +248,12 @@ def acs(): else: full_name = u'{} {}'.format(email.split('@')[0], email.split('@')[1]) + print(">>>>>>") + print(f">>email {email}") + print(f">>saml_id {saml_id}") + print(f">>full_name {full_name}") + print(f">> auth_response {auth_response}") + print(">>>>>>") g.user = process_user(email, saml_id, full_name, auth_response.ava) # Check if the authenticated user email is in given list of emails