...

/

Configuring SSO inside a Razor Pages App

Configuring SSO inside a Razor Pages App

Learn how to set up SSO in a Razor Pages application.

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": "*"
}
Razor Pages app with the OpenID Connect flow

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