Skip to content

willianmga/social-chat-auth-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Chat Auth Service

Authentication Service of SocialChat

Links

Related Repos

Features

  • Authentication
  • Logoff
  • JWT Token Validation
  • Signup

Technologies

  • Spring WebFlux and Spring Boot
  • MongoDB Database
  • Docker and Docker compose
  • Deployment to AWS and Heroku
  • JWT Tokens
  • BCrypt hashes
  • Java 8
  • Maven

Endpoints

  • POST /v1/auth : Authenticates a user and creates a session
  • POST /v1/auth/logoff : Invalidates a previously created session
  • POST /v1/auth/token/valid : Validates a JWT token confirming whether a session is valid or not.
  • POST /v1/signup : Registers and authenticates a new user

Environment Variables Accepted

  • CHAT_MONGO_SERVER
  • CHAT_MONGO_USERNAME
  • CHAT_MONGO_PASSWORD
  • CHAT_MONGO_AUTH_DATABASE
  • CHAT_MONGO_DATABASE
  • CHAT_MONGO_CONNECTION_STRING
  • JWT_SECRET_KEY