Module headless_lms_server::controllers::auth

source ·
Expand description

Handlers for HTTP requests to /api/v0/auth.

Structs§

Functions§

  • POST /api/v0/auth/authorize checks whether user can perform specified action on specified resource.
  • POST /api/v0/auth/authorize-multiple checks whether user can perform specified action on specified resource. Returns booleans for the authorizations in the same order as the input.
  • GET /api/v0/auth/logged-in Returns the current user’s login status.
  • POST /api/v0/auth/login Logs in to TMC.
  • POST /api/v0/auth/logout Logs out.
  • Posts new user account to tmc.mooc.fi.
  • POST /api/v0/auth/signup Creates new mooc.fi account and signs in.
  • GET /api/v0/auth/user-info Returns the current user’s info.