keycloak-scim/server_admin/topics/clients/client-link.adoc

15 lines
802 B
Text
Raw Normal View History

2016-05-20 00:15:52 +00:00
2016-05-20 20:52:41 +00:00
=== Client Links
[role="_abstract"]
To link from one client to another, {project_name} provides a redirect endpoint: `/realms/realm_name/clients/\{client-id}/redirect`.
2016-05-20 00:15:52 +00:00
If a client accesses this endpoint using a `HTTP GET` request, {project_name} returns the configured base URL for the provided Client and Realm in the form of an `HTTP 307` (Temporary Redirect) in the response's `Location` header. As a result of this, a client needs only to know the Realm name and the Client ID to link to them. This indirection avoids hard-coding client base URLs.
2016-05-20 00:15:52 +00:00
As an example, given the realm `master` and the client-id `account`:
[source]
----
2016-05-20 20:52:41 +00:00
http://host:port/auth/realms/master/clients/account/redirect
2016-05-20 00:15:52 +00:00
----
This URL temporarily redirects to: http://host:port/auth/realms/master/account