I want to implement "hydra client credentials flow "(server to server client credentials grant for clientId/ secret ) to get token.
My requirement is to put some custom details in client (during client registrations) and expecting those details in JWT token received post client authentication
In short , i want to add custom claims in JWT token for client credentials grant
please let me know how to achieve that, as far as i know its a single api call workflow to hydra to authenticate client and get token.
03/24/2022, 12:24 PM
I'm also interested in this future. Currently this is not possible but there is an open Issue for this. I already wanted to contribute to this but I couldn't find time.
03/26/2022, 12:30 PM
Thanks @User, can you please tell whatever im asking is as per oauth2 guidelines or not?
03/30/2022, 2:31 PM
In my understanding this is possible and the oauth2 standard describes the token claims can be extended with custom claims. But I'm not an expert. Maybe someone from the hydra team can clarify this (@User).