Search Results :

×

ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP


ASP.NET OAuth Single Sign-On (SSO) module gives the ability to enable OAuth Single Sign-On for your ASP.NET applications. Using Single Sign-On you can use only one password to access your ASP.NET application 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 ASP.NET and Shopify considering Shopify as an OAuth provider.

Pre-requisites: Download And Installation

  • Download miniOrange ASP.NET OAuth 2.0 Module.
  • For Setting up the connector, extract the asp-net-oauth-sso-module.zip, you will find a DLL file miniorange-oauth-sso.dll, a configuration file oauthsso.config and a integration.md file which contain the steps for adding the module into your application.
  • Add miniorange-oauth-sso.dll in bin folder (where your other DLL files exists) for your application.
  • Register miniorangeoauthsso module in your application according to the provided steps in the integration.md file.
  • Add the provided configuration file oauthsso.config in the root directory for your application.
  • After integration open browser and browse the connector dashboard with URL below:
    https:// <your-application-base-url>/?ssoaction=config
  • If it pop up the registration page or login page, you have successfully added the miniOrange oauth sso connector for your application.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - register with miniorange
  • Register or Login for configuring the connector.

Steps to configure ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP

1. Configure Shopify as identity provider

  • Go to your shopify store, click on Apps tab and select Store as IDP application.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - select-app
  • Click on the Setup Application in the left navigation bar.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - setup-app
  • From the left navigation bar select Apps and click on Add Application.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Add New Application
  • Navigate to OAuth/OIDC tab and select OpenID Connect to configure ASP.NET as service provider.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Select service provider
  • In the Add Application Section enter the values by refering the below table.
  • Client Name Choose an appropriate name according to your choice.
    Description Add appropriate description according to your choice.
    Group Name DEFAULT
    Policy Name ASP.NET
    Login Method Password
    ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Enter Redirect URL and Client Name ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Enter Policy Name and Choose Login Type
  • Click on Save to save the configurations.
  • After saving the application, hover on Select and then click on Edit of the configured application.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - edit option
  • You will get the Client ID, Client Secret, Endpoints and Scopes. Keep these values handy as you will need them later.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - keep endpoints handy
  • Now, from the left navigation bar go to the Apps and click on Go back to store from the top right side.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - go back store
  • Enter primary domain name of your Shopify Store (remove "https:" and slashes) and click on Save.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Enter Domain Name

    You have successfully configured ASP.NET application in Shopify store.

2. Configure ASP.NET application as service provider

  • After configuring your OAuth provider, it will provide you with Client ID, Client Secret, Authorize Endpoint, Access Token Endpoint and Get User Info Endpoint. Configure these values under respective fields.
  • Fill all the required details and click on Save Configuration.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP -Save configuration

3. Testing OAuth SSO

  • After saving configuration, click on the Test Configuration to verify if you have configured correctly.
  • On successful configuration, you will get Attributes Name and Attribute Values on Test Configuration window. The below screenshot shows a successful result.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Test configuration

4. Attribute Mapping

  • Map Attribute Names provided by your OAuth Server with your ASP.NET application Attributes given under Attribute Mapping Section and click on Save Attribute Mapping.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Attribute Mapping
  • Note: All the mapped attributes will be stored in the session so that you can access them in your application.

5. Integration Code

  • You can find the integration code in Integration Code tab in the connector. Just copy-paste that code snippet wherever you want to access the user attributes.
  • ASP.NET OAuth Single Sign-On (SSO) using Shopify as IDP - Integration code

6. Add following link in your application for Single Sign-On (SSO)

  • Use the following URL as a link in your application from where you want to perform SSO:
    http://base-url/?ssoaction=login
  • For example you can use it as:
    <a href="http://base-url/?ssoaction=login”>Log in</a>"

You can even configure the DNN SAML Single Sign-On (SSO) module with any identity provider such as ADFS, Azure AD, Bitium, centrify, G Suite, JBoss Keycloak, Okta, OneLogin, Salesforce, AWS Cognito, OpenAM, Oracle, PingFederate, PingOne, RSA SecureID, Shibboleth-2, Shibboleth-3, SimpleSAML, WSO2 or even with your own custom identity provider. To check other identity providers, click here.

Additional Resources


Need Help?

Not able to find your identity provider? Mail us on aspnetsupport@xecurify.com and we'll help you set up SSO with your IDP and for quick guidance (via email/meeting) on your requirement and our team will help you to select the best suitable solution/plan as per your requirement.


Hello there!

Need Help? We are right here!

support