Skip to content
0:00 / 0:00

#asp.netcore#authorization#asp.netcoreidentity

Flexible Authorisation with ASP.NET Core 7.0 - Jason Taylor - NDC Oslo 2023

NDC Conferences

230K subscribers • 110 videos on Hallway • Conference channel

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Jason Taylor

Intermediate. Assumes working knowledge.

10K views3 years ago2 recommendations

Web developmentSecurityHTTP, REST and GraphQLWeb and application securitySoftware architecture

Jason Taylor demonstrates a permission-based authorization approach in ASP.NET Core to overcome the limitations of roles and claims.

ASP.NET Core Identity supports the essentials for authentication and authorisation across many application types such as web, API, and mobile. With Identity, authorisation is a breeze! Developers can implement authorisation checks using numerous methods including roles, claims, and policies. However, this approach is not without limitations. For example, updating authorisation requirements will require code changes, along with the time taken to test and deploy these changes. Checking user or role permissions is also tricky, you'll need to review the code or documentation - and hope the documentation is still up to date! As systems grow, authorisation requirements will grow, and these limitations can slow new development and decrease maintainability. In this talk, I'll demonstrate an approach using permission-based authorisation to overcome these limitations and improve the flexibility and visibility of access control across your system. Check out our new channel: NDC Clips: @ndcclips Check out more of our featured speakers and talks at ndcconferences.com/ ndcoslo.com/

Why it's here

2 people recommend this

What people say. Recommended for learning how to design and implement complex, flexible permission-based authorization systems in .NET.

u/kagayakiin r/dotnet • Recommends

On “Roles - permissions case”

It's not a tutorial, but Jason Taylor gives talks at NDC on his Flexible Authorization framework that he created and sounds similar to what you are trying to do. Basically you define permissions in an enum and then use some math to be able to derive a "permission set" from a role, so you're controlling authorization based on permissions rather than roles. Way oversimplifying it in practice though I'm sure. Looks like this is his github with his code for flexible auth.

u/lukadlm97in r/dotnet • Recommends

On “Using different database users-roles with ef-core db context”

Take a look at this talk: link to this video Maybe this video can give you idea what is the best way do doing authorization at complex environment. Good luck!