Drupal Okta SSO Login with OAuth Client | Drupal Okta Login

Drupal Okta SSO integration will allow you to configure Single Sign-On ( SSO ) login between your Drupal site and Okta using OAuth/OpenID protocol. Drupal OAuth 2.0/OpenID connect module gives the ability to enable login using OAuth 2.0/OIDC Single Sign-On to Drupal Site. We provide the Drupal OAuth/OpenID Client module for Drupal 7, Drupal 8, and Drupal 9.

 

Here we will go through a guide to configure the SSO login between Drupal and Okta. By following these steps, users of Okta will be able to log into the Drupal site using their Okta credentials.

If you have any queries or if you need any sort of assistance in configuring the module, you can contact us at drupalsupport@xecurify.com. If you want, we can also schedule an online meeting to help you configure the Drupal OAuth & OpenID Connect Login – OAuth2 Client SSO Login module.

You can refer the steps to Configure Okta with the Drupal OAuth Client module

from the Video or Documentation given below


Step 1: Configure Okta as an OpenID Connect server

  • Go to https://developer.okta.com and sign up / login to your account.
  • Switch to Classic UI to configure app.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Login Admin
  • Click on Applications on the navigation bar on top.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Applications
  • Click on the Add Application button.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Applications Add Application
  • Choose Web as platform and click on Next.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta Create New Applications Web
  • You will be redirected to the app details page. Enter the Application name and enter Login redirect URI from Callback/redirect URL field in miniOrange OAuth Client module and click on Done.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta Application Settings Redirect URLs
  • Now, you will be given the Client Credentials. Scroll down to Client Credentials section. Copy Client ID and Client Secret, you will need them in the next step.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Client Credentials

Step 2: Configure miniOrange Drupal Oauth Client module.

  • Login in your Drupal site’s admin console and click on Extend/Module from the top navigation bar.
  • Select the Install new module option to install a new module on your Drupal site.
  • Drupal OAuth Client Install New Module
  • Upload the downloaded zip file of the Module and click on the Install button to continue.
  • Click on Extend/Modules from the top navigation bar again and scroll down till you find miniOrange OAuth Client. Click on the checkbox next to it and click on the Install button to enable the module.
  • Drupal OAuth Client Miniorange OAuth install
  • Now click on Configuration in Drupal dashboard then click on Drupal OAuth Client Configuration.
  • Drupal OAuth Configuration
  • In Configure OAuth Application:

    1. Select application from dropdown list.
    2. Copy the CallBack/Redirect URL and save it on your OAuth Provider.
    3. Fill in the following details:

      1. Custom app name
      2. Display Name
      3. Client ID which is application ID from Step 1.
      4. Client Secret which is key value from step 1.
      5. Scope
      6. Authorize Endpoint
      7. Access Token Endpoint
    4. Then click on save configuration
    5. Now click on the Test Configuration button. This Test Configuration link will give you the list of the attributes that are coming from your OAuth Provider.
  • Copy the email and the name attributes and save them under the Attribute & Role Mapping tab in the Email Attribute and Name Attribute text field respectively.
    Please note: This step is mandatory for your login to work. Click on the Save Configuration button to save your attribute configurations.
  • Drupal OAuth Client Save Configuration
  • Now logout and go to your Drupal 8 site’s login page, you will automatically find a Login with there. If you want to add your login link to other pages as well, please follow the steps given in the below image:
  • Drupal OAuth Client Instructions to add login link to different pages
  • If you want to check out our complete list of features and our various licensing plans, you can go to the Upgrade Plans tab in the module.
  • Congratulations, you have successfully configured the miniOrange Drupal OAuth Client module.
    Scope: openid email profile
    Authorize EndPoint: https://{yourOktaDomain}.com/oauth2/default/v1/authorize
    Access Token Endpoint: https://{yourOktaDomain}.com/oauth2/default/v1/token
    User Info Endpoint: https://{yourOktaDomain}.com/oauth2/default/v1/userinfo

Free Trial

If you are looking for anything which you cannot find, please drop us an email on info@xecurify.com

Step 1: Configure Okta as an OpenID Connect server

  • Go to https://developer.okta.com and sign up / login to your account.
  • Switch to Classic UI to configure app.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Login Admin
  • Click on Applications on the navigation bar on top.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Applications
  • Click on the Add Application button.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Applications Add Application
  • Choose Web as platform and click on Next.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta Create New Applications Web
  • You will be redirected to the app details page. Enter the Application name and enter Login redirect URI from Callback/redirect URL field in miniOrange OAuth Client module and click on Done.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta Application Settings Redirect URLs
  • Now, you will be given the Client Credentials. Scroll down to Client Credentials section. Copy Client ID and Client Secret, you will need them in the next step.
  • Okta SSO Login with Drupal OAuth 2.0 OIDC Single Sign-on Okta SSO Client Credentials

Step 2: Configure miniOrange Drupal Oauth Client module.

  • Login in your Drupal site’s admin console and click on Extend/Module from the top navigation bar.
  • Select the Install new module option to install a new module on your Drupal site.
  • Drupal OAuth Client Install New Module
  • Upload the downloaded zip file of the Module and click on the Install button to continue.
  • Click on Extend/Modules from the top navigation bar again and scroll down till you find miniOrange OAuth Client. Click on the checkbox next to it and click on the Install button to enable the module.
  • Drupal OAuth Client Miniorange OAuth install
  • Now click on Configuration in Drupal dashboard then click on Drupal OAuth Client Configuration.
  • Drupal OAuth Configuration
  • In Configure OAuth Application:

    1. Select application from dropdown list.
    2. Copy the CallBack/Redirect URL and save it on your OAuth Provider.
    3. Fill in the following details:

      1. Custom app name
      2. Display Name
      3. Client ID which is application ID from Step 1.
      4. Client Secret which is key value from step 1.
      5. Scope
      6. Authorize Endpoint
      7. Access Token Endpoint
    4. Then click on save configuration
    5. Now click on the Test Configuration button. This Test Configuration link will give you the list of the attributes that are coming from your OAuth Provider.
  • Copy the email and the name attributes and save them under the Attribute & Role Mapping tab in the Email Attribute and Name Attribute text field respectively.
    Please note: This step is mandatory for your login to work. Click on the Save Configuration button to save your attribute configurations.
  • Drupal OAuth Client Save Configuration
  • Now logout and go to your Drupal 8 site’s login page, you will automatically find a Login with there. If you want to add your login link to other pages as well, please follow the steps given in the below image:
  • Drupal OAuth Client Instructions to add login link to different pages
  • If you want to check out our complete list of features and our various licensing plans, you can go to the Upgrade Plans tab in the module.
  • Congratulations, you have successfully configured the miniOrange Drupal OAuth Client module.
    Scope: openid email profile
    Authorize EndPoint: https://{yourOktaDomain}.com/oauth2/default/v1/authorize
    Access Token Endpoint: https://{yourOktaDomain}.com/oauth2/default/v1/token

Free Trial

If you are looking for anything which you cannot find, please drop us an email on info@xecurify.com

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