approve-auth

module
v0.0.0-...-923a007 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2022 License: MIT

README

approve-auth

auth service, a part of task approval microservice system

auth service implements REST API for users to login/logout using JWT. Service checks validity of JWT tokens passed from other services (task and analytics) via gRPC.

User interaciton

User authenticates with basic-authentication (path /login), predefined logins and password-hashes located in config-file. Service replies with jwt-cookie with user's name and a lifetime of 1 minute and a refresh token with user's name valid during 1 hour. After 1 hour user is to be unauthotized. Path /logout sends empty pair of cookies access and refresh. Service uses json.

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

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