From the course: ASP.NET Core Identity: Authorization Management
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
ASP.NET Core authorization namespaces - ASP.NET Core Tutorial
From the course: ASP.NET Core Identity: Authorization Management
ASP.NET Core authorization namespaces
- [Instructor] To be able to use the authorization types that we mentioned in the previous part, we need to use the necessary namespace in .Net core apps, and the namespace used is the Microsoft.AspNetCore.Authorization. In this namespace, we can find different authorization components including the AuthorizeAttribute and the AllowAnonymousAttribute. And to install this package, we need to run the Install-Package Microsoft.AspNetCore.Authorization command. This package has two dependencies, the Logging.Abstractions, which offers common abstractions for logging, like, for example, ILogger, ILoggerFactory, et cetera, and the other one is the options. The Microsoft.Extensions.Options provides a strongly typed way of specifying and accessing settings using dependency injection.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.