10.2. Red Hat build of Keycloak Representations
默认
客户端注册提供程序可用于创建、检索、更新和删除客户端。它使用红帽构建的 Keycloak Client Representation 格式,它提供对配置客户端的支持,就像通过管理控制台配置客户端一样,包括配置协议映射程序。
要创建客户端,请创建一个 Client Representation (JSON),然后对 /realms/<realm>/clients-registrations/default
执行 HTTP POST 请求。
它将返回一个包括注册访问令牌的 Client Representation。如果要检索配置,请稍后更新或删除客户端,您应该在某个地方保存注册访问令牌。
要检索 Client Representation,请执行对 /realms/<realm>/clients-registrations/default/<client id>
的 HTTP GET 请求。
它还会返回一个新的注册访问令牌。
要更新 Client Representation,请执行带有更新的 Client Representation to: /realms/<realm>/clients-registrations/default/<client id
> 的 HTTP PUT 请求。
它还会返回一个新的注册访问令牌。
要删除 Client Representation 执行 HTTP DELETE 请求: /realms/<realm>/clients-registrations/default/<client id>