Thursday, September 20, 2018

Creating Custom Authorization Policy Provider In ASP.NET Core

In my previous article, I have talked about Policy-based authorization. Here, we can register all the required policies using the AddPolicy method of AuthorizationOptions class. If we have a large number of policies, this is not a desirable way to register all policies in this way. In such a case, we can use a custom policy provider (IAuthorizationPolicyProvider).

source https://www.c-sharpcorner.com/article/creating-custom-authorization-policy-provider-in-asp-net-code/

No comments:

Post a Comment