FR: Add trusted_audiences OIDC config for providers with multi-audience tokens (Zitadel) #2226
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
continuwuation/continuwuity#2226
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What new feature do you want to see? What problem does it solve?
Problem
Continuwuity's OIDC implementation rejects ID tokens that contain additional values in the
audclaim beyond the configuredclient_id. This breaks compatibility with OIDC providers that include extra audience entries by design.Error:
Affected provider: Zitadel - an open-source OIDC provider popular in self-hosted environments, with a special structure requiring applications to always be placed in a Project (a set of applications sharing roles/ACL/B2B invited organisations). Zitadel always includes the project ID alongside the client ID in the
audclaim for all project-scoped applications. This is by design and cannot currently be disabled.The same issue affects other tools that use the
openidconnect-rscrate with default audience validation, including Proxmox VE.Suggested Fix
The
openidconnect-rscrate'sIdTokenVerifiersupportsset_other_audience_verifier_fnto accept additional audience values. This can be used to add a config option to Continuwuity's OIDC (delegated auth) configuration, to add other trusted audiences to the id_token_verifier().Further reading
SSO_AUDIENCE_TRUSTEDenvironment variable (dani-garcia/vaultwarden#6650).Additional context