Custom Authorization and Policy-Based Authorization in ASP.NET Core

  Рет қаралды 6,206

Code Maze

Code Maze

Күн бұрын

Пікірлер: 14
@CodeMaze
@CodeMaze 10 ай бұрын
Thank you all for watching and for your support. ►► If you want to check out all our courses you can do that here: courses.code-maze.com/courses/
@woudjee2
@woudjee2 Ай бұрын
Thank you for the video. It was not exactly what I was looking for, but it helped me significantly in my search to what I need :D
@CodeMaze
@CodeMaze Ай бұрын
Hi. That's great to hear. I am sure I can't answer all the questions in a single video, but if it can help you or anyone else with their search and further learning, I am more than happy with it :)
@woudjee2
@woudjee2 Ай бұрын
@@CodeMaze that is exactly what you did, thank you kindly!
@10Totti
@10Totti 10 ай бұрын
Your videos are always amazing!
@CodeMaze
@CodeMaze 10 ай бұрын
Thank you so much! Glad you like the videos.
@ghkpr
@ghkpr 9 ай бұрын
Thanks, just what I needed!
@CodeMaze
@CodeMaze 9 ай бұрын
I'm glad the video was helpful. Thanks for watching.
@imtiazdahar8451
@imtiazdahar8451 2 ай бұрын
Thanks for video. I have an assignment that Roles must be dynamic, means that in [Authorize(Roles = "Admin")] must not be constant, it can vary and dynamic (could be changed on runtime rather than putting hardcoded). How can I get list of roles for the user who is accessing the controller/action to check wether he/she is allowed to access or not. How can I achieve this, can you guide me or make a video on this? I would be very thankful.
@CodeMaze
@CodeMaze 2 ай бұрын
Hi. For your use case, you have to use claims and policies. When you have a kind of complex authorization logic with roles, you can't do that simply using the fixed attribute values. The policies will allow you a lot of flexibility and a custom code. Even though my video: kzbin.info/www/bejne/oorZd2lpiNuGack doesn't cover your specific use case, maybe it can help you to get the global picture of how you can do it.
@litontonaton
@litontonaton 5 ай бұрын
do you have github link for this example ?
@CodeMaze
@CodeMaze 5 ай бұрын
Hi. I don't have a Github link but the source code is part of the Patreon support program with other benefits.
@shahabjoon201
@shahabjoon201 10 ай бұрын
Dear Marinko, Thanks for sharing this useful concept, the question is, is it a good practice to implement this concept inside the CodeMaze structure? Thanks in advance.
@CodeMaze
@CodeMaze 10 ай бұрын
Hi. Yes, it is. If you need a custom authorization logic for any .NET project, you can use this solution.
Master Claims Transformation for Flexible JWT Auth in ASP.NET Core
14:10
Milan Jovanović
Рет қаралды 14 М.
Create custom authorization policy using func in asp net core
11:51
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Background Jobs in ASP.NET Core
18:35
IAmTimCorey
Рет қаралды 60 М.
Asp.Net Core AUTHORIZATION Made EASY
19:13
Codewrinkles
Рет қаралды 10 М.
Policy-based Authorization in ASP.Net Core (with Custom Authorization Handler)
19:37
ASP.NET Core - Roles vs Claims vs Policy
23:11
Raw Coding
Рет қаралды 99 М.
JavaScript Global Execution Context Explained!
27:25
Piyush Garg
Рет қаралды 12 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 220 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН