auth_service

module
v0.0.0-...-3285ba3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0

README

Auth service

This statistics microservice is written in the Golang programming language and uses the rpc protocol to interact with other services.

This microservice is responsible for authentication/registration/password recovery.

Configuration

The statistics microservice has some configuration parameters that can be configured via environment variables or a configuration file. By default, it uses the following parameters:

JWT_SECRET="AAA" # Jwt secret

PORT=":50051" # Port

DB_HOST="db"  # for connect to the database
DB_USER="author"  # for connect to the database
DB_NAME="gostat_auth_service"  # for connect to the database
DB_PASSWORD="password"  # for connect to the database
DB_SSLMODE="disable"  # for connect to the database

API

  • Login - Log into your account

Request:

message LoginRequest {
  string login = 1;
  string password = 2;
}
  • Registration - Registration new user

Request:

message RegistrationRequest {
  string login = 1;
  string mail = 2;
  string password = 3;
  string first_name = 4;
  string last_name = 5;
  string middle_name = 6;
}

Directories

Path Synopsis
cmd
internal
pkg
env

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL