Skip to content

Commit

Permalink
Get session state in more robust way
Browse files Browse the repository at this point in the history
  • Loading branch information
zelima committed Sep 19, 2019
1 parent bcce249 commit 52d9b63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/ozwillo_pyoidc/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def callback(self):
action='read',
id=g.name))
try:
# Grab state from query parameter if session does not have it
session['state'] = session.get('state', request.params.get('state'))
userinfo, app_admin, app_user, access_token, id_token \
= client.callback(session['state'], request.GET)
session['access_token'] = access_token
Expand Down

0 comments on commit 52d9b63

Please sign in to comment.