Skip to content

!!! Check the authorized party of every token addressed to the client - #90

Merged
robertlemke merged 1 commit into
mainfrom
feature/azp-per-token
Oct 9, 2026
Merged

robertlemke merged 1 commit into
mainfrom
feature/azp-per-token

Conversation

@robertlemke

Copy link
Copy Markdown
Member

The azp check from #88 now applies to every token whose audience contains the client id of the service, instead of being switched off by the audience option. Access tokens for an API, which other clients obtained, stay unaffected, because their audience doesn't contain the client id. Without an audience option nothing changes.

This is a behaviour change for applications with an audience option: tokens addressed to the client with several audiences and no azp, or with the azp of another client, are now rejected.

Addresses: #81

The provider now checks the "azp" claim of every token whose audience
contains the client id of the service, also if the "audience" option
is set. Access tokens for an API, which other clients obtained, are
left alone, because their audience doesn't contain the client id.

Previously, the "audience" option switched the check off completely.
An application which set it, for example to accept identity tokens and
access tokens for its API, accepted identity tokens issued to another
client of the same tenant, as long as they also named this client as
an audience.

This is a behaviour change for applications with an "audience" option:
tokens addressed to the client with several audiences and no "azp", or
with the "azp" of another client, are now rejected.

Addresses: #81
@robertlemke
robertlemke force-pushed the feature/azp-per-token branch from 5f3d5ac to 81915a4 Compare October 9, 2026 11:15
@robertlemke robertlemke changed the title Check the authorized party of every token addressed to the client !!! Check the authorized party of every token addressed to the client Oct 9, 2026
@robertlemke
robertlemke merged commit 27d6ea4 into main Oct 9, 2026
12 checks passed
@robertlemke
robertlemke deleted the feature/azp-per-token branch October 9, 2026 11:19
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.

1 participant