JWT Authentication Tutorial in Deno REST API

  Рет қаралды 6,888

The Codeholic

The Codeholic

Күн бұрын

Пікірлер: 39
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Check my Deno Real-time chat application: kzbin.info/www/bejne/jojchqePgZuspKc And if you enjoy my content, Subscribe: bit.ly/2xTQOI0 and share.
@niklasgrewe
@niklasgrewe 4 жыл бұрын
very helpful 👍 could you extend the tutorial further with register route, password hashes, database, client side integration and maybe protected routes? That would be really awesome
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thanks for suggestions. Let's see if many people requires these things.
@mykolatheprogramer
@mykolatheprogramer 4 жыл бұрын
@@TheCodeholic yes, please. it will be great!
@nezirzahirovic1899
@nezirzahirovic1899 4 жыл бұрын
@@TheCodeholic It would be great to have small app like sample and simple reactjs and deno with signup/signin public page protected page... thank you!
@SangKaLeeO
@SangKaLeeO 4 жыл бұрын
I want it
@dawsonian4387
@dawsonian4387 3 жыл бұрын
i guess I'm kind of randomly asking but does anyone know a good website to stream new tv shows online?
@straker_741
@straker_741 4 жыл бұрын
Thanks man, really helpful. I sometimes get overhelmed by docs and video like this is a gem. thanks.
@yahyeabdirashid9716
@yahyeabdirashid9716 3 жыл бұрын
bro i love how you explain
@alexannder15
@alexannder15 4 жыл бұрын
Subscribed. I'm waiting for nexts videos about Deno. Thanks for the video.
@Huy-ed2re
@Huy-ed2re 4 жыл бұрын
Very helpful indeed! Now I get to know the Context object in Oak 👍
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Awesome... 👍
@giga3005
@giga3005 4 жыл бұрын
Nice tutorial !
@diahrongrismore1054
@diahrongrismore1054 4 жыл бұрын
Well done! Great job.
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thank you! Cheers!
@nickdhrones6425
@nickdhrones6425 4 жыл бұрын
Very useful thanks
@zaydaztero5303
@zaydaztero5303 4 жыл бұрын
Thank you so much. Great content!
@arthurspalanzani389
@arthurspalanzani389 4 жыл бұрын
So nice, keep it up !! Thanks
@hasiburrahman9392
@hasiburrahman9392 4 жыл бұрын
Please make more tutorials about Deno. How to use Database, Deployment, and more. Thanks
@TheCodeholic
@TheCodeholic 4 жыл бұрын
I am working on course on deno for Freecodecamp. It will be at least 5 hours. After this I will continue uploading on my channel. I already have a video about MongoDb.
@mauriciorojas852
@mauriciorojas852 3 жыл бұрын
Thanks, great job
@rajeshbudhathoki7888
@rajeshbudhathoki7888 4 жыл бұрын
Nice tutorial! Keep it up!
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Thanks!
@ted9097
@ted9097 4 жыл бұрын
Hey man I love this video! I am a huge noob to authentication and usually just implement some Okta or AuthO or whatever is closest to my fingertips at the time. The one question I have is, how should I be managing the token from the client side?
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Whenever you login and get the Jwt token, you need to save in sessionStorage or localStorage and send it through Authorization header on every request.
@ted9097
@ted9097 4 жыл бұрын
@@TheCodeholic Perfect, thanks again. I've struggled with this issue for a long time but very clear tutorial even though I'm using ABC instead of Oak.
@ted9097
@ted9097 4 жыл бұрын
Hey sorry I just have one more question. So say I have a jQuery function that is taking the login inputs and then getting the response with the JSON. What should I be doing from their to redirect the user with the authorization header? I've tried calling the route with the success function, but it doesn't actually redirect the user to the new page. function login() { $.post("/login", { username: "max", password: "max" }, function (data, status) { $.get({ url: "/admin", xhrFields: { withCredentials: true }, beforeSend: function (xhr) { xhr.setRequestHeader('Authorization', `Bearer ${JSON.parse(data).jwt}`); }, success: function() { // I can get the server to pass a message here but it won't actually send the user to a new page. } }) }) }
@r4spb3rryAmy
@r4spb3rryAmy 4 жыл бұрын
Any idea how to verify RS256 in deno currently? Googles Certs seem to use RS256 which seems to not be supported in djwt
@TheCodeholic
@TheCodeholic 4 жыл бұрын
I am not sure about this yet.
@mocheford
@mocheford 2 жыл бұрын
Hello. Could please tell me how I could connect to ldap using deno ? I cannot find any third party module ... Any idea ? I'd like not to come back to node..
@mvrdara
@mvrdara 4 жыл бұрын
Can you hook that up with UI (make it real world app) Thanks 😊
@TheCodeholic
@TheCodeholic 4 жыл бұрын
I plan todo that.
@lonelyboy4033
@lonelyboy4033 4 жыл бұрын
refresh tokens?
@RameenFallschirmjager
@RameenFallschirmjager 4 жыл бұрын
Deno is getting traction. I brace myself for deno tutorials shower!
@alxizr
@alxizr 4 жыл бұрын
1 plan ahead 2 write scripts for the videos 3 poor code quality! Learn yourself what clean code is. very low video and concept quality
@TheCodeholic
@TheCodeholic 4 жыл бұрын
Hey man, Thank you for giving feedback, I know I can't make content that EVERYONE will love, but can you be so kind and answer/respond my comment . 1. What's wrong in having plan before? Every subject in university has syllabus and every lecturer follows that syllabus. 2. I do not write acripts for the videos. I talk naturally (even though I think writing scripts can improve my videos). I don't know why you mentioned this point. 3.Generally when you teach something, you should focus on one single topic at a time. The mainc topic of this video is to learn techniques which are necessary to setup login & registration system in Deno (Not writing clean code). If I reserve all the clean code standards (Although I have reverved some of those) the video duration would be double and the title should't be what it is now. TBH I don't know why you don't like video quality. It's 1080p, clear sound and you can watch and see everything clearly even from mobile...
Deno & MongoDB REST API Tutorial with Oak Framework
43:11
The Codeholic
Рет қаралды 9 М.
What Is JWT and Why Should You Use JWT
14:53
Web Dev Simplified
Рет қаралды 1,2 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,6 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 28 МЛН
Deno Login & Registration System Tutorial
1:07:12
The Codeholic
Рет қаралды 7 М.
Deno Queues | Prime Reacts
13:47
ThePrimeTime
Рет қаралды 34 М.
JWT Authentication Tutorial - Node.js
27:36
Web Dev Simplified
Рет қаралды 1 МЛН
Deno REST API Tutorial (Oak framework + DenoDB)
39:39
Classsed
Рет қаралды 5 М.
Deno Crash Course
52:06
Traversy Media
Рет қаралды 140 М.
JWT Authentication Explained
7:52
Matt on Data Science
Рет қаралды 27 М.
Deno crash course | Building API with Deno
40:28
Hitesh Choudhary
Рет қаралды 22 М.
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,6 МЛН