...
/Enforcing Authentication and Authorization on MVC Views
Enforcing Authentication and Authorization on MVC Views
Get to know how to enforce authorization requirements on individual MVC views.
We'll cover the following...
In this lesson, we will learn how to fine-tune the authorization requirements in an MVC application. We will do so with the help of 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. Also, because each playground launch rebuilds the IdP along with its database, the account previously registered will no longer work. We will need to register a new account.
In this playground, we have the following two applications:
DemoApp
: It is our main MVC application.OpenIddictAuthProvider
: It is our IdP application. ...