Access Keycloak REST Admin API using a service account (client credential grant)

前端 未结 1 1719
遇见更好的自我
遇见更好的自我 2021-02-06 04:08

I like to manage keycloak from my own application:create user & clients, display users & client. As this is not a real user but a machine I would like to use a service a

相关标签:
1条回答
  • 2021-02-06 04:43

    Keycloak differentiates between the Scopes/Scope mapping & the roles management.

    The Scopes tab: you see in the question above only manages the roles that a client is allowed to request.

    For the client credential grant to work these roles must be assigned to the client in the "Service Account Roles" Tab.

    So in the end the client receive a token that is the intersection of both of those configurations.

    Source: https://www.keycloak.org/docs/latest/server_admin/index.html#_service_accounts

    0 讨论(0)
提交回复
热议问题