Skip to content

Commit

Permalink
Ignore "broker" and "realm-management" client for PKCE and client aut…
Browse files Browse the repository at this point in the history
…h checks. Closes #27
  • Loading branch information
malexmave committed Oct 1, 2024
1 parent fdc5079 commit b4c7ed8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ def should_consider_client(self, client) -> bool:
and not client.is_realm_specific_client()
and client.is_oidc_client()
and not client.is_public()
# Ignore broker and realm-management - they show up as having the standard
# flow enabled, but don't actually have it, according to the UI. They are
# also lacking redirect URIs and other relevant settings. See issue #27 on
# GitHub.
and client.get_name() not in ["broker", "realm-management"]
)

def client_does_not_use_mtls_or_jwt_auth(self, client) -> bool:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ def should_consider_client(self, client) -> bool:
and not client.is_realm_specific_client()
and (not client.is_public())
and client.has_standard_flow_enabled()
# Ignore broker and realm-management - they show up as having the standard
# flow enabled, but don't actually have it, according to the UI. They are
# also lacking redirect URIs and other relevant settings. See issue #27 on
# GitHub.
and client.get_name() not in ["broker", "realm-management"]
)

def client_does_not_enforce_pkce(self, client) -> bool:
Expand Down

0 comments on commit b4c7ed8

Please sign in to comment.