Lee MorrisL
ZITADEL2y ago
18 replies
Lee Morris

client_credentials with service user roles

Hi, can anyone tell me if you can have the roles for a service user returned in a client_credentials token? setting the scope has no effect other than when I set the project ID. This request returns me a basic JWT with none of the authorizations. Thanks

POST /oauth/v2/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Authorization: Basic bWFjaGluZTE6M09nM1ZpU3FQSm9XbGxYRTFzV1UwRXd0Qk1oc1lnY2VETWtKd2xHbmJjd2gyY3l2M2hXMGU1VFF1VVhhUmp6dQ==
Host: localhost:8080
Connection: close
Content-Length: 50

grant_type=client_credentials&scope=openid+profile
Was this page helpful?