https://github.com/iammukeshm/jwt-authentication-golang
Implementing JWT Authentication in Golang REST APIs and securing it with Authentication Middleware.
https://github.com/iammukeshm/jwt-authentication-golang
go golang golang-jwt jwt jwt-authentication security
Last synced: about 1 year ago
JSON representation
Implementing JWT Authentication in Golang REST APIs and securing it with Authentication Middleware.
- Host: GitHub
- URL: https://github.com/iammukeshm/jwt-authentication-golang
- Owner: iammukeshm
- License: mit
- Created: 2022-04-23T13:11:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-24T16:45:16.000Z (about 4 years ago)
- Last Synced: 2025-05-01T10:12:27.741Z (about 1 year ago)
- Topics: go, golang, golang-jwt, jwt, jwt-authentication, security
- Language: Go
- Homepage: https://codewithmukesh.com/blog/jwt-authentication-in-golang/
- Size: 16.6 KB
- Stars: 47
- Watchers: 1
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Implementing JWT Authentication in Golang
In this article, we will learn about implementing JWT Authentication in Golang REST APIs and securing it with Authentication Middleware. We will be building a simple, yet neatly organized Golang REST API with packages like Gin for Routing (mostly), GORM for persisting user data to a MySQL Database, and so on.

Topics covered:
- JWT Explained
- What we will Build?
- Gin Framework – Quick Introduction
- Setting up Database with GORM
- User Registration & Password Hashing
- Generating JWTs
- Authentication Middleware to Valid JWTs
- Gin Routing & Grouping
- Testing Golang API with VSCode REST Client
Read the entire article here: https://codewithmukesh.com/blog/jwt-authentication-in-golang/