Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit55164f5

Browse files
authored
Update readMe.md
1 parentac353a2 commit55164f5

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

‎readMe.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
1-
#Build Golang RESTful API with Gorm, Gin and Postgres
1+
#API with Golang + GORM + PostgreSQL: Access & Refresh Tokens
2+
3+
![API with Golang + GORM + PostgreSQL: Access & Refresh Tokens](https://codevoweb.com/wp-content/uploads/2022/08/API-with-Golang-GORM-PostgreSQL-Access-Refresh-Tokens.webp)
4+
5+
This article will teach you how to secure a Golang application with access and refresh tokens using GORM, Postgres, Docker, and Docker-compose. Also, you will learn how to use the RS256 algorithm with private and public keys to sign the tokens.
6+
7+
##Topics Covered
8+
9+
- Golang, Gin & GORM JWT Authentication Overview
10+
- JWT Authentication Example with Golang and GORM
11+
- Generate the Private and Public Keys
12+
- Load and Validate the Environment Variables
13+
- Create the Database Models with GORM
14+
- Run the Database Migration with GORM
15+
- Hash and Verify the Passwords with Bcrypt
16+
- Sign and Verify the RS256 JSON Web Tokens
17+
- Function to Generate the Tokens
18+
- Function to Verify the Tokens
19+
- Create the Authentication Route Controllers
20+
- Register User Controller
21+
- Login User Controller
22+
- Refresh Access Token Controller
23+
- Logout Controller
24+
- Create a Middleware Guard
25+
- Create a User Controller
26+
- Authentication Routes
27+
- User Routes
28+
- Add the Routes to the Gin Middleware Stack
29+
30+
Read the entire article here:[https://codevoweb.com/golang-gorm-postgresql-user-registration-with-refresh-tokens](https://codevoweb.com/golang-gorm-postgresql-user-registration-with-refresh-tokens)
31+
32+
Articles in this series:
233

334
###1. How to Setup Golang GORM RESTful API Project with Postgres
435

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp