Angular Authentication (Role based Authentication + AUTH Guard + Http Interceptor + Core API) #27
Vložit
- čas přidán 17. 01. 2022
- #angularauthentication #angular #AuthGuard
This video explain Angular 13 authentication
Handling refresh token available in below link
=====================================
• Angular Authentication...
Topics covered
=============
1, Implement Login
1, Reactive Forms
2, Consume .NET Core Service
3, Use interceptor for pass Authorization header
2, Implement Authentication using Angular Guard
1, Implement basic authentication
2, Implement Role based authentication
3, Pass Authorization token header to service
1, Implement this logic using HTTP interceptor
Important Links
================
angular.io/cli - official angular website
Source code GitHub URL
====================
github.com/nihira2020/Authent... - Věda a technologie
This is the tutorial I've been looking for. The explanation is simple and easy to understand. Thanks for this video.
I hope you are always healthy. Keep producing good work and always success.
Thanks brother for the support
Really great tutorial. The explanation is simple and awesome. Thanks bro.
Glad to hear👍
thank you so much , this is what i've been looking for ♥
Thanks for your valuable feedback
Nice explanation thanks...
Thanks for the feedback
Very helpful thanks
Glad to hear👍
amazing thaaank you man
Thanks
you made my day thxx
Welcome
This is the best video on angular authentication. Thanks
Thanks 👍
excellent bro
Thanks
Thank you
Welcome
Can you provide all the videos to make this project from scratch or possible make a playlist for this project. Its really helpful.
Please check the playlist
czcams.com/play/PLfyWdpsiUiPAcHftMr_R0HwSyAVHCW5cR.html
HI
i have one question in authguard you are only checking if the token is present in localstorage or not .so we can create random token in localstorage to bypass the authguard. is there any other way to protect the routes?
Hi bro, here the is we can apply any logical conditions in authgurad. If you completely watched the video I implemented role based access also using this guard
great work brother. 👏👏thanks need more videos. is this same procedure for all database?
Yes bro, Same procedure for all
@@NihiraTechiees can you suggest any angular docs for reference
@@rajmohangurumoorthy928 please check this url angular.io/docs this is angular official link. It's very effective
Good video, very helpful. Is their any method to hide menu on role base? If yes please make a video on it.
Sure will make one video
@@NihiraTechiees Thank you. Please make soon 🙏🏻
thanks bro
Welcome
Hello, I don't understand at min 15:18 why we are using Injector, and why aren't we just putting in the constructor the other service. Is it really that wrong calling a service into another service? Everytime I have to call a service in another service, do I have to user the Injector?
There is the possibility for getting error, note : every version upgrade have some changes this video created using angular 13. Current version angular 15. If you not faced any error then go with the way
This is a good tutorial, i have implemented this concept, can you show the api which you are using please
czcams.com/video/uWhbcR06VcA/video.html source code also available in description
Oh my God this is so complicated, and I have to somehow implement this in a Skote template... I want to cry
Do you feel this video to complicated?
@@NihiraTechiees No, it's not complicated, I was just commenting out of frustration since I have to use an angular template that uses very advanced techniques for authentication with files hidden in files, hidden in files... It makes it very difficult for a noob like me to modify the template for my needs. Anyways, thanks for the video. I figured out what I was doing wrong and why I was receiving so many errors.
Thanks🙏
hey sir I follow your guide but when I click logout and set the url to back home again still works may i know the code on your logout? do u remove token or its just routerlink only back to login? thank you
I removing token in login page ngonint event, when you click log out I just navigating to login page so login page will clear the token from localstorage
This is one of the good tutorial I have followed all your videos thanks for uploading and I have one doubt here when other user login we have to hide the customer module also how we do that can you please help me on this..
czcams.com/play/PLfyWdpsiUiPD7kYHujLg3Vl6GV69yQPgD.html
In this playlist last video will explain the dynamic menu generation based on role
you check for login if jwt in local storage what if user put it with himself
We are basically checking the user already logged in or not. Once logged in I am added jwt token in local storage that's why I am checking in local storage.
If you have token session storage or some variable you need to check based on that
You returned jwt token and refresh token, so in front end how refresh token will be used?
Will explain in part 2 video. once it's uploaded let you know
czcams.com/video/3IDkzcflvaU/video.html
How can I exclude one url. Like the registration page has a post url. Where we won't need any Guard
The routing side you can ignore for the particular path (link)
@@NihiraTechiees can you help write the code
Where is the database ? I cloned the project but what credentials to use for login ?
Follow below video for API
czcams.com/video/uWhbcR06VcA/video.html
database scripts
github.com/nihira2020/Database
Use Learn_DB Scripts
Please make .net core web api tuturial full playlist
Will plan for that
what is atob() method, it is inbuitl method ?
Yes... But angular 14 onwards it's deprecated... Just refer my angular 15 authentication video I provided the alternate for this
Sir, is there any way to contact you for some guidance.
send mail to this email id : nihiratechiees@gmail.com
do you have video backend ?
czcams.com/video/uWhbcR06VcA/video.html
Bro I download this code from github to take an overview but I can't able to login in via your given user name and password, please help
Have you created the api also?
@@NihiraTechiees I just downloaded your project git and run on my system
Brother it's angular code, and api created using dot net core, I shared that video link also in description
Why is there nothing about the backend you are using, that would've been helpful for a beginner .
For back end please refer this video czcams.com/video/uWhbcR06VcA/video.html
I have doubt for creating authentication in different roles
Ok. What is your doubt ?
@@NihiraTechiees I want to Login using two user..one is normal user and another one is super admin that super admin access all components and normal user access one or two components...what will I do?
I want set token from local storage without API
If you have token, you can set the token value directly to the local storage,
Appcomponent is the starting point so please assign in the onInt Or the constructor
czcams.com/video/2BQsJ5I3naE/video.html check this video it will help you for implementing role based permission
is the author Thomas Akash?
No. It's ratheesh
Could you please give me source code github link
github.com/nihira2020/Authentication
Please Angular Firebase From sollithanaga bro
ok
The explanation is good , but the visualization is no good. Remamber the ajust the view. Congratulations for your job.
Thanks for the suggestions will consider in upcoming videos
Where is the Core API ?
czcams.com/video/uWhbcR06VcA/video.html
@@NihiraTechiees Is Angular integrated with it?
This service only used for my angular videos
sir can i get your mail id
Nihiratechiees@gmail.com