token/

directory
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT

README ΒΆ

Token Service 🎫

The service is responsible for ONLY validating the access token

Features πŸš€

Token
  • Validate the access token

Flow 🌊

  • Token Validation
    • User sends the access token as grpc request to the token service.
    • Token service validates the access token.
    • Token validation takes in consideration the following:
      • Token is not expired
      • user's client-ip header matches the one stored in the token
      • user's user-agent header matches the one stored in the token
sequenceDiagram
    autonumber
    Service->>+Token Service: Send access token
    Token Service->>Token Service: Validate access token
    Token Service-->>-Service: Return UserID

Directories ΒΆ

Path Synopsis
internal

Jump to

Keyboard shortcuts

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