Verifies that user credentials are valid.

Method

POST /identity/verify

Parameters

Request Body

A JSON object with the following properties:

Name Type Description
username String The username of a user.
password String A password of a user.

Result

A JSON object containing username and current authentication status.Its properties are as follows:

Name Value Description
authenticatedUser String An id of authenticated user.
isAuthenticated boolean A flag indicating if user is authenticated.

Response Codes

Code Media type Description
200 application/json Request successful.
400 application/json If body does not contain username or password.

Example

Request

POST /identity/verify

Request Body:

  1. {
  2. "username": "testUser",
  3. "password": "testPassword"
  4. }

Response

Status 200.

Response Body:

  1. {
  2. "authenticatedUser": "testUser",
  3. "isAuthenticated": true
  4. }

原文: https://docs.camunda.org/manual/7.9/reference/rest/identity/verify-user/