#36 Golang - Mastering JWT Authentication

  Рет қаралды 2,011

codeHeim

5 ай бұрын

In this in-depth tutorial, we delve into JSON Web Tokens (JWT) authentication in Golang. From building and signing JWT tokens to implementing middleware for validation, we cover every aspect of securing your Go applications. Using popular frameworks like Gin Gonic and GORM, we guide you through the process step-by-step, ensuring your APIs are protected and your users' data remains secure. Whether you're a beginner or an experienced developer, this video will equip you with the knowledge and skills to implement robust authentication mechanisms in your Go projects.
Timestamps:
00:00 - Introduction
00-57 - Application Overview
03:49 - Package installation
04:11 - Building and Signing the JWT token
06:20 - Creating a Cookie
08:51 - DRY
11:00 - Middleware; Parsing and Validating the token
21:08 - Logout Implementation
12:05 - Conclusion
Resources:
Original Video: www.codeheim.io/courses/Episode-36-Mastering-JWT-Authentication-in-Golang-663a796d51be3a2c1c6d0d6b
GitHub repo: github.com/code-heim/go_36_gin_jwt
JWT RFC: datatracker.ietf.org/doc/html/rfc7519
JWT Package: github.com/golang-jwt/jwt
Episode 17: Using Environment Variables in Go: kzbin.info/www/bejne/h5Wxe4iFn7NjZqM
Episode 31: Structured Configuration Management with YAML: kzbin.info/www/bejne/pJ7McmSEjcSEn9E
📌 Don’t Forget:
Like, subscribe, and hit the notification bell for more coding tutorials that bring your skills to the next level!
#Golang #JWTAuthentication #WebSecurity #GoProgramming #GinGonic #GORM #JSONWebTokens #AuthenticationTutorial #WebDevelopment #CodeTutorial #Gin #GinGonic
#JWT
------------------------------------------------------------------------------------------------------------------------------
Buy my book 'Functional Programming with Go' here:
- Amazon India: amzn.to/3VTUlxl
- Amazon US: www.amazon.com/Functional-Programming-Go-implementation-English/dp/9355519877
- BPB Online: in.bpbonline.com/products/functional-programming-with-go

Пікірлер: 10
@swapnilsarkar2623
@swapnilsarkar2623 5 ай бұрын
Great. Please continue with the go series. If possible, do try to cover microservice architecture using golang in the future as well. Thanks for the videos, learning a ton.
@codeheim
@codeheim 5 ай бұрын
Great suggestion! Will try to cover it. Added to my list.
@peace-doctor
@peace-doctor 5 ай бұрын
can you make this without gin or any framework
@codeheim
@codeheim 5 ай бұрын
Added this to my list. Thank you!
@fullstackninjas
@fullstackninjas 5 ай бұрын
Nice can you use aws cognito with go
@codeheim
@codeheim 5 ай бұрын
Yes of course. Added it to my list.
@peace-doctor
@peace-doctor 5 ай бұрын
can you make without gin or frameworks
@codeheim
@codeheim 4 ай бұрын
Sure, will try.
@ushakov_31293
@ushakov_31293 5 ай бұрын
Is it AI generated voice?
@codeheim
@codeheim 5 ай бұрын
Yes, it is.
Ozoda - Lada ( Official Music Video 2024 )
06:07
Ozoda
Рет қаралды 30 МЛН
Зу-зу Күлпаш 2. Интернет мошенник
40:13
ASTANATV Movie
Рет қаралды 611 М.
This mother's baby is too unreliable.
00:13
FUNNY XIAOTING 666
Рет қаралды 38 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 26 МЛН
Evolution of the Samsung Galaxy
0:50
ios_aesthetics
Рет қаралды 9 МЛН
Is this Samsung's change over time #shorts
0:13
Si pamerR
Рет қаралды 1,5 МЛН
The damaged battery head isrepaired. #Battery #Repair
0:21
Hak Hang
Рет қаралды 35 МЛН