keycloak-scim/server_admin/topics/clients/saml/proc-creating-saml-client.adoc

96 lines
6.7 KiB
Text
Raw Normal View History

2021-04-19 14:08:04 +00:00
[id="proc-creating-saml-client_{context}"]
= Creating a SAML Client
[role="_abstract"]
2021-04-19 14:08:04 +00:00
{project_name} supports <<_saml,SAML 2.0>> for registered applications.
POST and Redirect bindings are supported. You can choose to require client signature validation. You can have the server sign and/or encrypt responses as well.
.Procedure
2020-11-13 14:09:23 +00:00
. Click *Clients* in the menu.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
. Click *Create* to go to the *Add Client* page.
2021-04-19 14:08:04 +00:00
+
.Add Client
image:{project_images}/add-client-saml.png[]
2020-11-11 16:00:15 +00:00
. Enter the *Client ID* of the client. This is often a URL and is the expected *issuer* value in SAML requests sent by the application.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
. Select *saml* in the *Client Protocol* drop down box.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
. Enter the *Client SAML Endpoint* URL. This URL is where you want the {project_name} server to send SAML requests and responses. Generally, applications have one URL for processing SAML requests. Multiple URLs can be set in the *Settings* tab of the client.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
. Click *Save*. This action creates the client and brings you to the *Settings* tab.
2021-04-19 14:08:04 +00:00
+
.Client Settings
image:{project_images}/client-settings-saml.png[]
+
The following list describes each setting:
+
2020-11-11 16:00:15 +00:00
*Client ID*:: The alpha-numeric ID string that is used in OIDC requests and in the {project_name} database to identify the client. This value must match the issuer value sent with AuthNRequests. {project_name} pulls the issuer from the Authn SAML request and match it to a client by this value.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Name*:: The name for the client in a {project_name} UI screen. To localize
2021-04-19 14:08:04 +00:00
the name, set up a replacement string value. For example, a string value such as $\{myapp}. See the link:{developerguide_link}[{developerguide_name}] for more information.
2020-11-11 16:00:15 +00:00
*Description*:: The description of the client. This setting can also be localized.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Enabled*:: When set to OFF, the client cannot request authentication.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Consent Required*:: When set to ON, users see a consent page that grants access to that application. The page also displays the metadata of the information that the client can access. If you have ever done a social login to Facebook, you often see a similar page. Red Hat Single Sign-On provides the same functionality.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Include AuthnStatement*:: SAML login responses may specify the authentication method used, such as password, as well as timestamps of the login and the session expiration.
2020-11-13 14:09:23 +00:00
*Include AuthnStatement* is enabled by default, so that the *AuthnStatement* element will be included in login responses. Setting this to OFF prevents clients from determining the maximum session length, which can create client sessions that do not expire.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Sign Documents*:: When set to ON, {project_name} signs the document using the realms private key.
2021-04-19 14:08:04 +00:00
*Optimize REDIRECT signing key lookup*:: When set to ON, the SAML protocol messages include the {project_name} native extension. This extension contains a hint with the signing key ID. The SP uses the extension for signature validation instead of attempting to validate the signature using keys.
2021-04-19 14:08:04 +00:00
+
This option applies to REDIRECT bindings where the signature is transferred in query parameters and this information is not found in the signature information. This is contrary to POST binding messages where key ID is always included in document signature.
+
2020-11-11 16:00:15 +00:00
This option is used when {project_name} server and adapter provide the IDP and SP. This option is only relevant when *Sign Documents* is set to ON.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Sign Assertions*:: The assertion is signed and embedded in the SAML XML Auth response.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Signature Algorithm*:: The algorithm used in signing SAML documents.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*SAML Signature Key Name*:: Signed SAML documents sent using POST binding contain the identification of the signing key in the *KeyName* element. This action can be controlled by the *SAML Signature Key Name* option. This option controls the contents of the *Keyname*.
2021-04-19 14:08:04 +00:00
+
--
2020-11-11 16:00:15 +00:00
* _KEY_ID_:: The *KeyName* contains the key ID. This option is the default option.
* _CERT_SUBJECT_:: The *KeyName* contains the subject from the certificate corresponding to the realm key. This option is expected by Microsoft Active Directory Federation Services.
* _NONE_:: The *KeyName* hint is completely omitted from the SAML message.
2021-04-19 14:08:04 +00:00
--
+
2020-11-11 16:00:15 +00:00
*Canonicalization Method*:: The canonicalization method for XML signatures.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Encrypt Assertions*:: Encrypts the assertions in SAML documents with the realms private key. The AES algorithm uses a key size of 128 bits.
2021-04-19 14:08:04 +00:00
2020-11-13 14:09:23 +00:00
*Client Signature Required*:: If *Client Signature Required* is enabled, documents coming from a client are expected to be signed. {project_name} validates this signature using the client public key or certificate set up in the *SAML Keys* tab.
2021-04-19 14:08:04 +00:00
2020-11-13 14:09:23 +00:00
*Force POST Binding*:: By default, {project_name} responds using the initial SAML binding of the original request. By enabling *Force POST Binding*, {project_name} responds using the SAML POST binding even if the original request used the redirect binding.
2021-04-19 14:08:04 +00:00
2020-11-13 14:09:23 +00:00
*Front Channel Logout*:: If *Front Channel Logout* is enabled, the application requires a browser redirect to perform a logout. For example, the application may require a cookie to be reset which could only be done via a redirect. If *Front Channel Logout* is disabled, {project_name} invokes a background SAML request to log out of the application.
2021-04-19 14:08:04 +00:00
2020-11-13 14:09:23 +00:00
*Force Name ID Format*:: If a request has a name ID policy, ignore it and use the value configured in the Admin Console under *Name ID Format*.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Name ID Format*:: The Name ID Format for the subject. This format is used if no name ID policy is specified in a request, or if the Force Name ID Format attribute is set to ON.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Root URL*:: When {project_name} uses a configured relative URL, this value is prepended to the URL.
2021-04-19 14:08:04 +00:00
2020-11-13 14:09:23 +00:00
*Valid Redirect URIs*:: Enter a URL pattern and click the + sign to add. Click the - sign to remove. Click *Save* to save these changes.
2021-04-19 14:08:04 +00:00
Wildcards values are allowed only at the end of a URL. For example, http://host.com/*$$.
This field is used when the exact SAML endpoints are not registered and {project_name} pulls the Assertion Consumer URL from a request.
2020-11-11 16:00:15 +00:00
*Base URL*:: If {project_name} needs to link to a client, this URL is used.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Master SAML Processing URL*:: This URL is used for all SAML requests and the response is directed to the SP. It is used as the Assertion Consumer Service URL and the Single Logout Service URL.
2021-04-19 14:08:04 +00:00
+
If login requests contain the Assertion Consumer Service URL then those login requests will take precedence. This URL must be validated by a registered Valid Redirect URI pattern.
2020-11-11 16:00:15 +00:00
*Assertion Consumer Service POST Binding URL*:: POST Binding URL for the Assertion Consumer Service.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Assertion Consumer Service Redirect Binding URL*:: Redirect Binding URL for the Assertion Consumer Service.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Logout Service POST Binding URL*:: POST Binding URL for the Logout Service.
2021-04-19 14:08:04 +00:00
2020-11-11 16:00:15 +00:00
*Logout Service Redirect Binding URL*:: Redirect Binding URL for the Logout Service.