OpenapiAuth
Enterprise (LDAP) directory login.
Authenticates the submitted username/password against the Realm's configured directory (search-then-bind), matches or JIT-provisions the Herald account, and then runs the full existing login pipeline (2FA / consent / OAuth code / session issuance), auditing `method="ldap"`.
POST
Authenticates the submitted username/password against the Realm's
configured directory (search-then-bind), matches or JIT-provisions the
Herald account, and then runs the full existing login pipeline
(2FA / consent / OAuth code / session issuance), auditing
method="ldap".
realmId*stringRealm ID
application/json- body
agreements?array<>|nullclientId*stringoauthClientId?string|nullpassword*stringredirectUri?string|nullstate?string|nullturnstileToken?string|nullusername*stringLogin succeeded (token) or an in-flight branch flag.
application/json- response
accessToken*stringexpiresIn*integerFormat
int64Range
0 <= valuerefreshExpiresIn*integerFormat
int64Range
0 <= valuerefreshToken*stringtokenType*stringcurl -X POST 'https://example.com/api/auth/string/login/ldap' \
-H 'Content-Type: application/json' \
-d '{
"clientId": "string",
"password": "string",
"username": "string"
}'Example Response
{
"accessToken": "string",
"expiresIn": 0,
"refreshExpiresIn": 0,
"refreshToken": "string",
"tokenType": "string"
}