ZITADELZZITADEL
Powered by
Lee MorrisL
ZITADEL•2y 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
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
ZITADEL banner
ZITADELJoin
ZITADEL - Identity infrastructure, simplified for you.
4,374Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

client_credentials issue
hamatamnaHhamatamna / questions-help-bugs
4mo ago
Token Introspection with service user
ICSharpIICSharp / questions-help-bugs
12mo ago