Skip to content

User Service #2

@slhmy

Description

@slhmy
  1. User RPC Service.
  2. Web UI & API with GitHub login, generate session & JWT token for further requests.
  3. Management Dashboard, we can set site admin role for the user, with such role user can access admin interface.

Related Issues

  1. Enforcer in AuthInterceptor user-service#1
  2. Session refreshing reference user-service#2

Questions

  1. If the following logic should be placed in session middleware:
    md := metadata.Pairs("authorization", "Bearer "+userToken)
    ctx := metadata.NewOutgoingContext(c.Request().Context(), md)
    // Get current user information
    user, err := userServiceClient.GetCurrentUser(ctx, &emptypb.Empty{})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions