validate
Validate login MFA request
This endpoint validates a login request which is subject to MFA validation.
Method | Path |
---|---|
POST | /sys/mfa/validate |
Parameters
mfa_request_id
(string: <required>)
– A unique identification of an MFA restricted login request. This can be found in the MFA requirement included in the auth response of the login request.mfa_payload
(map<string|[]string>: <required>)
- A map of login MFA methodIDs to passcode credentials. MFA methodIDs are UUID strings which are used as keys of the map. The values of the map are string slices. In cases where an MFA method is configured not to use passcodes, the passcode remains an empty string.
Sample payload
As of Vault 1.13.0, it is also possible to use an MFA method name as the key to the mfa_payload
.
In versions 1.12.x and below,passcode=
was used for Duo MFA only. Starting in version 1.13.x, passcode=
is optional for all supported MFA methods.
Sample response
In cases where MFA validation fails, a 403 status code is returned with the details about the error. If MFA validation succeeds, the response is identical to a successful login request which contains a client token and its accessor.