.Net 8 API Role Based Authorization

preview_player
Показать описание
Learn how to add role based authorization to your .Net 8 API using the IClaimsTransformation interface. This is a great way to protect your .Net API routes based on whether your user has specific roles.

Microsoft docs for IClaimsTransformation:

Github Repo with code from this video:

Follow me on social media!

Check out my blog!
Рекомендации по теме
Комментарии
Автор

Thanks, great content, easy to understand and follow!

artemvolsh
Автор

Thanks a lot, for Explaining it simply 🤩

don_kavindu_prabhashitha
Автор

Nice. Love to see how to use JWT into this. I watch many videos and I always get a 404 not found. I sign in, and the API returns the JWT. I sigin into the API (top right) with Bearer {and token id}. And then try to access a Authorize http and bingo - I get 404 not 200 or 401. I'm going slowly crazy.

waynehawkins