简体   繁体   English

Keycloak-通过客户端获取所有用户

[英]Keycloak- get all users by client

I was investigating the Keycloak documentation .我正在调查 Keycloak 文档

I am not able to find one endpoint that I need.我无法找到我需要的一个端点。 In my Symfony project so far I have made to:到目前为止,在我的 Symfony 项目中,我已经做到了:

  1. get an access token获取访问令牌
  2. extract the access token提取访问令牌
  3. Use it to get userId if needed如果需要,使用它来获取 userId

What I could not find is an endpoint from which I could list users who have authorized a given clientId .我找不到一个端点,我可以从中列出已授权给定 clientId 的用户 Does that endpoint exists?该端点是否存在?

If not, what is the best approach to accomplish this?如果不是,那么实现这一目标的最佳方法是什么?

NOTE : We are still using Keycloak version 5.注意:我们仍在使用 Keycloak 版本 5。

What I could not find is an endpoint from which I could get all users by cliendId.我找不到一个端点,我可以通过 cliendId 从中获取所有用户。 Does that endpoint exists?该端点是否存在?

No, such endpoint does not exist because (in Keycloak) users are defined at the Realm Level, hence tight to a given realm, not to a given client.不,这样的端点不存在,因为(在 Keycloak 中)用户是在 Realm 级别定义的,因此严格到给定的 realm,而不是给定的客户端。 The clients are the conceptual representation of things such as applications that users of a certain realm can use to (for instance) request tokens.客户端是事物的概念表示,例如某个 realm 的用户可以用来(例如)请求令牌的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM