Skip to content

Commit

Permalink
skip azp verify if configured that way
Browse files Browse the repository at this point in the history
  • Loading branch information
pitwegner authored Sep 13, 2024
1 parent 9706cb5 commit 98b615a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def get_auth_token_object(self, code: str, authentication_identifier: str, redir
@classmethod
def is_valid_azp(cls, authentication_identifier: str, azp: str | None) -> bool:
# not all open id token include an azp so only check if present
if azp is None:
if azp is None or not current_app.config["SPIFFWORKFLOW_BACKEND_OPEN_ID_VERIFY_AZP"]:
return True

valid_client_ids = [cls.client_id(authentication_identifier)]
Expand Down

0 comments on commit 98b615a

Please sign in to comment.