OpenShift 3
Procedure
-
Click Identity Providers in the menu.
-
From the
Add providerlist, selectOpenshift.Add identity provider
-
Copy the value of Redirect URI to your clipboard.
-
Register your client using the
occommand-line tool.$ oc create -f <(echo ' kind: OAuthClient apiVersion: v1 metadata: name: kc-client (1) secret: "..." (2) redirectURIs: - "http://www.example.com/" (3) grantMethod: prompt (4) ')
| 1 | The name of your OAuth client. Passed as client_id request parameter when making requests to <openshift_master>/oauth/authorize and <openshift_master>/oauth/token. |
| 2 | The secret Keycloak uses for the client_secret request parameter. |
| 3 | The redirect_uri parameter specified in requests to <openshift_master>/oauth/authorize and <openshift_master>/oauth/token must be equal to (or prefixed by) one of the URIs in redirectURIs. You can obtain this from the Redirect URI field in the Identity Provider screen |
| 4 | The grantMethod Keycloak uses to determine the action when this client requests tokens but has not been granted access by the user.
|