News for hackers. Stuff that matters.
Re:Ask HN: What are the best practices for web authorization... by jlhim on Monday February 22, 2016 @11:35AM (#11152019)
Claims based authentication and authorization is all the rage.
Re:Ask HN: What are the best practices for web authorization... by keth on Monday February 22, 2016 @11:53AM (#11152207)
Oh, the system that will be used in .net mvc? So far I've only seen that permissions and roles can be modeled with claims, but could that not lead to the same problem like with roles (e.g user.hasClaim("foo") || user.hasClaim("bar") || ...)?
Re:Ask HN: What are the best practices for web authorization... by talles on Monday February 22, 2016 @12:07PM (#11152334)
For ASP.NET MVC I use to roll my own AuthorizeAttribute (just inherit it and overload OnAuthorization). I avoid dealing with IIdentity and IPrincipal, I find it sorta messy.

Looks like things are different on vNext though: http://docs.asp.net/en/latest/security/authorization/index.h...