msa-event-market_service-auth

module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0

README

msa-event-market_service-auth service-auth

service-auth is the service responsible for user management and authentication/authorization in the msa-event-market Project. service-auth follows this considerations

  • Architecture
  • ER Diagram

Authentication/Authorization

service-auth uses simple authentication based on ID/Password. A user can get the access token and refresh token based on JWT required for authentication/authorization by entering ID/Password. Passwords are encrypted and stored using the PBKDF2 algorithm.

In JWT token contains the following information.

  • User ID (UUID)
  • Login ID
  • Role (admin, user)

Used main external packages and tools

service-auth uses following external packages and tools.

Development Environment

  • Golang Version : 1.16
Required CLI
  • For HTTP Server, Swagger
// MacOS
$ go install github.com/deepmap/oapi-codegen/cmd/oapi-codegen@v1.6.0
$ go install github.com/mikefarah/yq/v4
  • For GRPC Server
// MacOS
$ brew install protobuf
$ go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.1
  • For Test, CI
// MacOS
$ brew install jq
$ brew install mockery
$ go install github.com/fullstorydev/grpcurl/cmd/grpcurl@v1.8.7
$ go install github.com/nektos/act@latest

Reference

Directories

Path Synopsis
cmd
internal
server/http_server
Package http_server provides primitives to interact with the openapi HTTP API.
Package http_server provides primitives to interact with the openapi HTTP API.
pkg

Jump to

Keyboard shortcuts

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