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

Поделиться
HTML-код
  • Опубликовано: 27 дек 2024

Комментарии • 94

  • @DebasmitSamal294
    @DebasmitSamal294 5 месяцев назад

    Classic. Very clearly explained with demo

  • @Tesseract9630
    @Tesseract9630 Год назад

    This is the best video on angular authentication. Thanks

  • @ArionImmanuel
    @ArionImmanuel 2 года назад +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.

  • @ManuelRaso-n2g
    @ManuelRaso-n2g Год назад

    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  Год назад +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

  • @victora3155
    @victora3155 2 года назад +2

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

  • @salahuddinhissam
    @salahuddinhissam 2 года назад +1

    Very helpful thanks

  • @praveenreddy5903
    @praveenreddy5903 2 года назад +1

    excellent bro

  • @marwensnoussi5643
    @marwensnoussi5643 2 года назад

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

  • @sohailamjad8755
    @sohailamjad8755 2 года назад

    Nice explanation thanks...

  • @srkvocals
    @srkvocals 3 месяца назад

    nice tutorial but how to remember all these steps? to get hands on how write the code like you, any tips please suggest

    • @NihiraTechiees
      @NihiraTechiees  3 месяца назад

      It's all about practice. The video length may be 1 hr . But i put more than week effort, for own preparation and recording and editing

  • @Rohit-oz4xl
    @Rohit-oz4xl 2 года назад +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
      ruclips.net/p/PLfyWdpsiUiPAcHftMr_R0HwSyAVHCW5cR

  • @faresbelaid4828
    @faresbelaid4828 2 года назад

    amazing thaaank you man

  • @methennisghaira6078
    @methennisghaira6078 2 года назад

    you made my day thxx

  • @channelnaresh9374
    @channelnaresh9374 11 месяцев назад

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

    • @NihiraTechiees
      @NihiraTechiees  11 месяцев назад

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

  • @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🙏

  • @sokbunchhuoy9057
    @sokbunchhuoy9057 2 года назад

    do you have video backend ?

    • @NihiraTechiees
      @NihiraTechiees  2 года назад

      ruclips.net/video/uWhbcR06VcA/видео.html

  • @devloperadda1350
    @devloperadda1350 2 года назад +1

    Thank you

  • @kollimarlajagadeep4039
    @kollimarlajagadeep4039 2 года назад

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

  • @viratsharma1540
    @viratsharma1540 2 года назад

    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  2 года назад

      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

  • @VijayKumar-fq4ie
    @VijayKumar-fq4ie 2 года назад +1

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

  • @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

  • @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
      ruclips.net/video/uWhbcR06VcA/видео.html
      database scripts
      github.com/nihira2020/Database
      Use Learn_DB Scripts

  • @kunaldholiya4701
    @kunaldholiya4701 2 года назад

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

    • @NihiraTechiees
      @NihiraTechiees  2 года назад +1

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

    • @NihiraTechiees
      @NihiraTechiees  2 года назад

      ruclips.net/video/3IDkzcflvaU/видео.html

  • @ahtishamahmed1551
    @ahtishamahmed1551 2 года назад

    Please make .net core web api tuturial full playlist

  • @rajmohangurumoorthy928
    @rajmohangurumoorthy928 2 года назад +1

    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

  • @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 года назад

      ruclips.net/video/2BQsJ5I3naE/видео.html check this video it will help you for implementing role based permission

  • @beingAuthenticSoulMusic
    @beingAuthenticSoulMusic 2 года назад

    is the author Thomas Akash?

  • @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

  • @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 года назад

      ruclips.net/video/uWhbcR06VcA/видео.html source code also available in description

  • @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 года назад

      ruclips.net/p/PLfyWdpsiUiPD7kYHujLg3Vl6GV69yQPgD

    • @NihiraTechiees
      @NihiraTechiees  2 года назад

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

  • @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

  • @archanam4224
    @archanam4224 2 года назад

    thanks bro

  • @cagatayaksoy9771
    @cagatayaksoy9771 2 года назад

    Where is the Core API ?

    • @NihiraTechiees
      @NihiraTechiees  2 года назад +1

      ruclips.net/video/uWhbcR06VcA/видео.html

    • @cagatayaksoy9771
      @cagatayaksoy9771 2 года назад

      @@NihiraTechiees Is Angular integrated with it?

    • @NihiraTechiees
      @NihiraTechiees  2 года назад

      This service only used for my angular videos

  • @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 ruclips.net/video/uWhbcR06VcA/видео.html

  • @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  Год назад +1

      Have you created the api also?

    • @siddharthrai6715
      @siddharthrai6715 Год назад

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

    • @NihiraTechiees
      @NihiraTechiees  Год назад +1

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

  • @velrajavelraja7663
    @velrajavelraja7663 Год назад

    Please Angular Firebase From sollithanaga bro

  • @CNARENDER
    @CNARENDER 2 года назад

    Could you please give me source code github link

  • @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

  • @dharshan9055
    @dharshan9055 2 года назад

    sir can i get your mail id