8.4.4.3. 查询权限
要查询与资源关联的权限,请按如下所示发送 HTTP GET 请求:
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy?resource={resource_id}
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy?resource={resource_id}
要查询给定其名称的权限,请按如下所示发送 HTTP GET 请求:
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy?name=Any people manager
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy?name=Any people manager
要查询与特定范围关联的权限,请按如下所示发送 HTTP GET 请求:
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy?scope=read
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy?scope=read
要查询所有权限,请按如下所示发送 HTTP GET 请求:
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy
http://${host}:${port}/auth/realms/${realm}/authz/protection/uma-policy
查询服务器以获取权限时,使用 前 和 最大 结果的参数来限制结果。