ASP.NET OAuth Single Sign-On (SSO) using WordPress as OAuth Server
ASP.NET is an open-source web framework to build web applications and services
that can run on Windows, macOS and Docker. One can have secure access into
ASP.NET applications by configuring Single Sign-On (SSO) using WordPress as
OAuth Server. By the end of this guide, you would be able to SSO into ASP.NET
using WordPress as OAuth Server. To know more about other features we provide
in ASP.NET SSO plugin, you can click
Pre-requisites: Download and Installation
Download the miniOrange ASP.NET OAuth 2.0 Module from
Extract the asp-net-oauth-sso-module.zip after which you will see the
miniorange-oauth-sso.dll - Add this DLL file in the "bin" folder
(where other DLL files exist). Follow the steps in the
integration.md file to register the miniorangeoauthsso module
in your application.
oauthsso.config - Add this configuration file in your application's
integration.md - An integration file with instructions for
integrating the module into your application.
After the integration, open your browser and go to the URL below to view the
If the registration or login page appears, you have successfully integrated
the miniOrange OAuth SSO module with your application.
Register or login after configuring the SSO module.
Steps to configure ASP.NET SSO using WordPress as OAuth Server
1. Configure WordPress as OAuth Server
From the miniOrange OAuth Server menu on the left side, select
Custom OAuth 2.0 Client.
Enter the Client Name and Redirect/Callback URL from your
ASP.NET application in the respective fields and hit Save Client.
Note down the Client ID, Client Secret and Endpoints to
configure your OAuth Client and paste these values
2. Configure ASP.NET as OAuth Client
Configure ASP.NET as OAuth Client by filling out the mandatory fields like
Authorize Endpoint, Client ID, Client Secret and so on.
Please find the values needed to configure ASP.NET as OAuth Client
After you've saved your setup, click the Test Configuration button to
see if you've done everything correctly.
4. Attribute Mapping
Map the Attribute Names provided by your OAuth Server to the Attributes
provided by your ASP.NET application in the Attribute Mapping Section, then
click Save Attribute Mapping.
Note:All mapped attributes will be stored in the session so that you
can access them in the application.
5. Integration Code
The integration code can be found on the module's
Integration Code tab. Simply copy and paste that code snippet
wherever you need to get at the user attributes.
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
For example, you can use it as
<a href="http://base-url/?ssoaction=login”>Log in</a>
In this Guide, you have successfully configured ASP.NET Single Sign-On (SSO)
using WordPress as OAuth Server and ASP.NET application as Service Provider
using our WordPress OAuth Server plugin. This solution ensures that you are
ready to roll out secure access to your ASP.NET application using your
WordPress site credentials within minutes.
Mail us on
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.
Need Help? We are right here!
Contact miniOrange Support
Thanks for your inquiry.
If you dont hear from us within 24 hours, please feel free to send a follow up email to firstname.lastname@example.org
This privacy statement applies to miniorange websites describing how we handle the personal
When you visit any website, it may store or retrieve the information on your browser, mostly in the
form of the cookies. This information might be about you, your preferences or your device and is
mostly used to make the site work as you expect it to. The information does not directly identify
you, but it can give you a more personalized web experience.
Click on the category headings to check how we handle the cookies.
Strictly Necessary Cookies
Necessary cookies help make a website fully usable by enabling the basic functions like site
navigation, logging in, filling forms, etc. The cookies used for the functionality do not store any
personal identifiable information. However, some parts of the website will not work properly without
These cookies only collect aggregated information about the traffic of the website including -
visitors, sources, page clicks and views, etc. This allows us to know more about our most and least
popular pages along with users' interaction on the actionable elements and hence letting us improve
the performance of our website as well as our services.