No video

Angular JWT Authentication

  Рет қаралды 72,571

Scalable Scripts

Scalable Scripts

Күн бұрын

Пікірлер: 63
@romanpikulenko
@romanpikulenko 6 ай бұрын
This is an incredible lesson. I've been looking for information of how to implement angular + django backend authentication for so long and only here I've found a comprehensive instraction and explanation. Thanks to the author.
@davicampos802
@davicampos802 3 жыл бұрын
Best teacher ever , I just love these angular /nestjs tutorials
@vircycure
@vircycure Жыл бұрын
I learnt many things from this video even though I am using angular from few years. Thanks a lot 🎉
@pemessh
@pemessh 2 жыл бұрын
This channel is soooo underrated. Keep up the great work. Thank you so much for the great content.
@kyleryxn
@kyleryxn 2 жыл бұрын
This is great, but I didn't see you use JWT once. The title is very misleading
@AboChicheKurdi
@AboChicheKurdi Жыл бұрын
can you please explain how to use How can I use cookies sent from backend with the canActive guards ?
@nedzk
@nedzk 7 ай бұрын
I have a doubt, all of these concepts worked in my localhost, but when I deployed it, the Login Controller (rule that set jwt cookie) doesn't work more. (I receive the cookies "__stripe_sid" and "__stripe_sid" instead jwt token ) =(
@blaze9452
@blaze9452 2 жыл бұрын
In 23:30 it does not work with your angular course :(
@zocmihov
@zocmihov 2 жыл бұрын
Did you find a solution?
@denizyldz1860
@denizyldz1860 2 жыл бұрын
Thank you so much! Clear explanation. I really like it
@mikha2880
@mikha2880 2 жыл бұрын
Property 'form' has no initializer and is not definitely assigned in the constructor.
@JEBJOSH
@JEBJOSH 2 жыл бұрын
use form!: FormGroup; add the !
@btryx9378
@btryx9378 2 жыл бұрын
turn of the strict mode in the tsconfig.json file
@taamcyat
@taamcyat 2 жыл бұрын
Exactly what i needed! Great work 👏
@ardilawar66
@ardilawar66 Жыл бұрын
Excellent work! Keep it up!😉
@isadora-lt6ns
@isadora-lt6ns Жыл бұрын
This video is so good, you helped me a lot!! thank you so much!
@rebecaelida954
@rebecaelida954 Жыл бұрын
wow this was very great! thank you so much
@jonathancolorado2998
@jonathancolorado2998 2 жыл бұрын
Excelent great Teacher are you. Thanks
@neoszweb
@neoszweb 2 жыл бұрын
Thank you so much for your tutorials. They are very precious! It seems when I try to call the /api/user endpoint, the cookie is not correctly retrieved from the request and it returns null all the time. Any idea?
@aliyahturky5223
@aliyahturky5223 2 жыл бұрын
hii did you find a solution for that problem ?
@mcaddit6802
@mcaddit6802 2 жыл бұрын
same problem
@erdavog
@erdavog 8 ай бұрын
HI!!, I have a question, when i use postman to test the login it works perfectly, i can see the cookie, but when I tried to login through the front end using angular sending the required data, it works but i could not see the cookie created in the front end port, i followed your tutorial for django and it is the same as yours. Thank you
@prashantrao9456
@prashantrao9456 3 жыл бұрын
when I login there is no cookie. I have set httponly:true in set_cookie in django. Its working in postman but not Angular. Can you explain why?? And I can see the cookie in network tab and there is a warning with it. which says- this set-cookie didn't specify a samesite attribute and was default to samesite=lax nd was blocked because it came from cross-site response which is not the response to top level navigation.the set cookie had to have been set with samesite=none to enable cross site usage. And I set samesite=None in django.. but still got the same error.
@ScalableScripts
@ScalableScripts 3 жыл бұрын
Did you add credentials: true ?
@prashantrao9456
@prashantrao9456 3 жыл бұрын
@@ScalableScripts yes... I did the same as you.. And when i run it in Firefox i got the error to add "secure" Parameter in set_cookie. And the previous error is in chrome.
@prashantrao9456
@prashantrao9456 3 жыл бұрын
@@ScalableScriptsIt worked....When set SameSite="none" . It had to be in " " .the emitters also working. But still i get no cookies in application tab.
@alexanderpolyakov9217
@alexanderpolyakov9217 3 жыл бұрын
I have a similar problem, I don't get cookies on the application tab. go session options: Secure: false, HttpOnly: true, SameSite: http.SameSiteDefaultMode,
@Barricadez
@Barricadez 3 жыл бұрын
Yes this is the biggest problem with this code
@andreyklepikov7084
@andreyklepikov7084 3 жыл бұрын
Thank you so much! Great tutorials
@skalippanbalippan6972
@skalippanbalippan6972 3 жыл бұрын
I am getting this error when I run the cmd: docker exec backend /bin/sh start.sh SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve (SQL: select * from information_schema.tables where table_schema = auth and table_name = migrations and table_type = 'BASE TABLE')
@oax97
@oax97 3 жыл бұрын
Same here
@rohithkoteval1785
@rohithkoteval1785 2 жыл бұрын
@@oax97 same here how did you ovecome this?
@mike199862
@mike199862 3 жыл бұрын
Very useful videos, thank you so much!
@juanarango4917
@juanarango4917 Жыл бұрын
really really nice, thanks man!
@izzyblackout1090
@izzyblackout1090 3 жыл бұрын
thank you for this tutorial. Really helpful
@amlshohdy6413
@amlshohdy6413 3 жыл бұрын
Excellent. You are the best Thanks a lot Can you make a video about auth guard?
@emreaka3965
@emreaka3965 2 жыл бұрын
Thanks ^^
@aissatouseye1958
@aissatouseye1958 2 жыл бұрын
when i set with credential to true i had cors errors. I dont have solved it yet . Then i used HttpClient , and Headers but i have 400 error code . But i my postman login the token comes but not in my angular projet . my mind is aching , can you please help me out
@pankajpawar2858
@pankajpawar2858 3 жыл бұрын
Awesome Tutorial... but, i have few questions. if we store token in httponly cookie then do we need to refresh the token ? and could you tell that here we using cookie time 1 day This is cookie expiry time, this is not token expiring time, Because, if i use jwt Token instead of sanctum Token in cookie then which time i used to check validity of token. cookie time or token time ? And Is sanctum token has no expiring time like JWT Token ? Pls Answer Thanks.
@FranBoy7
@FranBoy7 3 жыл бұрын
Nice video!!! One question, can you do a route guard? Thanks
@user-ns3zu7jc7m
@user-ns3zu7jc7m 3 жыл бұрын
Hello. I'm new to Angular. I need to make an asynchronous validator for email on frontend. It will check in the database whether there is a user with such an email or not, if there is, then do not register. I think there should be another @Get('users') method on the backend that returns all users, after which it should be accessed on the frontend? Help me with some advice.
@daviddonadze221
@daviddonadze221 2 жыл бұрын
Thank you so much
@chiranshuadik9818
@chiranshuadik9818 3 жыл бұрын
Good tutorial! I read that we should not subscribe to EventEmiitters in angular. Can we just use session variables instead? can you please elaborate?
@dhawalparmar7117
@dhawalparmar7117 2 жыл бұрын
Yeah you can use localstorage session
@haruboss_
@haruboss_ 2 жыл бұрын
hey, I liked your code extantion for fast development without syntax error, can you please share the name of angular extention with me, please please ..
@thaminduKavinda
@thaminduKavinda 2 жыл бұрын
Wow man, these tutorials really help your explanation is very good. keep it up. 🤟 The cookie is not created in the browser (please help)
@isaquiassebastiaomarques2529
@isaquiassebastiaomarques2529 2 жыл бұрын
The same with me! Did you found the solution?
@emreaka3965
@emreaka3965 2 жыл бұрын
@@isaquiassebastiaomarques2529 backend's and frontend's url scheme must be the same. for example both should be HTTPS or HTTP. If this is not possible, you should set SameSite value to "none".
@user-ob4ve4cv5v
@user-ob4ve4cv5v 2 жыл бұрын
After I wrote this.http.post(...) in function submit, I got Unknown Error.
@netanelarye7547
@netanelarye7547 2 жыл бұрын
its help me so much
@emirmustafoski2405
@emirmustafoski2405 3 жыл бұрын
Hello, Why we post register to localhost:8000, Everytime i want to register i have Eroror: Connection Refused
@ScalableScripts
@ScalableScripts 3 жыл бұрын
You need to build the backend or use the docker container. Check the description of the video and select the backend that you want
@jawhermahmoudi8649
@jawhermahmoudi8649 3 жыл бұрын
thanks
@ignacioruiz7094
@ignacioruiz7094 3 жыл бұрын
How can I use with canActivate?
@mcaddit6802
@mcaddit6802 2 жыл бұрын
is auth guard, have to generate guards
@rezanrasoul2286
@rezanrasoul2286 Жыл бұрын
@@mcaddit6802 can you please explain more how can I do that?
@Pelakk
@Pelakk 2 жыл бұрын
nie dziala
@NebihTV
@NebihTV 2 жыл бұрын
you are 100% albanian
@ahmjksjssd
@ahmjksjssd 2 жыл бұрын
when i use { withCredentials: true } and look the cookies, angular still does not save the coockies i dont know why, any help?
Django API Authentication using JWT Tokens
37:06
Scalable Scripts
Рет қаралды 180 М.
Angular Authentication: Login Using JWT
10:51
Code Shots With Profanis
Рет қаралды 64 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 6 МЛН
GTA 5 vs GTA San Andreas Doctors🥼🚑
00:57
Xzit Thamer
Рет қаралды 25 МЛН
managed to catch #tiktok
00:16
Анастасия Тарасова
Рет қаралды 55 МЛН
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 14 МЛН
Angular Login using Access & Refresh Tokens
22:44
Scalable Scripts
Рет қаралды 27 М.
Angular Authentication: Role Based Authorization
8:58
Code Shots With Profanis
Рет қаралды 55 М.
NodeJS API Authentication using JWT Tokens
30:40
Scalable Scripts
Рет қаралды 49 М.
🔑 JWT Authorization | Angular Router Guards | Token Refresh
23:28
Angular Image Upload Made Easy
12:43
Academind
Рет қаралды 418 М.
Django Login using Access & Refresh Tokens
31:38
Scalable Scripts
Рет қаралды 15 М.
Part-1 Angular JWT(JSON Web Token) Authentication(Access Token Implementation)
43:02
Naveen Bommidi Tech Seeker
Рет қаралды 21 М.
Role Based Authorization in Angular: How It Works
11:05
Adnan Halilovic
Рет қаралды 28 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 6 МЛН