Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@ def _is_authorized(

if resp.status_code == 200:
return True
if resp.status_code == 401:
log.debug("Received 401 from Keycloak: %s", resp.text)
return False
if resp.status_code == 403:
return False
if resp.status_code == 400:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def test_refresh_user_expired(self, mock_token_expired, mock_get_keycloak_client
("status_code", "expected"),
[
[200, True],
[401, False],
[403, False],
],
)
Expand Down