Artwork

Content provided by David Gardiner and Adelaide .NET User Group / David Gardiner. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by David Gardiner and Adelaide .NET User Group / David Gardiner or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.
Player FM - Podcast App
Go offline with the Player FM app!

Managing granular authorisation in .NET, with Ryan Rowston

1:04:36
 
Share
 

Manage episode 400339119 series 1329529
Content provided by David Gardiner and Adelaide .NET User Group / David Gardiner. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by David Gardiner and Adelaide .NET User Group / David Gardiner or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

We have a challenge: Modern day administrators want to keep a tight rein on who can perform different actions in their systems. Join us and learn how we've evolved our authorisation patterns to grant highly granular permissions to different users, while maintaining developer-friendly patterns in code.

In this talk I'll explain how we've approached this challenge, including:

  • How we've encoded discreet permission levels as bits in a 64-bit integer using a .NET flags enum.
  • How we've used an extended Authorize attribute to allow for developer to add authorisation in one line to API controllers/endpoints.
  • How we've enabled dynamic policy generation to account for the potentially quintillions of unique permission combinations that this enables.

Links:

  continue reading

68 episodes

Artwork
iconShare
 
Manage episode 400339119 series 1329529
Content provided by David Gardiner and Adelaide .NET User Group / David Gardiner. All podcast content including episodes, graphics, and podcast descriptions are uploaded and provided directly by David Gardiner and Adelaide .NET User Group / David Gardiner or their podcast platform partner. If you believe someone is using your copyrighted work without your permission, you can follow the process outlined here https://ppacc.player.fm/legal.

We have a challenge: Modern day administrators want to keep a tight rein on who can perform different actions in their systems. Join us and learn how we've evolved our authorisation patterns to grant highly granular permissions to different users, while maintaining developer-friendly patterns in code.

In this talk I'll explain how we've approached this challenge, including:

  • How we've encoded discreet permission levels as bits in a 64-bit integer using a .NET flags enum.
  • How we've used an extended Authorize attribute to allow for developer to add authorisation in one line to API controllers/endpoints.
  • How we've enabled dynamic policy generation to account for the potentially quintillions of unique permission combinations that this enables.

Links:

  continue reading

68 episodes

All episodes

×
 
Loading …

Welcome to Player FM!

Player FM is scanning the web for high-quality podcasts for you to enjoy right now. It's the best podcast app and works on Android, iPhone, and the web. Signup to sync subscriptions across devices.

 

Quick Reference Guide

Listen to this show while you explore
Play