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

Commit 2af37f6

Browse files
committed
kwargs has to be changed before Endpoint init is run otherwise
the correct information will not appear in endpoint_info.
1 parent 9feb0b3 commit 2af37f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/oidcendpoint/oidc/session.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ class Session(Endpoint):
8181
}
8282

8383
def __init__(self, endpoint_context, **kwargs):
84+
_csi = kwargs.get('check_session_iframe')
85+
if _csi and not _csi.startswith("http"):
86+
kwargs['check_session_iframe'] = add_path(endpoint_context.issuer, _csi)
8487
Endpoint.__init__(self, endpoint_context, **kwargs)
85-
_csi = self.kwargs.get('check_session_iframe')
86-
if _csi:
87-
self.kwargs.setdefault(add_path(endpoint_context.issuer, _csi))
8888

8989
def do_back_channel_logout(self, cinfo, sub, sid):
9090
"""

0 commit comments

Comments
 (0)