External Authentication via REST API
This page explains how to format and handle external authentication messages using the REST API.
Overview
During authentication, the REST API connector sends a POST request to your web server (API endpoint) in JSON format. The content of the request depends on the authentication method used (e.g., PAP, MS-CHAP, TTLS-PAP).
Note: Each request includes an API token in the
Authorization
Request Parameters
| Parameter | Description |
|---|---|
| The user's username |
| The user's password (only available with PAP or TTLS+PAP) |
| RADIUS server authentication port that received the request |
| MS-CHAP challenge (only if using MS-CHAP) |
| MS-CHAP response (only if using MS-CHAP) |
Sample Request
Response Handling
✅ Success (2xx Status Code)
A
2xx
❌ Failure (4xx Status Code)
A
4xx