Search Results :

×

Downloads

45k+

Active Installs

10000+

ASP.NET Middleware Authentication - Configure ASP.NET Core SSO

Need Help? Schedule a free meeting with our experts right away using Calendly

Book Your Slot

Features

SAML Single Sign On
ASP.NET Core MVC SAML Single Sign-On (SSO) to your Website/Application gives easy and seamless access to all resources via multiple identity providers
Protect Your Complete Site
Restrict your application/site to only ASP.NET Core MVC SAML Single Sign-On (SSO) logged-in users by redirecting the users to your IdP if a logged-in session is not found
Single Logout
Allows a user to logout from all server sessions established via SAML SSO by initiating the logout process once.
Attribute Mapping
Users logged into ASP.NET Core MVC application/website via SAML SSO can map their attributes from IDP to the application
Role Mapping
Map your identity provider roles to your ASP.NET Core MVC application through SAML SSO and restrict resources to specific roles
Multiple IDP Support
Support SAML SSO for .NET Core MVC website and application with multiple SAML identity providers
Custom Certificate
Add your own custom X.509 Certificate for sending signed Request and verification of signed Response.
Auto-sync IdP Configuration from metadata
Keep your IDP SAML Configuration and Certificates updated and in sync
Federation Support
Allows users to Single Sign On into the site via their institution that is affiliated with InCommon Federation

Use Cases

Plans For Everyone

License is linked to the domain of the ASP.NET instances or applications, so if you have dev-staging-prod type of environment then you will require 3 licenses of the plugin (with discounts applicable on pre-production environments). Contact us at aspnetsupport@xecurify.com for bulk discounts.
  • TRIAL


    $ 0
  • See the Free Plugin features list below

  • Unlimited Authentications
  • Basic Attribute Mapping (Username)
  • Custom Redirect URL after Login
  • Login link
  • Step by Step guide to setup IDP
  • -
  • -
     
  • -
  • -
  • -
  • -
     
  • -
  • -
  • -
  • -
  • -
  • -
  •  Support 24x7

    Contact Us

  • PREMIUM


    $ 449*
  • See the Premium Plugin features list below

  • Unlimited Authentications
  • Basic Attribute Mapping (Username)
  • Custom Redirect URL after Login
  • Login link
  • Step by Step guide to setup IDP
  • Protect Complete Site
  • Advanced Attribute Mapping(Email, FirstName, LastName)
  • SAML Single Logout
  • Custom Attribute Mapping
  • Customize SP Configuration
  • Use different Binding types [Http-Redirect Binding, Http-POST Binding]
  • Custom Redirect URL after Login/Logout
  • -
  • -
  • -
  • -
  • -
  •  Support 24x7

    Contact Us

  • ENTERPRISE


    $ 649*
  • See the Enterprise Plugin features list below

  • Unlimited Authentications
  • Basic Attribute Mapping (Username)
  • Custom Redirect URL after Login
  • Login link
  • Step by Step guide to setup IDP
  • Protect Complete Site
  • Advanced Attribute Mapping(Email, FirstName, LastName)
  • SAML Single Logout
  • Custom Attribute Mapping
  • Customize SP Configuration
  • Use different Binding types [Http-Redirect Binding, Http-POST Binding, Artifact Binding, SOAP Binding]
  • Custom Redirect URL after Login/Logout
  • **Multiple IDPs support
  • Cookie based Authentication
  • Custom Certificates
  • -
  • -
  •  Support 24x7

    Contact Us


Need Help? We do offer technical support!

* We provide deep discounts on bulk license purchases and pre-production environment licenses. As the no. of licenses increases, the discount percentage also increases.


Support for Linux Based Platform

If your application is running on the Linux platform (NGINX or Apache as a reverse proxy server) then this plugin is also compatible with your environment.

What Our Clients Say

Steps to Configure the ASP.NET SAML 2.0 Middleware

Step 1: Download and extract package.


PM> NuGet\Install-Package miniOrange.SAML.SSO.Middleware -Version 5.0.2
  • In the Startup.cs or Program.cs file

      I. Add the namespace miniOrange.saml

      using miniOrange.saml;

      II. Add the following code snippet in the Startup.ConfigureServices method for using session services

      services.AddSession();
      services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme).AddCookie();

      III. Add the following code snippet lines in Startup.Configure method

      app.UseCookiePolicy();
      app.UseSession();
      app.UseAuthentication();
      app.UseminiOrangeSAMLSSOMiddleware();
  • Run the application when the configuration is done.

Step 2: Configure plugin dashboard

  • After integration, open your browser and browse the connector dashboard with the URL below:
    https://<your-application-base-url>/?ssoaction=config
  • If the registration page or login page pops up, you have successfully added the miniOrange ASP.NET middleware authentication SAML SSO connector to your application.
  • ASP.NET Middleware Authentication - saml dll register
  • Register or log in with your account by clicking the Register button to configure the middleware.

Step 3: Configure your Identity Provider

  • Under the Plugin Settings tab, select your identity provider from the list shown.
  • ASP.NET Middleware Authentication - Select identity provider

There are two ways detailed below with which you can get the SAML SP metadata to configure onto your identity provider end.

A] Using SAML metadata URL or metadata file:
  • In the Plugin Settings menu, look for Service Provider Settings. Under that, you can find the metadata URL as well as the option to download the SAML metadata.
  • Copy metadata URL or download the metadata file to configure the same on your identity provider end.
  • You may refer to the screenshot below:
  • ASP.NET Middleware Authentication - Copy Downloaded Metadata
B] Uploading metadata manually:
  • From the Service Provider Settings section, you can manually copy the service provider metadata like SP Entity ID, ACS URL, Single Logout URL and share it with your identity provider for configuration.
  • You may refer to the screenshot below:
  • ASP.NET Middleware Authentication - Manual Metadata

Step 4: Configure your Service Provider

There are two ways detailed below with which you can configure your SAML identity provider metadata in the middleware.

A] Upload metadata using the Upload IDP Metadata button:
  • If your identity provider has provided you with the metadata URL or metadata file (.xml format only), then you can simply configure the identity provider metadata in the middleware using the Upload IDP Metadata option.
  • You may refer to the screenshot below:
  • ASP.NET Middleware Authentication - Upload Metadata
  • You can choose any one of the options according to the metadata format you have available.
B] Configure the identity provider metadata manually:
  • After configuring your Identity Provider, it will provide you with IDP Entity ID, IDP Single Sign On URL and SAML X509 Certificate fields respectively.
  • Click Save to save your IDP details.
  • ASP.NET Middleware Authentication - SAML dll config

Step 5: Testing SAML SSO

  • Click on the Test Configuration button to test whether the SAML Configuration you’ve done is correct.
  • The screenshot below shows a successful result. Click on SSO Integration to further continue with the SSO Integration.
  • ASP.NET Middleware Authentication - SAML dll Test configuration
  • If you are experiencing any error on the middleware end you’ll be shown with the window similar to below.
  • ASP.NET Middleware Authentication - Enable debug logs
  • To troubleshoot the error you can follow the below steps:
    • Under Troubleshoot tab, enable the toggle to receive the plugin logs.
    • ASP.NET Middleware Authentication - Enable debug logs
    • Once enabled, you will be able to retrieve plugin logs by navigating to Plugin Settings tab and clicking on Test Configuration.
    • Download the log file from the Troubleshoot tab to see what went wrong.
    • You can share the log file with us at aspnetsupport@xecurify.com and our team will reach out to you to resolve your issue.

Step 6: Integration Code

  • You can find the Integration code in the Integration Code tab in the middleware. 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 Middleware Authentication - integration code
  • If you want some assistance regarding the integration code, get in touch with us aspnetsupport@xecurify.com

Step 7: Add the following link into your application for Single Sign-On (SSO)

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

Step 8: Add the following link into your application for SLO

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

To configure your IDP, you can find the service provider's metadata in appsetting.json file. For SP metadata, you can refer to the screenshot below:

ASP.NET Middleware Authentication - SP Metadata

From miniOrange section, copy spentityid, acsurl and provide it to your identity provider's team.

  • Once the service provider's metadata is configured on the IdP end, you'll be provided with the IdP metadata file or metadata URL or metadata URLs like IdP Entity Id, IdP SSO URL etc.
  • To configure your IDP metadata, navigate to appsettings.json file. You will find the following settings in the miniorange's JSON section
  • To configure your IDP directly, navigate to appsettings.json file.
  • ASP.NET Middleware Authentication - IDP Metadata
  • Configure the appropriate provided metadata and save the settings.
idp_cert Enter the IDP certificate against this field
ssourl Enter the SSO URL against this field
idp_issuer Enter the IDP Issuer against this field

Attribute Mapping

  • 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 Core SAML Middleware Authentication - IDP Metadata

Integration Code

  • Just copy-paste the 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.
  • string name="";
    string claimtype="";
    string claimvalue="";
    if(User.Identity.IsAuthenticated) {
      name= User.Identity.Name;
      foreach( var claim in User.Claims) {
        claimtype = claim.Type;
        claimvalue = claim.Value;
      }
    }

You can configure the ASP.NET SAML 2.0 Single Sign-On (SSO) 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 and secure your ASP.NET / ASP.NET MVC / ASP.NET Core / VB.NET applications by performing Single Sign-on (SSO) into them.

The miniOrange ASP.NET SAML 2.0 Connector supports C# and Visual Basic languages. We also provide DNN Single Sign-On SAML Connector. Click Here to know more. miniOrange also provides modules for integration with legacy apps such as Active Directory, SiteMinder, Radius, Unix and so on. miniOrange helps you for adding login/authentication into your ASP.NET site using OAuth, OpenID, ADFS, SAML and WSFED protocols.

Have questions or need clarifications? Please contact us at aspnetsupport@xecurify.com and our experts will be there to help you.

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
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