Skip to content
/ SSO Public

πŸ”’ Single Sign-On authentication scheme implementation based on gRPC technology

License

Notifications You must be signed in to change notification settings

Sem4kok/SSO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

76 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”’ Single-Sign On [SSO] πŸ”’

🧩 πŸ”¬ An SSO service that supports a microservice architecture {auth, user-info, premission} - microservices.

πŸ›‘οΈ βš”οΈ Responsible for registering users, storing their data in a secure form in the database, authentication, checking for administrator rights.

🌐 πŸ› οΈ The server uses Remote Procedure Call is a technique for building distributed systems.

Technologies Stack

  • jwt tokens-JWT γ…€γ…€γ…€γ…€γ…€γ…€γ…€|| crypto - bcrypt
  • env\flag parse-cleanenv γ…€γ…€γ…€|| logger - slog
  • request generator - gofakeit γ…€|| testing - testify
  • db migration-Goose γ…€γ…€γ…€γ…€γ…€|| db - sqlite
  • rpc framework gRPCγ…€γ…€γ…€γ…€γ…€|| client - postman

API Reference

Register

  Auth/Register
Parameter Type Description
email string Required. User email
password string Required. User password
{
    "email": "Goblin@sosamuzik.com",
    "password": "FreeSosaPlatina67@!"
}

Login

  Auth/Login
Parameter Type Description
email string Required. User email
password string Required. User password
app_id int32 User has to choose app
{
    "email": "Goblin@sosamuzik.com",
    "password": "FreeSosaPlatina67@!"
    "app_id": 1
}

IsAdmin

  Auth/IsAdmin
Parameter Type Description
user_id int64 Required.
{
    "app_id": 8952812
}

Run Locally

Clone the project

  git clone https://github.com/Sem4kok/SSO

Go to the project directory

  cd SSO

Make DataBase migrations

  make migrate

Start the auth server

  make auth

If you want to rewrite protobuf contract then you have to

  make protoc

About

πŸ”’ Single Sign-On authentication scheme implementation based on gRPC technology

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published