I want to create multiple apps whenever a user registers. I am using the following OIDC endpoint. from the docs, I am using this command to do so.
curl --request POST \
--url 'https://MY-DOMAIN/oidc/register' \
--header 'content-type: application/json' \
--data '{"client_name":"My Dynamic Application","redirect_uris":
["https://application.example.com/callback", "https://application.example.com/callback2"]}'
This app has the type of generic
. Now I want to use client credentials flow to get tokens since I have client_id and client_secret. first of all, is this possible? or do I have to use any other flow.
When I try the client credentials flow, I get the following error message
Grant type ‘client_credentials’ not allowed for the client.
How should I approach this problem?