Skip to content

BrunoMartins11/Auth-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auth-Service

Authentication service written in Golang with a MongoDB database

Endpoints

  • /SignUp
  • /SignIn
  • /Validate

SignUp

Request fields: Username, Password
Writes username and password (with hash and salt) in the database

SignIn

Request fields: Username, Password
Returns a json with a JWT token and an expiration time

Validate

Request fields: JWT Token
Validates the token in the request

Usage

First

Get dependencies
go get go.mongodb.org/mongo-driver

Build

make build

Generates an executable

Run

make run

Runs the server

About

Authentication service written in Golang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published