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

Commit 436070e

Browse files
committed
Allow 501 and 504 responses on a backchannel logout request.
1 parent 148de5e commit 436070e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/oidcendpoint/oidc/session.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,10 @@ def parse_request(self, request, auth=None, **kwargs):
366366
pass
367367
else:
368368
if (
369-
_ith.jws_header["alg"]
370-
not in self.endpoint_context.provider_info[
371-
"id_token_signing_alg_values_supported"
372-
]
369+
_ith.jws_header["alg"]
370+
not in self.endpoint_context.provider_info[
371+
"id_token_signing_alg_values_supported"
372+
]
373373
):
374374
raise JWSException("Unsupported signing algorithm")
375375

@@ -399,6 +399,8 @@ def do_verified_logout(self, sid, client_id, alla=False, **kwargs):
399399

400400
if res.status_code < 300:
401401
logger.info("Logged out from {}".format(_cid))
402+
elif res.status_code in [501, 504]:
403+
logger.info("Got a %s which is acceptable", res.status_code)
402404
elif res.status_code >= 400:
403405
logger.info("failed to logout from {}".format(_cid))
404406

0 commit comments

Comments
 (0)