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, for example follow .env.example
  • To add all dependencies for a package in your module go get . in the current directory

Lets Run

  • go run main.go or go build main.go and run ./main
  • The application should be available and running on localhost:8000

Docker Run

  • Docker build docker build . -t server
  • Docker Run docker run -p 8000:8000 -it server
Owner
Al Mamun Khan
Software Engineer
Al Mamun Khan
Similar Resources

๐Ÿ”’ 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

A Sample Integration of Google and GitHub OAuth2 in Golang (GoFiber) utilising MongoDB

Go Oauth Server This is sample OAuth integration written in GoLang that also uses MongoDB. This is a sample TODO Application where people can Create a

Dec 27, 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

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 Rest Api with basic JWT Authentication and Basic Crud Operations.

๐Ÿ”ฅ Golang Rest Api with basic JWT Authentication and Basic Crud Operations.

Oct 4, 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

This is an implementation of JWT in golang!

jwt This is a minimal implementation of JWT designed with simplicity in mind. What is JWT? Jwt is a signed JSON object used for claims based authentic

Oct 25, 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
Go-gin-jwt - Secure web api using jwt token and caching mechanism

Project Description This project demonstrate how to create api and secure it wit

Jan 27, 2022
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
Golang Mongodb Jwt Auth Example Using Echo
Golang Mongodb Jwt Auth Example Using Echo

Golang Mongodb Jwt Auth Example Using Echo Golang Mongodb Rest Api Example Using Echo Prerequisites Golang 1.16.x Docker 19.03+ Docker Compose 1.25+ I

Nov 30, 2022
backend implementation demonstration in go with JWT, MongoDB and etc.

backend implementation demonstration in go with JWT, MongoDB and etc.

Nov 19, 2022
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
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
Krakend-jwt-header-rewriter - Kraken Plugin - JWT Header Rewriter

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

Feb 15, 2022
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: { "sta

Dec 31, 2021
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