Тёмный
No video :(

Asp.Net Core Web API - Role Based Authorization in Angular 7 with Identity Role 

CodAffection
Подписаться 146 тыс.
Просмотров 64 тыс.
50% 1

Опубликовано:

 

27 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 115   
@CodAffection
@CodAffection 5 лет назад
goo.gl/RFY5C2 : Subscribe to CodAffection goo.gl/bPcyXW : Buy me a Coffee goo.gl/RZ33mk : User Registration (Part 1) goo.gl/3DefLb : Jwt Login & Logout (Part 2- Prev. Video) goo.gl/ijPZQk : .Net Core Web API CRUD with Angular 7 goo.gl/ZHDEhP : Master Detail Web API CRUD with Angular
@sachithwickramaarachchi9695
@sachithwickramaarachchi9695 5 лет назад
Next time, If you can please give us a push notification system with SignalR, By using Angular + Asp Web API
@beingayub
@beingayub 5 лет назад
Please create a video on Windows Authentication using. Net core and angular 7
@edrobinson8248
@edrobinson8248 3 года назад
These tutes are simply the best. They do need to be watched in the strict order as indicated below - Part1, Part2 etc) . The accent is quite charming - I cant get taarble out of my head :-) and i now know what an obserble is :-) I think you should trademark it along with the "boom!". Thanks a lot. Truly Brilliant.
@CodAffection
@CodAffection 3 года назад
Glad you like it. Thanks for your wonderful feedback :).
@alekei117
@alekei117 4 года назад
Thanks a lot man, exactly what I was looking for, all the best!
@rahulpathak906
@rahulpathak906 4 года назад
Wow u make me to understand Anguar+ .netcore like butter ..... go on happy coading .......great tut
@CodAffection
@CodAffection 4 года назад
Thanks for your wonderful feedback.
@beingayub
@beingayub 5 лет назад
Congratulation on getting married. Welcome to the club. Thanks for the wonderful video. I have a request. Can you please create a guide or video demonstrating Windows Authentication using asp.net core and Angular 7 ?
@NTC11111
@NTC11111 5 лет назад
What an amazing video! I have been expecting it for very long time. Thanks!
@CodAffection
@CodAffection 5 лет назад
Glad you found the video helpful.
@hassanangular7180
@hassanangular7180 5 лет назад
Thank You. I have done two previous sections and I was waiting for this video. You are amazing.
@CodAffection
@CodAffection 5 лет назад
Glad you found the video helpful.
@daviddonadze221
@daviddonadze221 5 лет назад
omg this is what I was looking for. u r the best. love your videos
@UmairKhan-vg3nh
@UmairKhan-vg3nh 2 года назад
Out standing video
@pascalsegoete1706
@pascalsegoete1706 3 года назад
You never disappoint I love your man and Thank you once again for sharing your knowledge with us coming Live from South Africa
@jaskiratsingh8426
@jaskiratsingh8426 3 года назад
You are a life saviour mate.
@marijastojanovic7414
@marijastojanovic7414 4 года назад
Thank you for all your videos. I learnt a lot and you helped me to solve some problems in my project.
@CodAffection
@CodAffection 4 года назад
Great to hear!
@noranasr6117
@noranasr6117 4 года назад
this is what I was looking for thank you so much you're the best
@777eldhose
@777eldhose 3 года назад
Good explanations and understandable.. Thanks
@tnversion9909
@tnversion9909 5 лет назад
Thanks .. Your videos are so helpful ❤❤❤
@trustingod0
@trustingod0 2 года назад
You can do a tutorial where you build a component that manages roles, Boom. Otherwise, you can maybe point me to an example. Thanks !!!
@ishanbhawantha
@ishanbhawantha 5 лет назад
Thank you very much. I requested this from you. Thank you very much.
@CodAffection
@CodAffection 5 лет назад
glad you found the video helpful. thanks for requesting this topic.
@cam27studios7
@cam27studios7 5 лет назад
Hey, can u do a video on how to use refresh token ? Will .net core die after .net 5 framework ?
@user-gm3lg8gp3m
@user-gm3lg8gp3m 3 года назад
Thank you so much, this was really helpful.
@pauldechampignon2287
@pauldechampignon2287 4 года назад
Really good! Shukriya!
@ammarmahmoud4422
@ammarmahmoud4422 5 лет назад
Thanks you so much for this videos
@Karthik241191
@Karthik241191 3 года назад
Hi I am getting this issue: Unable to resolve service for type 'Microsoft.EntityFrameworkCore.DbContextOption
@harithsufri7874
@harithsufri7874 3 года назад
Thank you sir
@vocalcaio
@vocalcaio 5 лет назад
Perfect!! Thanks!!
@OlegTar
@OlegTar 2 года назад
28:36 Maybe I'm wrong. But it's strange to have set of roles in client.
@khoufiwissem1086
@khoufiwissem1086 4 года назад
you are the best ! thanks a lot bro !
@PatrycjaGee
@PatrycjaGee 4 года назад
What if I created project in .net core 3 and angular 8 with individual user account and there is already authentication but with out roles? Do I need so many changes? I get token with user id on angular side but i dont know how to add user role to this token.
@sasineni
@sasineni 5 лет назад
Congratulation on your marriage. Thank you for doing these vidoes. They are very helpful to understand concepts and coding. you have an effective sytle of teaching. I would like to see angular with bootstrap 4 project to showcase professional looking nav bar and side nav bar based on roles the logged in user has. For instance, an application might have 40 menu items, but based on access a user has the side nav bar should be dynamically populated.
@CodAffection
@CodAffection 5 лет назад
thanks for your wonderful feedback. glad you found the video really helpful. about role based menu. first of in this video we have restricted routes based on role now we just need to hide and show menu items based on role. for that you can use ngIf directive like this. ....
@sasineni
@sasineni 5 лет назад
@@CodAffection I totally agree with your approach. We can certainly use ngIf directives, read all the roles and run through each menu to enable and disable. I thought by extending this video, if you can put up a professional looking side nav bar that can be hidden would be helpful. Pretty much all web apps cant fit large menu items on top navbar and need to come up with side nav bar. It would be great if you can do this. Also, i would like to talk to you, would you please send email and we can discuss further.
@trustingod0
@trustingod0 2 года назад
@@CodAffection You did a video covering that.
@mohanrajraja2896
@mohanrajraja2896 5 лет назад
What is dot net core.. please give quick lessons on that.. And youre doing a great job. I have learnt angular and web api by seeing your videos
@corneliusluka3555
@corneliusluka3555 3 года назад
Good morning Sir, Really enjoy your video, pls can you do tutorial and explain Role, Permission, Claims and sending email on signup using Dot Net Core with Angular
@SVSCSENAVINMG
@SVSCSENAVINMG 2 года назад
Hi sir this helped a lot.I tried your code but I am getting unauthorised 401error after entered the token what was the issue how should I solve it thanks in advance.
@ariamahlouji7781
@ariamahlouji7781 5 лет назад
Hi First of all thanks for all of your posts. The previous videos related to Angular and ASP.net Core were amazing But I think this video is not complete . You did not mention these issues ---how to hidden some items for users who are not allowed(instead of showing them a Forbidden message) ---sometimes a user have different roles(more than one and it would be saved inside an array ,But how we can check them in Client app) Thanks too much .
@CodAffection
@CodAffection 5 лет назад
yes. you can hide and show menu item using localStorage and ngIf directive. in case of multiple per user. we have to make a few more changes from user registration itself (not complex). I have already done that in one of my previous videos here : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-h85_GT62K6A.html (registration video. followed by login and role management parts).
@trustingod0
@trustingod0 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Ks5ADKqPrBQ.html
@cssvg
@cssvg 3 года назад
Hi! i have a question, why du you use navigate, and navigateByUrl in same ways, is there an explanation, or they are just the same and you make use of the first comes to your mind?
@tahminaakteranondi7962
@tahminaakteranondi7962 5 лет назад
hi there could you please make a video on how to transfer code first to db first ??
@macgaikwad
@macgaikwad 3 года назад
Helpful video, This scenario work for predefined roles, but how can we achieve authorization for runtime role-rights in .net core? Can you please help or do you have video for this? Thanks
@parisanejatian8940
@parisanejatian8940 5 лет назад
Hi. I love your videos because they are very helpful. I have customize your source for my project at my company and I am trying to create a dynamic form in admin panel and save the form in database and as I save the form as an admin, the customer user see that form after a login, but I do not know how to do that. could you please continue the project in this way please?
@CodAffection
@CodAffection 5 лет назад
How did you implement the dynamic form in angular, using formarray or something. are you looking for something like zoho forms ? I have used form array in my latest angular inline table edit video .
@parisanejatian8940
@parisanejatian8940 5 лет назад
@@CodAffection Yes I am trying to use form array for making a dynamic form. could you please comment the link of video that you have used form array? thanks
@navinkhadka1029
@navinkhadka1029 5 лет назад
Firstly, thank you for the video. Learnt a lot from this series. In this video, you've added two roles manually from the DB and built each web service for the two roles but how to implement in front end in case of dynamic roles?
@CodAffection
@CodAffection 5 лет назад
thanks for the comment. you can a separate page for role management. it can only be accessed by admin users. hope I answered your question. otherwise let me know.
@trustingod0
@trustingod0 2 года назад
@@CodAffection I need help with role management.
@nathanaustin4385
@nathanaustin4385 5 лет назад
Can you please explain How to add multiple DBcontext in .Net core? Please make some video on that.
@StudyWithGiri
@StudyWithGiri 4 года назад
Thanks for making video this is very usefull.
@CodAffection
@CodAffection 4 года назад
Glad it was helpful!
@muhammaddanial1267
@muhammaddanial1267 4 года назад
This video is amazing man but it would be more helpful if user would select role from dropdown on registration form rather then having it hardcoded on .net core
@CodAffection
@CodAffection 4 года назад
Noted.
@cam27studios7
@cam27studios7 5 лет назад
How to add refresh token ?
@andresflg
@andresflg 4 года назад
Hello, sorry for my English, Thanks for sharing this project, I have a doubt: if I get the Token from the local storage and open the application and in the console administration I put this token the application allows me access without problems, how to solve this security vulnerability?
@vikaskumarkesari5006
@vikaskumarkesari5006 5 лет назад
How can we modify roles in Authorize web api like if some api don't have access to some roles but we want in future some roles should able to access that api so how can we do without modifying code. Basically Authorize roles can take from database on API. by creating some variable and in authorize pass that variable.
@jarvis1680
@jarvis1680 4 года назад
Can you please create a Tutorial for Role-based authentication with Identity Server 4 and.Net Core 3.1.
@nguyenvanhung7397
@nguyenvanhung7397 2 года назад
Hi CodAffection, Can I know the repository where you store your code to see the config in startup.cs file in API . Thanks you.
@hourthy3658
@hourthy3658 4 года назад
Thank you for this course, How can i add multiple AddDbContext in Startup -> ConfigureServices and 2 Controllers which is getting data from difference database in SQLServer? I already connected UserDB in UserDb and i would like to add another existing Database to show data after logged in. Please help me
@viktorjakovlev4751
@viktorjakovlev4751 3 года назад
u are a legend!
@caglarcansarikaya1550
@caglarcansarikaya1550 3 года назад
hi Could you give some resarch keys? I am using .net core and angular role based system. authentication method is working I used http.post but other methods doesnt work. It just gave 401. I implemented backend , it is ready for request I tried in swagger all services are working. But front is just sending request for auth . What I missed
@brunnomartyres6538
@brunnomartyres6538 4 года назад
Is there a way to show User Role in GetUserProfile method?
@johnlam5949
@johnlam5949 5 лет назад
Hi thanks for the videos, been watching and using the code for my projects. May I also request a video on password reset/forgot password functionality. Thank you.
@sumitsaini5653
@sumitsaini5653 4 года назад
Hey, I am eagerly waiting for the next video on this admin panel, can you release asap ..
@nadimkaysar257
@nadimkaysar257 5 лет назад
We need a role based menu hide in navbar
@zainnabi786
@zainnabi786 3 года назад
Please do tutorial teaching email confirmation with asp.net core.
@vandeljasonstrypper6734
@vandeljasonstrypper6734 5 лет назад
Thanks you for your project it's a big help of the BIG PICTURE I have issues with the SignalR in dotnet core can you make video about chat application made of Angular 8 + SignalR + dotnet Core
@CodAffection
@CodAffection 5 лет назад
thanks for the comment. I will consider your suggestion.
@trustingod0
@trustingod0 5 лет назад
I was wondering how does registration and an email sent to user fit into this? Thanks !
@firealemgebremichael360
@firealemgebremichael360 5 лет назад
When are you gonna do React?
@vdingding
@vdingding 4 года назад
Hi Could you please same functionality with React JS. Please do needful
@AngelPerez-gs6bl
@AngelPerez-gs6bl 5 лет назад
Good Video.
@dc_ferreira
@dc_ferreira 3 года назад
I did the same, and when performing the Login, Chrome shows password message exposed. Can you help me ? Chrome version 86.0.4240.198 (Official version) 64-bit
@KalavakuriNagulameera
@KalavakuriNagulameera 5 лет назад
Thank u very much
@CodAffection
@CodAffection 5 лет назад
Glad you found the video helpful.
@bumblebity2902
@bumblebity2902 4 года назад
This thing works on Angular 8 + .NET 3? Because i get this System.InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Transportation.Models.User]' while attempting to activate 'Transportation.Controllers.AuthController.
@CodAffection
@CodAffection 4 года назад
planning to do the same with angular 9(upcoming version) + .net core 3
@bumblebity2902
@bumblebity2902 4 года назад
But it's possible use ApplicationLogin entity relation 1-n with other tables?
@bumblebity2902
@bumblebity2902 4 года назад
Because it can't migrate. I get "The entity type 'ApplicationUser' cannot be mapped to a table because it is derived from 'IdentityUser'. Only base entity types can be mapped to a table".
@krnage5542
@krnage5542 4 года назад
when clicking admin hyper link im gettting an error, when inspecting im getting this message core.js:6014 ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'adminpanel' Error: Cannot match any routes. URL Segment: 'adminpanel' Any reasons why please ??
@techrelated2417
@techrelated2417 4 года назад
Excellent videos. Do you have github link or copy of the code? Also, can you make videos on identityserver4 please.
@CodAffection
@CodAffection 4 года назад
it should there in video description, let me know if it's not there.
@cagatayaksoy9771
@cagatayaksoy9771 2 года назад
solution is broken, does not work.....
@gulamrasul507
@gulamrasul507 4 года назад
i have not find any link for download
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
Hi shamsheer, please make a video to upload an image to web api server using asp.net core and angular 7
@CodAffection
@CodAffection 5 лет назад
please try this : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-c61wr1ZsHzY.html
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
@@CodAffection that is using dot net frame work, I am asking about dot net core. Another thing, you can extend this video by adding feature like, uploading a set if files to the server (gallery kind of) and use push notifications using signal r
@CodAffection
@CodAffection 5 лет назад
@@sulaimanahmedz5826 Sure, I will the .net core project. I think for image upload same dotnet framework code should work for .net core also.
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
@@CodAffection I have tried but in that video the controller is inherited from Apicontroller and in core that controller is used as an attribute nor as an inherited class. Further, in core the controllers are inherited from controllerbase class and this class doesn't support "HTTPCONTEXT.CurrentRequest"
@mathieucupryk6778
@mathieucupryk6778 4 года назад
Having small issue with login.
@mathieucupryk6778
@mathieucupryk6778 4 года назад
Fails on Token Descriptor. Value cannot be null.
@krnage5542
@krnage5542 4 года назад
Why did you provide the role manually :(
@krnage5542
@krnage5542 4 года назад
Can you show how to do this through the form please!!
@CodAffection
@CodAffection 4 года назад
to make the video short.
@krnage5542
@krnage5542 4 года назад
CodAffection please can you make a video or share a link showing the user role being assigned through the reg form with angular 7 + and asp.net core webapi
@zouhairettarak5006
@zouhairettarak5006 5 лет назад
where were you , it's be a long time Sir
@CodAffection
@CodAffection 5 лет назад
sorry, I was busy with my marriage.
@zouhairettarak5006
@zouhairettarak5006 5 лет назад
@@CodAffection Congratulation Sir
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
Where were you from so many days?
@CodAffection
@CodAffection 5 лет назад
I'm really sorry, I was busy with my marriage.
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
@@CodAffection Its OK, congratulations... Happy married life.
@CodAffection
@CodAffection 5 лет назад
Thank you.
@sachithwickramaarachchi9695
@sachithwickramaarachchi9695 5 лет назад
​@@CodAffection Happy wedded life ❤❤❤
@CodAffection
@CodAffection 5 лет назад
Thank you.
@hoantranquoc8595
@hoantranquoc8595 5 лет назад
He's copy the code from Udemy course if I'm not wrong :)
@CodAffection
@CodAffection 5 лет назад
Sorry if I made you to think that way. I just reused my previous video source code here for angular application : ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-Ks5ADKqPrBQ.html
@sulaimanahmedz5826
@sulaimanahmedz5826 5 лет назад
This is very bad. He is helping by uploading these kinds of videos and you are degrading. Very badd. @Quoc
Далее
Asp.Net Core Web API - Login and Logout with Angular 7
1:32:19
Deploy Angular App in IIS from Scratch
13:26
Просмотров 62 тыс.
Angular 5 - Role Based Authorization with Web API
36:46
ASP.NET Core - Roles vs Claims vs Policy
23:11
Просмотров 98 тыс.
.NET Core vs .NET Framework - What's the difference?
25:26
Angular Material Tutorial in One Video
2:12:21
Просмотров 43 тыс.
OAuth 2 Explained In Simple Terms
4:32
Просмотров 389 тыс.