Тёмный
No video :(

Angular Authentication (Role based Authentication + AUTH Guard + Http Interceptor + Core API) #27 

Nihira Techiees
Подписаться 20 тыс.
Просмотров 67 тыс.
50% 1

#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/nih...

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

 

26 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 92   
@DebasmitSamal294
@DebasmitSamal294 Месяц назад
Classic. Very clearly explained with demo
@NihiraTechiees
@NihiraTechiees Месяц назад
Thanks
@ArionImmanuel
@ArionImmanuel 2 года назад
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.
@NihiraTechiees
@NihiraTechiees 2 года назад
Thanks brother for the support
@victora3155
@victora3155 2 года назад
Really great tutorial. The explanation is simple and awesome. Thanks bro.
@NihiraTechiees
@NihiraTechiees 2 года назад
Glad to hear👍
@Rohit-oz4xl
@Rohit-oz4xl 2 года назад
Can you provide all the videos to make this project from scratch or possible make a playlist for this project. Its really helpful.
@NihiraTechiees
@NihiraTechiees 2 года назад
Please check the playlist ru-vid.com/group/PLfyWdpsiUiPAcHftMr_R0HwSyAVHCW5cR
@marwensnoussi5643
@marwensnoussi5643 2 года назад
thank you so much , this is what i've been looking for ♥
@NihiraTechiees
@NihiraTechiees 2 года назад
Thanks for your valuable feedback
@Tesseract9630
@Tesseract9630 10 месяцев назад
This is the best video on angular authentication. Thanks
@NihiraTechiees
@NihiraTechiees 10 месяцев назад
Thanks 👍
@salahuddinhissam
@salahuddinhissam 2 года назад
Very helpful thanks
@NihiraTechiees
@NihiraTechiees 2 года назад
Glad to hear👍
@praveenreddy5903
@praveenreddy5903 2 года назад
excellent bro
@NihiraTechiees
@NihiraTechiees 2 года назад
Thanks
@sohailamjad8755
@sohailamjad8755 2 года назад
Nice explanation thanks...
@NihiraTechiees
@NihiraTechiees 2 года назад
Thanks for the feedback
@cw2586
@cw2586 Год назад
Oh my God this is so complicated, and I have to somehow implement this in a Skote template... I want to cry
@NihiraTechiees
@NihiraTechiees Год назад
Do you feel this video to complicated?
@cw2586
@cw2586 Год назад
@@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.
@NihiraTechiees
@NihiraTechiees Год назад
Thanks🙏
@user-kk1xk6dk4d
@user-kk1xk6dk4d Год назад
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?
@NihiraTechiees
@NihiraTechiees Год назад
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
@venkatanareshbeeram8594
@venkatanareshbeeram8594 2 года назад
This is a good tutorial, i have implemented this concept, can you show the api which you are using please
@NihiraTechiees
@NihiraTechiees 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uWhbcR06VcA.html source code also available in description
@devloperadda1350
@devloperadda1350 2 года назад
Thank you
@NihiraTechiees
@NihiraTechiees 2 года назад
Welcome
@rajmohangurumoorthy928
@rajmohangurumoorthy928 2 года назад
great work brother. 👏👏thanks need more videos. is this same procedure for all database?
@NihiraTechiees
@NihiraTechiees 2 года назад
Yes bro, Same procedure for all
@rajmohangurumoorthy928
@rajmohangurumoorthy928 2 года назад
@@NihiraTechiees can you suggest any angular docs for reference
@NihiraTechiees
@NihiraTechiees 2 года назад
@@rajmohangurumoorthy928 please check this url angular.io/docs this is angular official link. It's very effective
@faresbelaid4828
@faresbelaid4828 2 года назад
amazing thaaank you man
@NihiraTechiees
@NihiraTechiees 2 года назад
Thanks
@VijayKumar-fq4ie
@VijayKumar-fq4ie 2 года назад
Good video, very helpful. Is their any method to hide menu on role base? If yes please make a video on it.
@NihiraTechiees
@NihiraTechiees 2 года назад
Sure will make one video
@VijayKumar-fq4ie
@VijayKumar-fq4ie 2 года назад
@@NihiraTechiees Thank you. Please make soon 🙏🏻
@methennisghaira6078
@methennisghaira6078 Год назад
you made my day thxx
@NihiraTechiees
@NihiraTechiees Год назад
Welcome
@channelnaresh9374
@channelnaresh9374 7 месяцев назад
what is atob() method, it is inbuitl method ?
@NihiraTechiees
@NihiraTechiees 7 месяцев назад
Yes... But angular 14 onwards it's deprecated... Just refer my angular 15 authentication video I provided the alternate for this
@veereshkumark9293
@veereshkumark9293 2 года назад
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..
@NihiraTechiees
@NihiraTechiees 2 года назад
ru-vid.com/group/PLfyWdpsiUiPD7kYHujLg3Vl6GV69yQPgD
@NihiraTechiees
@NihiraTechiees 2 года назад
In this playlist last video will explain the dynamic menu generation based on role
@viratsharma1540
@viratsharma1540 Год назад
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?
@NihiraTechiees
@NihiraTechiees Год назад
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
@ayeshamemon2315
@ayeshamemon2315 2 года назад
Where is the database ? I cloned the project but what credentials to use for login ?
@NihiraTechiees
@NihiraTechiees 2 года назад
Follow below video for API ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uWhbcR06VcA.html database scripts github.com/nihira2020/Database Use Learn_DB Scripts
@AhmedMohamed-xx1kx
@AhmedMohamed-xx1kx 2 года назад
you check for login if jwt in local storage what if user put it with himself
@NihiraTechiees
@NihiraTechiees 2 года назад
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
@shakz487
@shakz487 2 года назад
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
@NihiraTechiees
@NihiraTechiees 2 года назад
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
@kollimarlajagadeep4039
@kollimarlajagadeep4039 Год назад
How can I exclude one url. Like the registration page has a post url. Where we won't need any Guard
@NihiraTechiees
@NihiraTechiees Год назад
The routing side you can ignore for the particular path (link)
@kollimarlajagadeep4039
@kollimarlajagadeep4039 Год назад
@@NihiraTechiees can you help write the code
@ahtishamahmed1551
@ahtishamahmed1551 2 года назад
Please make .net core web api tuturial full playlist
@NihiraTechiees
@NihiraTechiees 2 года назад
Will plan for that
@pranaynagavolu814
@pranaynagavolu814 2 года назад
Why is there nothing about the backend you are using, that would've been helpful for a beginner .
@NihiraTechiees
@NihiraTechiees 2 года назад
For back end please refer this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uWhbcR06VcA.html
@archanam4224
@archanam4224 2 года назад
thanks bro
@NihiraTechiees
@NihiraTechiees 2 года назад
Welcome
@kunaldholiya4701
@kunaldholiya4701 2 года назад
You returned jwt token and refresh token, so in front end how refresh token will be used?
@NihiraTechiees
@NihiraTechiees 2 года назад
Will explain in part 2 video. once it's uploaded let you know
@NihiraTechiees
@NihiraTechiees 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-3IDkzcflvaU.html
@sokbunchhuoy9057
@sokbunchhuoy9057 Год назад
do you have video backend ?
@NihiraTechiees
@NihiraTechiees Год назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uWhbcR06VcA.html
@isanthoshkumar_s
@isanthoshkumar_s 2 года назад
I have doubt for creating authentication in different roles
@NihiraTechiees
@NihiraTechiees 2 года назад
Ok. What is your doubt ?
@isanthoshkumar_s
@isanthoshkumar_s 2 года назад
@@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?
@isanthoshkumar_s
@isanthoshkumar_s 2 года назад
I want set token from local storage without API
@NihiraTechiees
@NihiraTechiees 2 года назад
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
@NihiraTechiees
@NihiraTechiees 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-2BQsJ5I3naE.html check this video it will help you for implementing role based permission
@beingAuthenticSoulMusic
@beingAuthenticSoulMusic 2 года назад
is the author Thomas Akash?
@NihiraTechiees
@NihiraTechiees 2 года назад
No. It's ratheesh
@siddharthrai6715
@siddharthrai6715 Год назад
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
@NihiraTechiees
@NihiraTechiees Год назад
Have you created the api also?
@siddharthrai6715
@siddharthrai6715 Год назад
@@NihiraTechiees I just downloaded your project git and run on my system
@NihiraTechiees
@NihiraTechiees Год назад
Brother it's angular code, and api created using dot net core, I shared that video link also in description
@joseluisrocha8351
@joseluisrocha8351 Год назад
The explanation is good , but the visualization is no good. Remamber the ajust the view. Congratulations for your job.
@NihiraTechiees
@NihiraTechiees Год назад
Thanks for the suggestions will consider in upcoming videos
@velrajavelraja7663
@velrajavelraja7663 Год назад
Please Angular Firebase From sollithanaga bro
@NihiraTechiees
@NihiraTechiees Год назад
ok
@ArunKumar-uq3zv
@ArunKumar-uq3zv 2 года назад
Sir, is there any way to contact you for some guidance.
@NihiraTechiees
@NihiraTechiees 2 года назад
send mail to this email id : nihiratechiees@gmail.com
@cagatayaksoy9771
@cagatayaksoy9771 2 года назад
Where is the Core API ?
@NihiraTechiees
@NihiraTechiees 2 года назад
ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-uWhbcR06VcA.html
@cagatayaksoy9771
@cagatayaksoy9771 2 года назад
@@NihiraTechiees Is Angular integrated with it?
@NihiraTechiees
@NihiraTechiees 2 года назад
This service only used for my angular videos
@CNARENDER
@CNARENDER 2 года назад
Could you please give me source code github link
@NihiraTechiees
@NihiraTechiees 2 года назад
github.com/nihira2020/Authentication
@dharshan9055
@dharshan9055 2 года назад
sir can i get your mail id
@NihiraTechiees
@NihiraTechiees 2 года назад
Nihiratechiees@gmail.com
Далее
Angular Authentication: Role Based Authorization
8:58
I FOUGHT A BOT STRONGER THAN MITTENS!!!!
26:44
Просмотров 286 тыс.
Angular JWT User Authentication with Tailwind Login🔒
45:32