Search Results :

×

WordPress User Sync for Keycloak | Sync Users from WordPress to Keycloak

WordPress User Sync for Keycloak | Sync Users from WordPress to Keycloak


WP Remote User Sync plugin provides Automated user synchronization from WordPress to Keycloak. The WordPress User Sync plugin enables real-time user data synchronization.

The WordPress User Sync plugin allows you to automate user creation, update and delete user information from WordPress in real-time to 3rd party applications and automate user sync.

Pre-requisite

To configure User Sync with Keycloak, you will need to install the miniOrange WP to Remote User Sync plugin:

WordPress User Sync plugin allows you to automate user provisioning (create, update and delete user information) from WordPress in real-time to 3rd party applications and automate user sync for WordPress from different IDPs.[24/7 SUPPORT]

 Tested with 6.0.2

Steps to Configure Keycloak:

  • Go to your Keycloak realm (other than master) and select your client from the Clients tab (remote_sync in this case).

  • Keycloak Client - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Make sure to have the following Capability config enabled.

  • Capibility Config - WordPress User Sync Plugin | WordPress Keycloak Integration
  • In the Service accounts roles tab, Assign the initial required roles as shown below.

  • Initial Role Assignment - WordPress User Sync Plugin | WordPress Keycloak Integration Initial Roles - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Once you assign the initial roles, click on Assign role and then Filter by clients to assign additional roles which are required for API permissions.

  • Advanced Roles - WordPress User Sync Plugin | WordPress Keycloak Integration
    Advanced Roles Assignment - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Go to your Keycloak client and copy the Client ID from the Settings tab. Next go to the Credentials tab and copy the Client Secret.

  • Client ID - WordPress User Sync Plugin | WordPress Keycloak Integration Client Secret - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Further, the configuration also requires the OpenID Endpoint which is available in the OpenID Endpoint Configuration under Realm Settings as shown below.

  • OpenID Endpoints - WordPress User Sync Plugin | WordPress Keycloak Integration

Steps to Configure WP Remote Sync plugin

  • Activate the WP Remote Sync plugin and you’ll be directed to the main configuration page.
  • Click on Add New Remote Server.
  • Add Server - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Name the current configuration with a suitable name, then proceed to select Keycloak from the dropdown menu below.

  • Remote Sync Details - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Once you have provided the configuration with a suitable name, paste the Client ID, Client Secret and OpenID Endpoint Configuration in their respective fields.

  • Plugin Configuration - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Scroll down to and turn the Create User in Remote when User is created in WordPress toggle on and click on Save Configuration.

  • Save Configuration - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Go to the Attribute Mapping tab and select the appropriate attribute to be mapped, as shown below.

  • Keycloak Attributes WordPress Attributes
    username user_login
    email user_email
    firstName first_name
    lastName last_name
    password user_pass

    Attribute Mapping - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Save the configuration and click on Back to Remote Server List on the top and go to the Users section of WordPress.

  • Create User - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Now click on Add User to create a new user in WordPress. Once the user is created in WordPress, it will automatically be created in Keycloak.

  • Add User - WordPress User Sync Plugin | WordPress Keycloak Integration
  • Instead of creating if you want to sync any of your existing users, you can select the users you want to sync from the list and select Sync Users to Remote Server from the Bulk Actions dropdown.

  • Sync Users - WordPress User Sync Plugin | WordPress Keycloak Integration
  • To check if your users are synced into Keycloak, navigate to Keycloak (Keycloak realm) -> Users and you will see the users created there.

  • Keycloak Users - WordPress User Sync Plugin | WordPress Keycloak Integration

You have successfully configured User Sync for your Keycloak users using the WP Remote Sync plugin.

Conclusion

WordPress Keycloak Integration with WP Remote User Sync allows you to automate WordPress user sync from WordPress to Keycloak. With this setup guide you have integrated WordPress user sync plugin to automate user creation, update and delete user information from WordPress in real-time to Keycloak and automate Keycloak user sync.

Additional Resources

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