sessions handled by devise_token_auth gem


DELETE /api/auth/user/sign_out
log out

aka end session


POST /api/auth/user/sign_in
login

authenticate using email and password. Response includes user’s content preferences

Examples

{"success":true,"data":{"id":1,"email":"somebody@example.com","name":"Somebody","role":"role","uid":"somebody@example.com","provider":"email","content_preferences":[{"kind":"que-es","level":1, "order":0},...]}}

Params

Param name Description
login
required

Validations:

  • Must be a String

password
required

Validations:

  • Must be a String


POST /api/auth/user/key_authorize
login using `authorization_key`

authenticate using login and authorization key. Response includes user’s content preferences

Params

Param name Description
login
required

Validations:

  • Must be a String

authorization_key
required

Validations:

  • Must be a String