Search Results :

×

Configure OneLogin Single Sign-On (SSO) with OAuth for WordPress

Set up Single Sign-On (SSO) on OneLogin using the OAuth & OpenID Connect Single Sign-On plugin for WordPress. Implementing OneLogin OAuth SSO allows users to securely log in to your websites and applications using a single set of OneLogin credentials.
In this setup, OneLogin acts as the OAuth Provider, while WordPress acts as the OAuth Client. OneLogin OAuth SSO for WordPress enables a seamless login experience between the two platforms, eliminating the need for users to remember multiple usernames and passwords.
The OneLogin OAuth SSO plugin also offers advanced features such as user profile attribute mapping, role mapping, and role-based access control for user profiles. Additionally, you can secure your entire WordPress site behind Single Sign-On (SSO). The OneLogin OAuth SSO for WordPress plugin enhances user authentication and secures the login process. Follow the step-by-step guide below to install and configure the plugin.

Explore Our SAML Single Sign-On Solution for WordPress Know more Open in new tab

  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a OAuth Single Sign On (SSO) Plugin for WordPress and click on Install Now.
  • Once installed click on Activate.

Configure OneLogin SSO (Single Sign-On) - Administration

  • You will be presented with the following screen. Hover on Applications and then click on Applications.
Configure OneLogin SSO (Single Sign-On) - Add Applications

  • Click on Add App button.
Configure OneLogin SSO (Single Sign-On) - Add App

  • You will be shown a search list. Search for "OIDC" (OpenID Connect) and click on the search result as shown below.
Configure OneLogin SSO (Single Sign-On) - Select OIDC App

  • You will be shown a configuration screen. Fill in the application name and other details as required, then click on Save.
Configure OneLogin SSO (Single Sign-On) - Application Configuration

  • You will be redirected to the app details page. Go to the Configuration tab and enter the Redirect URI from the miniOrange OAuth Client plugin, then click Save.
Configure OneLogin SSO (Single Sign-On) - Enter Redirect URL

  • Go to the SSO tab. There you will find the Client ID and Client Secret fields. Copy these credentials into the corresponding fields in the miniOrange OAuth Client plugin configuration.
Configure OneLogin SSO (Single Sign-On) - Client ID and Client Secret

Step 1.1: Assign the users to OneLogin SSO Application

  • Hover on the Users tab and click on the Users option from the menu.
Configure OneLogin SSO (Single Sign-On) - Go to Users

  • You will be shown the users list available on your OneLogin platform. Select a user you want to give access to your application.
Configure OneLogin SSO (Single Sign-On) - Select User

  • Now for that user, go to the Applications tab from the left menu and click on the blue + icon to add the application.
Configure OneLogin SSO (Single Sign-On) - Add Application to User

  • Select the application from the dropdown list for which you want to allow SSO for that user and click on Continue.
Configure OneLogin SSO (Single Sign-On) - Select Application

  • Complete the configuration and click on the Save button.
Configure OneLogin SSO (Single Sign-On) - Save Configuration

  • The application will be listed in the user profile as shown in the image below, and now this user can SSO into your WordPress site using their OneLogin credentials for this application.
Configure OneLogin SSO (Single Sign-On) - Application Assigned Successfully

In order to enable user authentication and authorization for end users with OneLogin OAuth SSO into WordPress with a single set of credentials, you have successfully configured OneLogin Identity Platform as an OAuth Provider. This solution guarantees an enhanced user experience and security.


  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
OneLogin Single Sign-On (SSO) OAuth - Add New Application

  • Choose your Application from the list of OAuth / OpenID Connect Providers, here OneLogin
OneLogin Single Sign-On (SSO) OAuth - Select Application

  • After selecting the provider copy the Callback URL which needs to be configured in OAuth Provider's SSO application Configuration.
  • Enter the Client Credentials like Client ID & Client Secret which you will get from the OneLogin SSO application.
  • Please refer the below table for configuring the scope & endpoints for OneLogin in the plugin.
  • Note and Contact Us - SSO between two WordPress sites

    Note: Once you create your OneLogin account, you'll find the Site URL, and you will need to add the same in the below endpoints.


    Scope: openid
    Authorize Endpoint: https://<site-url>.onelogin.com/oidc/2/auth
    Access Token Endpoint: https://<site-url>.onelogin.com/oidc/2/token
    Custom redirect URL after logout: [optional] https://<api-domain>/api/1/users/:id/logout
  • Click on the Next.
  • OneLogin Single Sign-On (SSO) OAuth - Client ID and Client Secret

    • Verify the configuration details and click on Finish to save the configuration.
    OneLogin Single Sign-On (SSO) OAuth - Finish Configuration

    You have successfully configured WordPress as OAuth Client for achieving OneLogin SSO (Single Sign-On) with WordPress for user authentication.

  • Go to Configure OAuth tab and search your application name to add a new client application into your website, here OneLogin.
OneLogin Single Sign-On (SSO) OAuth - Add New Application

  • Please refer the below table for configuring the scope & endpoints for OneLogin in the plugin. Click Next.
  • Note and Contact Us - SSO between two WordPress sites

    Note: Once you create your OneLogin account, you'll find the Site URL, and you will need to add the same in the below endpoints.


    Scope: openid
    Authorize Endpoint: https://<site-url>.onelogin.com/oidc/2/auth
    Access Token Endpoint: https://<site-url>.onelogin.com/oidc/2/token
    Custom redirect URL after logout: [optional] https://<api-domain>/api/1/users/:id/logout
OneLogin Single Sign-On (SSO) OAuth - Add Domain

  • Choose your Grant Type from the list of options & Click on Save Settings to save the configuration.
OneLogin Single Sign-On (SSO) OAuth - Add Grant Type

You have successfully configured WordPress as OAuth Client for achieving OneLogin SSO (Single Sign-On) with WordPress for user authentication.

  • User Attribute Mapping is mandatory for enabling users to successfully login into WordPress. We will be setting up user profile attributes for WordPress using below settings.

Finding user attributes:

  • Go to Configure OAuth tab. Scroll down and click on Test Configuration.
  • You will see all the values returned by your OAuth Provider to WordPress in a table. If you don't see value for First Name, Last Name, Email or Username, make the required settings in your OAuth Provider to return this information.
Configure OneLogin SSO (Single Sign-On) - Test Configuration

  • Once you see all the values in Test Configuration, go to Attribute / Role Mapping tab, you will get the list of attributes in the dropdowns.
Configure OneLogin SSO (Single Sign-On) - Attribute / Role Mapping


  • Click on "Test Configuration" and you will get the list of Attribute Names and Attribute Values that are sent by your OAuth provider.
  • From the Test Configuration window, map the Attribute Names in the Attribute Mapping section of the plugin. Refer to the screenshot for more details.
Configure OneLogin SSO (Single Sign-On) - Attribute Mapping

  • Enable Role Mapping: To enable Role Mapping, you need to map Group Name Attribute. Select the attribute name from the list of attributes which returns the roles from your provider application.
    Eg: Role
Configure OneLogin SSO (Single Sign-On) - Role Mapping

  • Assign WordPress role to the Provider role: Based on your provider application, you can allocate the WordPress role to your provider roles. It can be a student, teacher, administrator or any other role depending on your application. Add the provider roles under Group Attribute Value and assign the required WordPress role in front of it under WordPress Role.

    For example, in the below image, Teacher has been assigned the role of Administrator & Student is assigned the role of Subscriber.
Configure OneLogin SSO (Single Sign-On) - Role Mapping WordPress Roles

  • Once you save the mapping, the provider role will be assigned the WordPress administrator role after SSO.
    Example: As per the given example, Users with role 'teacher' will be added as Administrator in WordPress and 'student' will be added as Subscriber.

  • The settings in the Single Sign-On (SSO) Settings tab define the user experience for Single Sign-On (SSO). To add a OneLogin login widget on your WordPress page, you need to follow the below steps.
  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure OneLogin SSO (Single Sign-On) - WordPress Login Button Setting

  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure OneLogin SSO (Single Sign-On) - WordPress Login Button Setting

  • Open your WordPress page and you can see the OneLogin SSO login button there. You can test the OneLogin Single Sign-On (SSO) now.
  • Make sure the "Show on login page" option is enabled for your application. (Refer to the below image)
Configure OneLogin SSO (Single Sign-On) - Show On Login Page Option

  • Now, go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
  • You will see a OneLogin SSO login button there. Once you click the login button, you will be able to test the OneLogin Single Sign-On (SSO).
Configure OneLogin SSO (Single Sign-On) - Login Button


OneLogin Single Sign-On should now be successfully configured with OneLogin as the OAuth Provider and WordPress as the OAuth Client. OneLogin OAuth SSO should fulfill all your cloud security needs with features like attribute mapping, role mapping, support for various OAuth grant types, etc.



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!


ADFS_sso ×
Hello there!

Need Help? We are right here!

support