Claims authorization for specific resources

后端 未结 2 557
失恋的感觉
失恋的感觉 2021-01-12 09:54

I am writing an example file storage system (example just for stackoverflow).

My current domain models look as such:

public class User
{
    public i         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-12 10:48

    Pablo is right - claims describe identity. You use that identity to come to an authorization decision though. There is a separate abstraction for that called ClaimsAuthorizationManager.

    Have a look here: http://leastprivilege.com/2012/10/26/using-claims-based-authorization-in-mvc-and-web-api/

提交回复
热议问题