A simple user identify template with jwt token and gin, toy project

Simple Docs

Register

url : /api/auth/register

param type value
name string username
password string password
mailbox string mailbox

response:

{
  "status": 1,
  "message": "Succeed",
  "data": {}
}
param type value
status bool 1 / 0
message string "Succeed" / "InvalidArgument" /"UnknownPasswordContentType" / ""UserExist"
data object null

Login

url : /api/auth/login

param type value
mailbox string mailbox
password string password

response:

{
  "status": 1,
  "message": "Succeed",
  "data": {
    "token": "114514 1919810"
  }
}
param type value
status bool 1 / 0
message string "Succeed" / "InvalidArgument" / "MailboxUnMatchPassword"
data object {"token" : tokenString}
Similar Resources

Lastweek - Given a username and/or GitHub access token, this tool will provide a report of the work done by the user last week

lastweek Given a username and/or GitHub access token, this tool will provide a r

Oct 1, 2022

Golang based User creation and Management application. GORM, Fiber, JWT

User Creation and Management app (BACK-END) Auth Features: Create Clients (regular password + 6 one-time passwords + (optional) QR code and Secret for

Dec 2, 2022

Golang with JWT, Go Gin and MongoDB

User authentication in Golang with JWT, Go Gin and MongoDB Golang backend application that uses JWT tokens for users Locally Up Setup your .env file,

Sep 16, 2022

jwt package for gin go applications

gin-jwt jwt package for gin go applications Usage Download using go module: go get github.com/ennaque/gin-jwt Import it in your code: import gwt "gith

Apr 21, 2022

This is a jwt for Gin framework.

JWT for Gin Framework This is a jwt useful for Gin framework. It uses jwt-go to provide a jwt encode and decode token. Usage go get github.com/wyy-go/

Jan 9, 2022

๐Ÿ”’ JWT with RS-signing methods, designed for Gin.

GinRS ๅฅ—็”จๅœจ gin-gonic/gin ๅŸบๆ–ผ RS256 ๆผ”็ฎ—ๆณ•็š„ JWT ็ฐฝ็ฝฒๅฅ—ไปถใ€‚ ้žๅฐ็จฑ้‡‘้‘ฐ ้€้Ž openssl ็”ข็”Ÿไธ€ๅ€‹็ง้‘ฐใ€‚ openssl genrsa -out private.key 2048 ๅ†้€้Ž้€™ๅ€‹็ง้‘ฐ็”ข็”Ÿไธ€ๅ€‹ๅ…ฌ้‘ฐ๏ผŒ้€™ๅ€‹ๅ…ฌ้‘ฐๅฏไปฅ้…็™ผๅˆฐๅ…ถไป–ไผบๆœๅ™จๆˆ–ๆ˜ฏ็ฌฌไธ‰ๆ–น็š„ๆ‰‹ไธญ็”จไพ†้ฉ—่ญ‰

Feb 23, 2022

A single sign-on solution based on go-oauth2 / oauth2 and gin-gonic/gin

A single sign-on solution based on go-oauth2 / oauth2 and gin-gonic/gin

Nov 17, 2021

Go-auth - An authorization project using mongoDB, JWT and Go

Go-auth - An authorization project using mongoDB, JWT and Go

Ssibrahimbas Go-Auth An authorization project using mongoDB, JWT and Go. API Typ

Mar 10, 2022

A very simple HTTP reverse proxy that checks that requests contain a valid secret as a bearer token

bearproxy -- Authorization enforcing HTTP reverse proxy Bearproxy is a very simple HTTP reverse proxy that checks that requests contain a valid secret

Nov 11, 2021
Account-jwt-go - Simple JWT api with go, gorm, gin
Account-jwt-go - Simple JWT api with go, gorm, gin

Account JWT on Go Go, gorm, Gin web framework ๋ฅผ ํ™œ์šฉํ•˜์—ฌ ๋งŒ๋“  ๊ฐ„๋‹จํ•œ JWT API ์ž…๋‹ˆ๋‹ค. Dajngo์˜

Apr 14, 2022
Backend Development Rest Api Project for book management system. Used Features like redis, jwt token,validation and authorization.

Golang-restapi-project Simple Rest Api Project with Authentication, Autherization,Validation and Connection with redis File Structure โ”œโ”€โ”€ cache โ”‚ โ”œโ”€โ”€

May 25, 2022
simple-jwt-provider - Simple and lightweight provider which exhibits JWTs, supports login, password-reset (via mail) and user management.

Simple and lightweight JWT-Provider written in go (golang). It exhibits JWT for the in postgres persisted user, which can be managed via api. Also, a password-reset flow via mail verification is available. User specific custom-claims also available for jwt-generation and mail rendering.

Dec 18, 2022
Golang implementation of JWT and Refresh Token

Fiber and JWT with Refresh Token Repo ini adalah demostrasi JWT support refresh token tanpa menggunakan storage Branch Main: unlimited refresh token R

Dec 18, 2022
JWT wrapper library which makes it simple to use ECDSA based JWT signing

JWT JWT wrapper library which makes it simple to user ECDSA based JWT signing. Usage package main import ( "context" "github.com/infiniteloopcloud

Feb 10, 2022
This package provides json web token (jwt) middleware for goLang http servers

jwt-auth jwt auth middleware in goLang. If you're interested in using sessions, checkout my sessions library! README Contents: Quickstart Performance

Dec 5, 2022
Small Lambda function which performs a Aws:Sts:AssumeRole based on the presented JWT-Token

About This implements a AWS Lambda handler which takes a JWT-Token, validates it and then performs a Aws:Sts:AssumeRole based on preconfigured rules.

Aug 8, 2022
A command-line tool to visualize a JWT token's content, written in Go

jat A command-line tool to visualize a JWT token's content, written in Go. Usage jat <some-jwt> Install Navigate to the Releases page; Download the co

Jan 6, 2022
Verifier - Golang JWT token verifier with storage(default Redis)

verifier Golang JWT token verifier with storage(default Redis) Usage go get -u g

Nov 6, 2022
Krakend-jwt-header-rewriter - Kraken Plugin - JWT Header Rewriter

Kraken Plugin - JWT Header Rewriter 1 Plugin Configuration Name Desciption Defau

Feb 15, 2022