Skip to content

Conversation

@ajgarlag
Copy link
Contributor

@ajgarlag ajgarlag commented Jan 21, 2025

In league/server-bundle version 0.8, when the client_credentials
grant is used, the sub claim of the JWT is an empty string, but in
version 0.9 is filled with the client ID.

We override the getSubjectIdentifier of the AccessToken entity to
return an empty string again when the client_credentials grant is used.

Fix #207

In `league/server-bundle` version `0.8`, when the client_credentials
grant is used, the `sub` claim of the JWT is an empty string, but in
version `0.9` is filled with the client ID.

We override the `getSubjectIdentifier` of the AccessToken entity to
return an empty string again when the client_credentials grant is used.
@ajgarlag ajgarlag force-pushed the fix-client-credentials-1 branch from f1a1bda to 017ad9d Compare January 21, 2025 08:59
@ajgarlag ajgarlag changed the title Fix client credentials Fix client credentials overriding getSubjectIdentifier Jan 21, 2025
@chalasr
Copy link
Member

chalasr commented Feb 1, 2025

Closing in favor of #209

@chalasr chalasr closed this Feb 1, 2025
@ajgarlag ajgarlag deleted the fix-client-credentials-1 branch March 13, 2025 13:56
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.

Apis with client_credentilas token: bad credentials response.

2 participants