Skip to content

KOMODO_OIDC_ALLOW_ADDITIONAL_AUDIENCES environment variable to allow an arbitrary list of audiences as long as client_id is present#1075

Closed
centja1 wants to merge 1 commit intomoghtech:2.0.0from
centja1:2.0.0-allow-additional-audiences
Closed

KOMODO_OIDC_ALLOW_ADDITIONAL_AUDIENCES environment variable to allow an arbitrary list of audiences as long as client_id is present#1075
centja1 wants to merge 1 commit intomoghtech:2.0.0from
centja1:2.0.0-allow-additional-audiences

Conversation

@centja1
Copy link
Copy Markdown

@centja1 centja1 commented Dec 30, 2025

When setting up Komodo with my IdP (Zitadel cloud), I realized Zitadel returns many audience entries depending on configured projects, authorizations, etc. It was effectively pointless to try and authorize each audience value since they may regularly and individually be added or removed from the token.

I added an environment variable to automatically trust any audience included in the token, AS LONG AS the client_id is one of them. My understanding of the OIDC spec is that a client MUST reject a token that does not include the client_id, but MAY reject a token with additional audiences.

There is no change to the logic of including additional audiences other than the fact that a "true" value for KOMODO_OIDC_ALLOW_ADDITIONAL_AUDIENCES will allow any audiences. A "false" (the default) value will continue to function as it does today

…allow an arbitrary list of audiences as long as client_id is present
@mbecker20 mbecker20 deleted the branch moghtech:2.0.0 March 24, 2026 12:50
@mbecker20 mbecker20 closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants