SAML authentication with Verify
IBM Security Verify can serve as a SAML 2.0 identity provider for Keycloak, enabling centralized user authentication and single sign-on capabilities for IBM® Cyber Fraud applications.
Switching to the cyberfraud realm in Keycloak
Access the Keycloak administration console and switch to the cyberfraud realm to configure LDAP user federation.
Before you begin
About this task
The Keycloak console URL and administrator credentials are stored in Red Hat OpenShift secrets. Before configuring LDAP, you must access the Keycloak console and ensure that you are working in the cyberfraud realm.
Procedure
Results
Configuring Verify as a SAML identity provider
Configure Verify as a SAML 2.0 identity provider for Keycloak to enable centralized authentication for IBM Cyber Fraud applications.
Before you begin
- Ensure you have read the top-level documentation on configuring SAML in Keycloak.
- Obtain administrative access to both Verify and Keycloak instances.
- Have your Verify tenant URL available; for example, https://uss-vpc01.verify.ibm.com/.
About this task
This procedure guides you through the complete configuration of Verify as a SAML identity provider in Keycloak, including metadata exchange, attribute mapping, and entitlements configuration.
Procedure
Results
Verify is now configured as a SAML identity provider for Keycloak. You can proceed to create attribute mappers in Keycloak to synchronize user attributes.
What to do next
After completing this configuration:
- Create attribute mappers in Keycloak to map Verify user attributes to Keycloak user attributes. See Creating Keycloak mappers for the IdP.
- Configure SAML logout to enable proper session termination. See Configuring SAML logout.
- Import Verify users into Keycloak. See Importing Verify users into Keycloak.
Creating Keycloak mappers for the IdP
Create attribute mappers in Keycloak to synchronize user attributes from the IdP SAML assertions to Keycloak user profiles.
Before you begin
- Complete the SAML identity provider configuration in Keycloak.
- Ensure the IdP is configured to send all known user attributes in the SAML assertion.
About this task
Keycloak mappers define how SAML attributes from the IdP are imported and stored in Keycloak user profiles. You must create six mappers to properly synchronize user information: Broker ID, Broker Username, Email, Username, First Name, and Last Name.
Procedure
Results
All six mappers are now configured. When users authenticate through the IdP, their attributes are automatically synchronized to their Keycloak user profiles.
What to do next
After creating the mappers:
- Verify that the SAML attribute names match those provided by the IdP. You can view available attributes in the IdP interface.
- Test the SAML authentication flow to ensure user attributes are properly synchronized.
Configuring SAML logout
Configure SAML logout to enable Verify to validate logout requests from Keycloak and properly terminate user sessions.
Before you begin
- Complete the Verify SAML identity provider configuration in Keycloak.
- Ensure you have administrative access to both Keycloak and Verify.
About this task
To enable SAML logout, Verify must validate that logout requests are not forged. This validation requires uploading Keycloak's signer certificate to Verify and configuring the custom application to reference it.
Procedure
Results
SAML logout is now configured. Verify can validate logout requests from Keycloak and properly terminate user sessions.
Importing Verify users into Keycloak
Import users from IBM Security Verify into Keycloak to make them discoverable in IBM Cyber Fraud. The current version of Keycloak does not include SCIM support, so users must be manually imported.
Before you begin
- Download and install the cfctl tool. For information about cfctl, see Installing the cfctl utility.
- Obtain the idp_alias value that you assigned when configuring the identity provider alias.
- Obtain your Verify account or tenant URL, for example, https://uss-vpc01.verify.ibm.com/.
- Obtain the Verify Client id and Client Secret.
Procedure
Results
- Only successfully imported users can be added to the
CyberfraudAccountcustom resource. - Only successfully imported users can be added to an account in the Cyberfraud user management portal.