Authorization in Asp.Net Core Identity with Web API (Role, Claim & Policy)

  Рет қаралды 3,064

CodAffection

CodAffection

Күн бұрын

Пікірлер: 23
@CodAffection
@CodAffection 4 ай бұрын
goo.gl/bPcyXW : Buy me a Coffee bit.ly/4cfxLpk : Prev. Video (Organize Program.cs File) bit.ly/4f0tOY5 : Part 1 (User Registration) bit.ly/403lUVC : AspNet MVC with Identity Core bit.ly/47yygKq : (Angular & .Net Core API) Tutorials bit.ly/4fSmgXP : (React & .Net Core API) Tutorials bit.ly/30fPDMg : AspNet Core MVC Tutorials
@ManishBhusal
@ManishBhusal 2 ай бұрын
I followed your four videos, and they are awesome! I've never seen this level of content and explanation before. Thank you so much! Love from Nepal ❤
@CodAffection
@CodAffection 2 ай бұрын
Really glad you found it helpful! and thanks for the feedback.
@CodAffection
@CodAffection 2 ай бұрын
The same is combined an Angular front-end; you could see the entire playlist here : kzbin.info/www/bejne/ennSfGVvqZ6roNU
@amrsaeed1707
@amrsaeed1707 24 күн бұрын
thanks you are the best instructor 🌹
@CodAffection
@CodAffection 24 күн бұрын
Appreciate the feedback.
@krishanthadharmasiri7725
@krishanthadharmasiri7725 3 ай бұрын
watched all the 4 videos in the series and coded along now i have a fully functional Identity API, thanks so much 🙏
@CodAffection
@CodAffection 3 ай бұрын
Thanks for watching the series, and I appreciate the time to write your wonderful feedback.
@drmaf5000
@drmaf5000 4 ай бұрын
It is a great 4-part tutorial. Many thanks.
@CodAffection
@CodAffection 4 ай бұрын
Thank you.
@Guitariste82
@Guitariste82 4 ай бұрын
Very good tutorial, I really appreciate all these relevant explanations.
@CodAffection
@CodAffection 4 ай бұрын
Glad you found it helpful.
@MrAliWave
@MrAliWave 4 ай бұрын
First of all thanks for the great tutorials If i want to use an API Controller that inherits from ControllerBase and in order to gain access to ClaimsPrinciple's specific claim value in that case I need to use IHttpContextAccessor. Is that correct or I should use a different approach?
@CodAffection
@CodAffection 4 ай бұрын
Yes, you are correct. Sample code : learn.microsoft.com/en-us/answers/questions/1143595/asp-net-core-web-api-how-to-use-user-claims-in-ser
@MrAliWave
@MrAliWave 4 ай бұрын
@@CodAffection Thank you very much for your response
@rishukumar7586
@rishukumar7586 4 ай бұрын
can you please explain the use of claim tables? when do we need them ?
@CodAffection
@CodAffection 4 ай бұрын
The term claims means pieces of information about a particular entity. The table 'UserClaims' will be used for storing user claims. while the 'RoleClaims' table will store claims related to roles. These tables are not used in JWT authentication but could be used in cookie-based authentication.
@rishukumar7586
@rishukumar7586 4 ай бұрын
@@CodAffection can you also make a video on using claims table as well ?
@imtiazdahar8451
@imtiazdahar8451 2 ай бұрын
After searching long time, finally found a video on Roles, Claim & Policy. 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 achieve this, can you guide me or make a video on this? I would be very thankful.
@CodAffection
@CodAffection 2 ай бұрын
Thanks for the feedback, I've actually seen an msdn article on the topic, let me check what I can do.
@shoaibgoraya6597
@shoaibgoraya6597 25 күн бұрын
Kindly Guide how we can manage dynamic Roles and Permissions in database. Like an admin can dynamically add new Roles and Permissions as in this case we are defining policies manually in the code. I am new in dotnet so I have searched a lot but not found any way to achieve it. Please guide how to do it or refer to any tutorial if you know
@CodAffection
@CodAffection 24 күн бұрын
Didn't find a resource what you are looking for. But I will try to include your requirement in similar upcoming tutorials. Meantime, please go through following resources. Add New Role : stackoverflow.com/a/19541593/4133590 Assign a role to a user : stackoverflow.com/a/20971585/4133590
@cricomedy7896
@cricomedy7896 Ай бұрын
Web API CRUD Operations Using Asp Net MVC and Entity Framework
45:55
16 TIPS to help you grow from T1 to T15+ in endgame
14:17
Noobodytest
Рет қаралды 18
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 11 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
User Registration in Asp.Net Core Identity
38:45
CodAffection
Рет қаралды 5 М.
How to Organize the Program.cs File in Asp.Net Core Web API
31:32
JWT User Authentication in Asp.Net Core Identity with Web API
41:57
CodAffection
Рет қаралды 4,3 М.
Angular Login & Logout with Asp.Net Core Identity & JWT
1:42:41
CodAffection
Рет қаралды 8 М.
Asp.Net Core Web API CRUD with Angular
1:35:58
CodAffection
Рет қаралды 147 М.
Angular User Registration with  Asp.Net Core Web API
1:39:28
CodAffection
Рет қаралды 19 М.
Angular & .Net Core API - Authorization (Role, Claim & Policy)
2:00:16
Step-by-Step Guide: Build a CRUD API with .NET Core 9
37:50
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН