Search Results :

×

ASP.NET SAML Single Sign-On (SSO) Using Auth0 As IDP

ASP.NET SAML Single Sign-On (SSO) Using Auth0 As IDP


ASP.NET SAML SP Single Sign-On (SSO) module gives the ability to enable SAML 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 SAML compliant Identity providers. Here we will go through a step-by-step guide to configure Single Sign-On (SSO) between ASP.NET and Auth0 as IdP.

Download And Extract Package

  • Download miniOrange ASP.NET SAML 2.0 Module.
  • For Setting up the module, extract the asp-net-saml-sso-module-xxx.zip, you will find a DLL file miniorange-saml-sso.dll, a configuration file saml.config and a integration.md file which contain the steps for adding the module into your application.

Steps to configure Auth0 Single Sign-On (SSO) Login into ASP.NET

1. Add module on ASP.NET Application

  • Add miniorange-saml-sso.dll in the bin folder (where your other DLL files exist) for your application.
  • Register miniorangesamlsso module in your application according to the provided steps in the integration.md file.
  • Add the provided configuration file saml.config in the root directory for your application.
  • After integration open browser and browse the module dashboard with URL below:
    • https://<your-application-base-url>?ssoaction=config
  • If it pops up the registration page or login page, you have successfully added the miniOrange saml sso module for your application.

  • asp.net saml sso ADFS : login page
  • Register or login with your account by clicking the Register Button for configuring the module.

2. Configure Auth0 as Identity Provider

Follow the steps below to configure Auth0 as IdP

  • In the miniOrange ASP.NET SAML SSO Module, navigate to Service Provider Settings section. Here, you can find the SP metadata such as SP Entity ID and ACS (AssertionConsumerService) URL which are required to configure the Identity Provider.
  • ASP.NET Salesforce SAML SSO  - upload metadata
  • Log in to your Auth0 dashboard.
  • Click on Applications.
  • Go to Applications - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • Click on Create Application.
  • Add or create application - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • A new window will pop-up. Enter a name for the application and select Regular Web App. Click on CREATE button.
  • Chose regular Web app - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • Select the Connection Tab and enable Username Password Authentication
  • Chose regular Web app - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • Select the Addons tab.
  • Select SAML SSO Add-ons - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • Enable SAML2 option in the addons. It will open up a Configuration window.
  • Enable SAML 2.0 Add-on webapp - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • Enter Application Callback URL, Audience, Recipient and other settings using SP entity ID and ACS URL copied from the plugin as shown below:
  • Add SP entity ID and URL from Plugin - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • Scroll down and click on Save.
  • Save entity ID - Auth0 SAML Single Sign-On (SSO) for ASP.NET - Auth0 SSO Login
  • Go to the Usage tab and click on the Identity Provider Metadata download link. It will download the metadata XML file which you'll need for setting up the SAML plugin.
  • IDP metadata download - Auth0 SAML Single Sign-On(SSO) for ASP.NET - Auth0 SSO Login
  • You have now successfully configured Auth0 as IDP

3. Configure ASP.NET SAML Module as Service Provider

  • After configuring your Identity Provider, it will provide you with IDP Entity ID, IDP Single Sign On URL and x.509 Certificate. Configure these values under IDP Entity ID, Single Sign-On Url and SAML X509 Certificate fields respectively. (Refer to the Metadata provided by Identity Provider)
  • Click Save to Save your IDP details.
  • asp.net saml sso ADFS : idp settings

4. Test Configuration

  • Click on the Test Configuration button to test the configuration.
  • asp.net saml sso ADFS : test configuration settings

5. Attribute Mapping

  • After testing the configuration, Map your application attributes with the Identity Provider (IdP) attributes.
  • Note: All the mapped attributes will be stored in the session so that you can access them in your application.
  • asp.net saml sso ADFS : attribute mapping

6. Integration Code

  • You can also find the Integration code in the Integration Code tab in the module. Just copy-paste that code snippet wherever you want to access the user attributes.
  • Note: All the mapped attributes will be stored in the session so that you can access them in your application.
  • asp.net saml sso ADFS : integration code

7. Login Settings

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

8. Logout Settings

  • Use the following URL as a link in your application from where you want to perform SLO:
  • https://<your-application-base-url>/?ssoaction=logout
  • For example you can use it as:
  • <a href="https://<your-application-base-url>/?ssoaction=logout">Logout</a>

You can configure the DotNetNuke SAML 2.0 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.


If you are looking to Single Sign-On into your sites with any SAML compliant Identity Provider then we have a separate solution for that. We do provide SSO solutions for the following:

Application LINK
SAML SSO into DotNetNuke (DNN) site Click here
SAML SSO into SiteFinity site Click here
SAML SSO into Umbraco site Click here
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