Skip to content

ssup2-playground/msa-event-market_service-auth

Repository files navigation

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/[email protected]
$ go install github.com/mikefarah/yq/v4
  • For GRPC Server
// MacOS
$ brew install protobuf
$ go install google.golang.org/protobuf/cmd/[email protected]
$ go install google.golang.org/grpc/cmd/[email protected]
  • For Test, CI
// MacOS
$ brew install jq
$ brew install mockery
$ go install github.com/fullstorydev/grpcurl/cmd/[email protected]
$ go install github.com/nektos/act@latest

Reference