Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 813 Bytes

Authentication.md

File metadata and controls

26 lines (19 loc) · 813 Bytes

MultiUser OAuth Description

Endpoints

authenticationProvider.tld/login -

  • User page to register / login to an account that they own.
  • They can see the list of existing accounts they're logged into.
  • Click on an existing account to switch on it, or click a 'manage' button.

authenticationProvider.tld/logout

  • Logs the current user out of the specified user account.

authenticationProvider.tld/api/auth?id=<id>?redirect=<redirect_URL>

  • Returns a user from a token, e.g. User { email: ..., name: ... }

Diagram

redis <-> token service <-> consumer ^ provider <-> consumer

Parts List

  • User
  • Consumer (lib-authentication-consumer + web-authentication-consumer)
  • Provider (web-authentication-provider)
  • Token Service (web-authentication-token-service)