From 0854f3afbcc937e7343ba0726f42b5518e22e809 Mon Sep 17 00:00:00 2001 From: Dolsy Smith Date: Mon, 26 Apr 2021 10:14:44 -0400 Subject: [PATCH] Doesn't display access token to user --- orcidflask/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orcidflask/views.py b/orcidflask/views.py index 15db578..0b53c67 100644 --- a/orcidflask/views.py +++ b/orcidflask/views.py @@ -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')})