Skip to main content

Direct Login

POST Login

One of the Gateway APIs used to authenticate users, grant them access based on the privileges they are required to have, and grant them access to SynoFin LMS is the SynoFin Login API.

URL: {{base_url}}/login

Request
Request Type: POST

Request Body
{
      "username":"string",
      "password":"string"
}


*required


Request: 200
{
  "twoFactorEnabled": false,
  "response": true,
  "error": null,
  "data": {
    "response": true,
    "user_data": {
      "statusCode": "200",
      "message": null,
      "email": "string",
      "active": true,
      "name": "string",
      "success": false,
      "roles": [ ],
      "permissions": [ ],
      "user_name": "string",
      "user_id": 1918,
      "client_id": "string",
      "is_2fa_enabled": false
    },
    "auth_data": {
      "scope": "string",
      "client_id": "string",
      "service_token": "string",
      "access_token": "string",
      "token_type": "string",
      "refresh_token": "string",
      "expires_in": "string",
      "refresh_token_expiration": "string"
    },
    "error_message": null
  },
  "username": "string",
  "redirectUri": null,
  "baseToken": null
}