Authentication and password management API reference for OT monitoring sensors

This article lists the authentication and password management APIs supported for Defender for IoT OT sensors.

set_password (Change your password)

Use this API to let users change their own passwords.

You don't need a Defender for IoT access token to use this API.

URI: /external/authentication/set_password

POST

Type: JSON

Example:

request:

{
    "username": "test",
    "password": "Test12345\!",
    "new_password": "Test54321\!"
}

Request parameters

Name Type Required / Optional
username String Required
password String Required
new_password String Required

set_password_by_admin (Update a user password by admin)

Use this API to let system administrators change passwords for specified users. Defender for IoT administrator user roles can work with the API.

You don't need a Defender for IoT access token to use this API.

URI: /external/authentication/set_password_by_admin

POST

Type: JSON

Request example

request:

{
    "admin_username": "admin",
    "admin_password: "Test0987"
    "username": "test",
    "new_password": "Test54321\!"
}

Request parameters

Name Type Required / Optional
admin_username String Required
admin_password String Required
username String Required
new_password String Required

validation (Validate user credentials)

Use this API to validate a Defender for IoT username and password.

You don't need a Defender for IoT access token to use this API.

URI: /api/external/authentication/validation

POST

Request type: JSON

Query parameters

Name Type Required/Optional
username String Required
password String Required

Request example:

request:
{
    "username": "test",
    "password": "Test12345\!"
}

Next steps

For more information, see the Defender for IoT API reference overview.