Keycloak as IDP for WordPress SSO

Keycloak Single Sign-On(SSO) login for WordPress can be achieved by using our WordPress SAML Single Sign-On(SSO) plugin. Our plugin is compatible with all the SAML compliant Identity providers. Here we will go through a step-by-step guide to configure SSO login between Wordpress site and Keycloak by considering Keycloak as IdP(Identity provider) and WordPress as SP(Service provider).

miniorange img Pre-requisites : Download And Installation

To configure Keycloak with Wordpress, you will need to install the miniOrange WP SAML SP SSO plugin:


Step-by-step Video to Setup SSO between WordPress and Keycloak

Steps to configure Keycloak Single Sign-On (SSO) Login into WordPress(WP):


Step 1: Configure Keycloak as IDP

Follow the steps below to configure Keyclock as an Identity Provider

miniorange img Setup IDP

  • In the miniOrange SAML SP SSO plugin, navigate to Service Provider Metadata tab. Here, you can find the SP metadata such as SP Entity ID and ACS (AssertionConsumerService) URL which are required to configure the Identity Provider.
  • Wordpress Saml Upload Metadata - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • In your Keycloak admin console, select the realm that you want to use.
  • Click on Clients from the left menu and then click on Create button to create a new client/application.
  • Creating an APP - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Enter Client ID as the SP-EntityID / Issuer from the Service Provider Metadata and select SAML as the Client Protocol.
  • Add Client - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Now click on Save.
  • Configure the following in Keycloak:
  • Client ID The SP-EntityID / Issuer from the plugin's Service Provider Metadata tab
    Name Provide a name for this client
    Description Provide a description
    Name ID Format Email
    Root URL Leave empty or Base URL of Service Provider
    Valid Redirect URIs The ACS (Assertion Consumer Service) URL from the plugin's Service Provider Metadata tab
    Keycloak Login - Settings - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Under Fine Grain SAML Endpoint Configuration, configure the following:
  • Assertion Consumer Service POST Binding URL The ACS (Assertion Consumer Service) URL from the plugin's Service Provider Metadata tab
    Logout Service Redirect Binding URL (Optional) The Single Logout URL from the plugin's Service Provider Metadata tab
    Login SAML Endpoint Configuration - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Click on Save.

 Add Mappers

  • Go to Mappers tab and click on Add Builtin button.
  • Keycloak Login - Mappers Tab - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Check the boxes of X500 givenName, X500 surname and X500 email attributes.
  • Keycloak Login - Add built-in protocol mapper - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Click on Add Selected button. You will see the mappings as shown in the photo below.
  • Keycloak Login - Add Selected - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login

miniorange img Download setup file

  • Go to Realm Settings, click on SAML 2.0 Identity Provider Metadata mentioned as endpoints in the General Tab.
  • JBoss Keycloak SSO-7 - Keycloak SAML Single Sign-On(SSO) for WordPress - Keycloak SSO Login
  • Note the URL and keep it handy. Here you can find the information which will be used to configure the plugin.

You have now successfully configured Keycloak as IDP.

Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com