Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
btylerburton committed Dec 20, 2024
1 parent 7d12e2e commit ce6e952
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/saml2auth/tests/test_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
6 changes: 6 additions & 0 deletions ckanext/saml2auth/views/saml2auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce6e952

Please sign in to comment.