Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 5469b04

Browse files
committed
Both the OP and the RP must be prepared to so session management for it to work.
1 parent 0214de0 commit 5469b04

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

flask_rp/views.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,17 @@ def finalize(op_hash, request_args):
127127
endpoints[endp] = v
128128

129129
kwargs = {}
130-
_chk_iframe = rp.service_context.provider_info.get('check_session_iframe')
131-
if _chk_iframe:
132-
kwargs['check_session_iframe'] = _chk_iframe
133130

134-
_status_iframe = rp.service_context.add_on.get('status_check')
135-
if _status_iframe:
136-
kwargs["status_check_iframe"] = _status_iframe
131+
# Do I support session status checking ?
132+
_status_check_info = rp.service_context.add_on.get('status_check')
133+
if _status_check_info:
134+
# Does the OP support session status checking ?
135+
_chk_iframe = rp.service_context.provider_info.get('check_session_iframe')
136+
if _chk_iframe:
137+
kwargs['check_session_iframe'] = _chk_iframe
138+
kwargs["status_check_iframe"] = _status_check_info['rp_iframe_path']
137139

140+
# Where to go if the user clicks on logout
138141
kwargs['logout_url'] = "{}/logout".format(rp.service_context.base_url)
139142

140143
return render_template('opresult.html', endpoints=endpoints,

0 commit comments

Comments
 (0)