Implementing custom policies in ASP.NET Core using the HttpContext

added by DotNetKicks
10/23/2017 9:49:27 PM

2 Kicks, 134 Views

This article shows how to implement a custom ASP.NET Core policy using the AuthorizationHandler class. The handler validates, that the identity from the HttpContext has the authorization to update the object in the database. Code: https://github.com/damienbod/AspNetCoreAngularSignalRSecurity Scenerio In the example, each admin user of the client application, can create DataEventRecord entities which can only be...


0 comments