I want to use client credentials to communicate between services and internal companies.
I would like the service requesting the token to be able to pass data that would become claims like the data in a SAML flow but without the cert, taking advantage of the OIDC simplicity.
Is there a way to pass data to the token endpoint and that become a custom claim that is part of the JWT?
If you have the ability to create custom Authorization Servers, you can set it up to include whatever custom claims you want. However, it doesn’t support getting arbitrary data from the incoming request and putting that in a token.
I am looking to implement similar thing with client credentials flow. A unique ID will be sent in request and that should be included as custom claim in the token.
Can you suggest any other approach for such requirement?