Search Results :

×

nopCommerce OAuth Single Sign-On (SSO) with Okta as IDP

nopCommerce OAuth Single Sign-On (SSO) plugin gives the ability to enable OAuth Single Sign-On for your nopCommerce store using Okta as the OAuth Provider. Using Single Sign-On you can use only one password to access your nopCommerce store and services. Our module is compatible with all the OAuth-compliant identity providers. Here we will go through a step-by-step guide to configure Single Sign-On (SSO) between nopCommerce and Okta.

  • Download the nopCommerce OAuth Single Sign-On (SSO) module.
  • To install the plugin, login as admin into your nopCommerce store. In the admin dashboard, navigate to Configuration Tab >> Local plugins.
nopCommerce Configuration Tab

  • Click on the Upload plugin or theme button at the top right corner, then in the popup window, click Choose File, select the downloaded plugin ZIP file, and click Upload plugin or theme to proceed.
nopCommerce - Upload Plugin

nopCommerce - Upload Plugin popup window

  • After uploading the plugin, click on Restart Application to apply the changes. Once the application restarts, you will see the plugin listed below. Click on the Install button to install it, and then click Restart Application again to apply the changes.
nopCommerce - Restart application

nopCommerce - Install Plugin

Step by Step guide for nopCommerce OAuth SSO using Okta as Identity Provider.

  • After successful installation, locate the plugin in the list and click on the Configure button to proceed with the setup.
nopCommerce - Configure Plugin

  • On clicking Configure, you will be redirected to the license activation page, and you will receive a trial license key on your registered email.
  • If you have not received the license key on your provided email, use the Download License Key button in the plugin to download the license file.
nopCommerce - Download License Key

  • To activate the plugin, you can either:
    • Enter the license key received via email in the provided input field.
    • OR

    • Upload the license file that you downloaded using the button mentioned above.
nopCommerce - Activate the plugin

nopCommerce - Activate the plugin

  • Then, check the box "I have read the above conditions and I want to activate the middleware", and click Activate License button.
nopCommerce - Check Box

  • After successful license activation, the plugin dashboard will open as shown below.
  • Click on the Add New IDP button to configure a new Identity Provider.
nopCommerce Oauth- Add new IdP button

  • Under the Plugin Settings tab, select Okta as your Identity Provider from the list.
nopCommerce Oauth- Identity Provider List

  • After selecting your Identity Provider from the list, the Identity Provider Configuration page will open.
  • In the Identity Provider Settings tab, you will find the Callback URL under the Redirect URLs section.
  • Copy this URL and keep it handy, as it will be required while configuring the Identity Provider.
  • You can also copy the Logout Redirection URL from the Redirect URLs section for Identity Provider configuration.
nopCommerce Oauth- Callback URL

  • Go to the Okta Admin panel. Go to Applications -> Applications.
nopCommerce OAuth SSO using Okta as IDP - Add App Shortcut

  • You will get the following screen. Click on Create App Integration button.
nopCommerce OAuth SSO using Okta as IDP - Add Application

  • Select sign in method as the OIDC - OpenID Connect option and select Application type as web application, click on Next button.
nopCommerce OAuth SSO using Okta as IDP - Select Methods

nopCommerce OAuth SSO using Okta as IDP - callbackURL

  • Scroll down and you will see the Assignments section. Choose a controlled access option and uncheck the Enable immediate access with Federation Broker Mode option. Click on Save button.
nopCommerce OAuth SSO using Okta as IDP - Unchecked Box

  • Now you will get the Client credentials and okta domain. Copy these credentials in miniorange nopCommerce OAuth Plugin configuration on corresponding fields.
nopCommerce OAuth SSO using Okta as IDP - clientcredentials

  • Go to Applications tab and Click on your application.
nopCommerce OAuth SSO using Okta as IDP - Select App

  • Select the Assignments tab.
nopCommerce OAuth SSO using Okta as IDP - assignment

  • Click Assign and select Assign to People.
  • If you want to assign the application to multiple users at the same time then select Assign to Groups [If an app is assigned to a group then, the app will be assigned to all the people in that group]
nopCommerce OAuth SSO using Okta as IDP - select assign people

  • Click Assign next to a user name.
nopCommerce OAuth SSO using Okta as IDP - click on assign

  • Click Save and Go Back.
nopCommerce OAuth SSO using Okta as IDP - go back

  • Click Done.
nopCommerce OAuth SSO using Okta as IDP - Click on Done

  • In your Okta admin dashboard, navigate to Security -> API.
nopCommerce OAuth SSO using Okta as IDP - Navigate to API

  • Select your SSO application and click on the edit icon.
nopCommerce OAuth SSO using Okta as IDP - Click on Edit

  • Go to claims tab and select the ID token option.
nopCommerce OAuth SSO using Okta as IDP - Select ID Token

  • Click on Add claim button.
nopCommerce OAuth SSO using Okta as IDP - Add claims

  • Give a Name to your claim/attribute and Select ID Token from the token type dropdown. Now, enter the value user.$attribute in the Value field based on the attribute you want to receive. Keep other settings as default and click on Create button.
okta SSO OAuth/OpenID WordPress create-newclient login button setting

  • Follow the similar steps for all the attributes you want to see. You will have a list similar to the below one.
okta SSO OAuth/OpenID WordPress create-newclient login button setting

You have successfully configured Okta as OAuth Server (identity provider) for achieving SSO login into your nopCommerce application.

  • In the Identity Provider Settings tab, scroll down to the Provider Configuration section.
  • Under the Provider Configuration section, enter the IdP Name and provide the Client ID and Client Secret obtained from the Okta application.
nopCommerce Oauth- Client Id and Secret

  • Enter the required endpoints such as Authorization Endpoint, Token Endpoint, Resource Endpoint, and Logout Endpoint in the Endpoints section.
  • Enter the Endpoints mentioned in the below table
Authorize Endpoint: https://{yourOktaDomain}.com/oauth2/v1/authorize
Access Token Endpoint: https://{yourOktaDomain}.com/oauth2/v1/token
Resource Endpoint: https://{yourOktaDomain}.com/oauth2/v1/resource
  • Click on the Save Settings button to save your configuration.
nopCommerce Oauth- Endpoints

  • After entering the Client ID, Client Secret, and endpoint details, navigate back to the Dashboard. Click on the three dots (⋮) next to the configured Identity Provider and select Test Configuration.
nopCommerce Oauth - Test Configuration

  • On successful configuration, you will get attributes name and attribute values in the test configuration window.
nopCommerce Oauth - Successful Test Configuration

  • Under Attribute/Role Mapping tab, map the attribute names provided by your identity provider with your nopcommerce store attributes.
  • Click on Save button.
nopCommerce Oauth - Attribute Mapping

  • In the Attribute/Role Mapping tab, scroll down to the Default Role Mapping section and select the role from the Choose Role dropdown that you want to assign to users by default. Then, click on Save.
nopCommerce Oauth - Default role mapping

  • After saving the attribute mapping, navigate back to the Dashboard. Click on the three dots (⋮) next to the configured Identity Provider and select SSO Link.
  • The SSO link will be copied automatically, and a “Copied to clipboard” notification will be displayed.
nopCommerce Oauth - Copy SSO Link


 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