Authenticates a user.
Authenticates a user.
- application/json
Request Body required
- username string required
- password string required
Responses
- 200
- 401
- 404
Ok
- application/json
- Schema
- Example (from schema)
Schema
- ErrorCode string
- ErrorMessage string
- InvalidField string
- TimeGenerated string
Result object
Object used for returning the tokens
accessToken string requiredrefreshToken string required
{
"ErrorCode": null,
"ErrorMessage": null,
"InvalidField": null,
"TimeGenerated": "2023-07-31T07:45:58.869396Z",
"Result": {
"accessToken": "security.access.token",
"refreshToken": "security.refresh.token"
}
}
Access token is missing or invalid
- application/json
- Schema
- Example (from schema)
Schema
- ErrorCode string
- ErrorMessage string
- InvalidField string
- TimeGenerated string
- Result object
{
"ErrorCode": "client.unauthorized.error",
"ErrorMessage": "The client is not authorized",
"InvalidField": null,
"TimeGenerated": "2023-07-31T07:45:58.869396Z",
"Result": null
}
The resource you are trying to acces doesn't exist.
- application/json
- Schema
- Example (from schema)
Schema
- ErrorCode string
- ErrorMessage string
- InvalidField string
- TimeGenerated string
- Result object
{
"ErrorCode": "client.notfound.error",
"ErrorMessage": "The resource you are trying to acces doesn't exist",
"InvalidField": null,
"TimeGenerated": "2023-07-31T07:45:58.869396Z",
"Result": null
}
Loading...