v26.4.22
v26.4.22
JWT bearer assertions with a cnf claim are rejected
The JWT bearer grant (urn:ietf:params:oauth:grant-type:jwt-bearer) now rejects an assertion that contains a cnf (confirmation)
claim with an invalid_grant error. A cnf claim binds the assertion to a key, and this grant can't verify that the client holds
that key. Before, Ory ignored the claim and accepted the assertion.
ID tokens and the userinfo response no longer include a cnf claim, even when the consent session or the token hook sets one in
the ID token claims.
Breaking changes
Token requests with an assertion that contains a cnf claim now fail. Configure the assertion issuer to leave out the cnf claim
from assertions it creates for Ory.
A cnf claim set in the consent session's id_token or by a token hook no longer reaches ID tokens or the userinfo response. If
a relying party reads that claim, send the data under a different claim name.
Default scope setting applies only to the Client Credentials grant
When oauth2.client_credentials.default_grant_allowed_scope is true, a Client Credentials grant request without the scope
parameter receives every scope of the OAuth2 client. The setting now applies only to the Client Credentials grant. JWT Bearer
grant and Resource Owner Password Credentials grant requests without scope receive no scopes. To request scopes with these
grants, include the scope parameter in the token request.