Client credentials
Used for machine-2-machine
When requesting an access token use grant_type: client_credentials.
HTTP POST is used for the token endpoint.
Example: http://127.0.0.1:8080/oidc/tenant1/token-endpointRequest parameters
These parameters must be posted as a part of the URL-encoded form values.
Parameter
Description
Mandatory
grant_type
Supported value is client_credentials.
scope
requested scopes (space-separated)
resource
one or more values, each identifying a target API (audience).
Multiple = multiple params, not space-separated.
Using the client_credentials grantRequest parameters
When using the token endpoint with the client_credentials grant (M2M) a couple of things needs to be in place:
In the discovery_meta section on the OIDC module add client_credentials:
"grant_types_supported": [
"authorization_code",
"refresh_token",
"client_credentials"
],In the Relying Party configuration add:
Add corresponding "client_credentials_pipe":
