User Service

The user service will handle native media magic platform authentication going forwards, and will replace the Auth0 integration.

This will mean storing useful user information in our own system, and not having to reach out to and from Auth0 to manage this.

The user service will also handle things such as verifying an user's email address.

Authentication / Integration / Flow

sequenceDiagram

actor User
participant ClerkFrontEnd
participant MediamagicAPIGateway
participant UserService
participant DownstreamService
participant UserMetadata

User -> ClerkFrontEnd: Login
ClerkFrontEnd -> Clerk: LoginRequest
Clerk -> ClerkFrontEnd: LoginResponse(ClerkJWTToken)
ClerkFrontEnd -> MediamagicAPIGateway: Request(ClerkJWTToken)
MediamagicAPIGateway -> Clerk: Validate(ClerkJWTToken)
Clerk -> MediamagicAPIGateway: ValidateResponse(ClerkUserID)
MediamagicAPIGateway -> UserService: GetUserByClerkUserID
UserService -> MediamagicAPIGateway: ReturnUserMetadata
MediamagicAPIGateway -> DownstreamService: Request(UserMetadata)
DownstreamService -> User: Response

Last updated