Skip to content

Commit

Permalink
Removed stray print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolsy Smith committed Apr 27, 2021
1 parent 0854f3a commit be3ed95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion orcidflask/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def index():
attributes, paint_logout = get_attributes(session)

print('Errors: ', errors)
print('Session: ', session)

return render_template(
'index.html',
Expand Down
2 changes: 1 addition & 1 deletion saml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_metadata_from_session(session):
# SAML attribute names
attr_names = ['samlNameId', 'samlSessionIndex', 'samlNameIdFormat', 'samlNameIdNameQualifier', 'samlNameIdSPNameQualifier']
# parameter names used by the python3-saml auth object
keys = ['name_id', 'session_index', 'name_id_format', 'nq', 'spqn']
keys = ['name_id', 'session_index', 'name_id_format', 'nq', 'spnq']
metadata_dict = {key: session.get(attr_name) for (key, attr_name) in zip(keys, attr_names)}
return metadata_dict

Expand Down

0 comments on commit be3ed95

Please sign in to comment.