Claims Transformation in .NET 6
OAuth2 is a great protocol to authenticate people. And it does just that: Authentication. So.. What about authorization?
Implementing authorization in an API is pretty straightforward. And there are several ways to do it. In many projects, authorization and business logic tend to get mixed up. As a result, the code of the average, simple API endpoint gets more complex. And as a result, features get harder to implement and the application becomes less secure. So, needless to say: Don’t mix the two. But how do you do that?