Problem statement
How to create a M2M application using the Management API?
Solution
Client applications can be created by using the Management API’s Create a client endpoint. To create an M2M application, the parameter app_type needs to be set to non_interactive. Here is a basic example with the attributes that need to be sent in the POST body;
POST /api/clients
{
"name": "NAME-FOR-M2M-APPLICATION",
"app_type": "non_interactive",
"is_first_party": true,
"oidc_conformant": true,
"jwt_configuration": { "alg": "RS256", "lifetime_in_seconds": 36000 },
"token_endpoint_auth_method": "client_secret_post",
"grant_types": ["client_credentials"]
}