Configuring SSO inside a Razor Pages App
Explore configuring Single Sign-On in Razor Pages applications using the OpenID Connect protocol within ASP.NET Core. Understand how to set up authentication, authorize access globally or per page, and integrate with identity providers like OpenIddict or commercial services. This lesson guides through key setup steps and middleware configuration for secure Razor Pages apps.
We'll cover the following...
In this lesson, we will learn how we can secure a Razor Pages application with SSO. Please note that Razor Pages are just components that can be used alongside other components, such as MVC. Therefore, the process of securing them will be very similar to securing MVC applications, as we will see from the following playground:
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
}Note: Because we have to build two ASP.NET Core applications and populate the IdP database with the initial seed data, the build process is expected to take at least a few minutes.
This playground consists of the following two applications:
DemoApp: This represents a Razor Pages application secured by the OIDC authentication protocol. ...