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

Sdílet
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

Komentáře • 90

  • @ArionImmanuel
    @ArionImmanuel Před 2 lety +3

    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.

  • @victora3155
    @victora3155 Před rokem +2

    Really great tutorial. The explanation is simple and awesome. Thanks bro.

  • @marwensnoussi5643
    @marwensnoussi5643 Před 2 lety

    thank you so much , this is what i've been looking for ♥

  • @sohailamjad8755
    @sohailamjad8755 Před 2 lety

    Nice explanation thanks...

  • @salahuddinhissam
    @salahuddinhissam Před rokem +1

    Very helpful thanks

  • @faresbelaid4828
    @faresbelaid4828 Před 2 lety

    amazing thaaank you man

  • @methennisghaira6078
    @methennisghaira6078 Před rokem

    you made my day thxx

  • @Tesseract9630
    @Tesseract9630 Před 8 měsíci

    This is the best video on angular authentication. Thanks

  • @praveenreddy5903
    @praveenreddy5903 Před 2 lety +1

    excellent bro

  • @devloperadda1350
    @devloperadda1350 Před 2 lety +1

    Thank you

  • @Rohit-oz4xl
    @Rohit-oz4xl Před 2 lety +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  Před 2 lety

      Please check the playlist
      czcams.com/play/PLfyWdpsiUiPAcHftMr_R0HwSyAVHCW5cR.html

  • @viratsharma1540
    @viratsharma1540 Před rokem

    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  Před rokem

      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

  • @rajmohangurumoorthy928
    @rajmohangurumoorthy928 Před 2 lety +1

    great work brother. 👏👏thanks need more videos. is this same procedure for all database?

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      Yes bro, Same procedure for all

    • @rajmohangurumoorthy928
      @rajmohangurumoorthy928 Před 2 lety

      @@NihiraTechiees can you suggest any angular docs for reference

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      @@rajmohangurumoorthy928 please check this url angular.io/docs this is angular official link. It's very effective

  • @VijayKumar-fq4ie
    @VijayKumar-fq4ie Před 2 lety +1

    Good video, very helpful. Is their any method to hide menu on role base? If yes please make a video on it.

  • @archanam4224
    @archanam4224 Před 2 lety

    thanks bro

  • @user-kk1xk6dk4d
    @user-kk1xk6dk4d Před rokem

    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  Před rokem +1

      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

    This is a good tutorial, i have implemented this concept, can you show the api which you are using please

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      czcams.com/video/uWhbcR06VcA/video.html source code also available in description

  • @cw2586
    @cw2586 Před 11 měsíci

    Oh my God this is so complicated, and I have to somehow implement this in a Skote template... I want to cry

    • @NihiraTechiees
      @NihiraTechiees  Před 11 měsíci

      Do you feel this video to complicated?

    • @cw2586
      @cw2586 Před 11 měsíci

      @@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  Před 11 měsíci

      Thanks🙏

  • @shakz487
    @shakz487 Před rokem

    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  Před rokem

      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

  • @veereshkumark9293
    @veereshkumark9293 Před rokem

    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  Před rokem

      czcams.com/play/PLfyWdpsiUiPD7kYHujLg3Vl6GV69yQPgD.html

    • @NihiraTechiees
      @NihiraTechiees  Před rokem

      In this playlist last video will explain the dynamic menu generation based on role

  • @AhmedMohamed-xx1kx
    @AhmedMohamed-xx1kx Před 2 lety

    you check for login if jwt in local storage what if user put it with himself

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      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

  • @kunaldholiya4701
    @kunaldholiya4701 Před 2 lety

    You returned jwt token and refresh token, so in front end how refresh token will be used?

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety +1

      Will explain in part 2 video. once it's uploaded let you know

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      czcams.com/video/3IDkzcflvaU/video.html

  • @kollimarlajagadeep4039

    How can I exclude one url. Like the registration page has a post url. Where we won't need any Guard

  • @ayeshamemon2315
    @ayeshamemon2315 Před rokem

    Where is the database ? I cloned the project but what credentials to use for login ?

    • @NihiraTechiees
      @NihiraTechiees  Před rokem

      Follow below video for API
      czcams.com/video/uWhbcR06VcA/video.html
      database scripts
      github.com/nihira2020/Database
      Use Learn_DB Scripts

  • @ahtishamahmed1551
    @ahtishamahmed1551 Před 2 lety

    Please make .net core web api tuturial full playlist

  • @channelnaresh9374
    @channelnaresh9374 Před 5 měsíci

    what is atob() method, it is inbuitl method ?

    • @NihiraTechiees
      @NihiraTechiees  Před 4 měsíci

      Yes... But angular 14 onwards it's deprecated... Just refer my angular 15 authentication video I provided the alternate for this

  • @ArunKumar-uq3zv
    @ArunKumar-uq3zv Před 2 lety

    Sir, is there any way to contact you for some guidance.

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      send mail to this email id : nihiratechiees@gmail.com

  • @sokbunchhuoy9057
    @sokbunchhuoy9057 Před rokem

    do you have video backend ?

  • @siddharthrai6715
    @siddharthrai6715 Před rokem

    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  Před rokem +1

      Have you created the api also?

    • @siddharthrai6715
      @siddharthrai6715 Před rokem

      @@NihiraTechiees I just downloaded your project git and run on my system

    • @NihiraTechiees
      @NihiraTechiees  Před rokem +1

      Brother it's angular code, and api created using dot net core, I shared that video link also in description

  • @pranaynagavolu814
    @pranaynagavolu814 Před 2 lety

    Why is there nothing about the backend you are using, that would've been helpful for a beginner .

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      For back end please refer this video czcams.com/video/uWhbcR06VcA/video.html

  • @isanthoshkumar_s
    @isanthoshkumar_s Před 2 lety

    I have doubt for creating authentication in different roles

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      Ok. What is your doubt ?

    • @isanthoshkumar_s
      @isanthoshkumar_s Před 2 lety

      @@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 Před 2 lety

      I want set token from local storage without API

    • @NihiraTechiees
      @NihiraTechiees  Před 2 lety

      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  Před 2 lety

      czcams.com/video/2BQsJ5I3naE/video.html check this video it will help you for implementing role based permission

  • @beingAuthenticSoulMusic

    is the author Thomas Akash?

  • @CNARENDER
    @CNARENDER Před 2 lety

    Could you please give me source code github link

  • @velrajavelraja7663
    @velrajavelraja7663 Před rokem

    Please Angular Firebase From sollithanaga bro

  • @joseluisrocha8351
    @joseluisrocha8351 Před 10 měsíci

    The explanation is good , but the visualization is no good. Remamber the ajust the view. Congratulations for your job.

    • @NihiraTechiees
      @NihiraTechiees  Před 10 měsíci

      Thanks for the suggestions will consider in upcoming videos

  • @cagatayaksoy9771
    @cagatayaksoy9771 Před 2 lety

    Where is the Core API ?

  • @dharshan9055
    @dharshan9055 Před rokem

    sir can i get your mail id