Skip to content

Commit

Permalink
Doesn't display access token to user
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolsy Smith committed Apr 26, 2021
1 parent c59e8c0 commit 0854f3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orcidflask/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ def orcid_redirect():
# Get the user's ID from the SSO process
saml_id = session.get('samlNameId')
# TO DO: Save to data store
return render_template('orcid_success.html', saml_id=saml_id, orcid_auth=orcid_auth)
return render_template('orcid_success.html', saml_id=saml_id, orcid_auth={k: v for k,v in orcid_auth.items() if not k.endswith('token')})

0 comments on commit 0854f3a

Please sign in to comment.