Categorygithub.com/sagarmaheshwary/microservices-authentication-service
module
0.0.0-20250102172803-8f3d3f1ae3e1
Repository: https://github.com/sagarmaheshwary/microservices-authentication-service.git
Documentation: pkg.go.dev

# README

MICROSERVICES - AUTHENTICATION SERVICE

This service is a part of the Microservices project built for handling authentication and authorization stuff.

TECHNOLOGIES

  • Golang (1.22.2)
  • Redis (7.2)
  • gRPC
  • JWT

SETUP

cd into the project directory and copy .env.example to .env and update the required variables.

Create executable and start the server:

go build cmd/server/main.go && ./main

Or install "air" and run it to autoreload when making file changes:

air -c .air-toml

APIs (RPC)

SERVICERPCMETADATADESCRIPTION
AuthServiceRegister-User registration via user microservice RPC
AuthServiceLogin-User login via user microservice
AuthServiceVerifyTokenBearer token in "authorization" headerToken verification and getting user data via user microservice
AuthServiceLogoutBearer token in "authorization" headerUser logout by adding token to redis blacklist.

# Packages

No description provided by the author