Confirm the required enrolment and receive the session
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm \
--header 'Content-Type: application/json' \
--data '
{
"challenge_token": "<string>",
"code": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm"
payload = {
"challenge_token": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({challenge_token: '<string>', code: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm"
payload := strings.NewReader("{\n \"challenge_token\": \"<string>\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"recovery_codes": [
"<string>"
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}Confirm the required enrolment and get a session
Confirms the authenticator with its first code, switches the factor
on, and issues the session the login was held for. Each attempt counts
against the challenge’s attempt limit before the code is checked, and
success spends the challenge. The recovery codes are returned once.
SSO enforcement and the owner break-glass apply as at
/auth/mfa/verify.
POST
/
auth
/
mfa
/
required-enrollment
/
confirm
Confirm the required enrolment and receive the session
curl --request POST \
--url https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm \
--header 'Content-Type: application/json' \
--data '
{
"challenge_token": "<string>",
"code": "<string>"
}
'import requests
url = "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm"
payload = {
"challenge_token": "<string>",
"code": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({challenge_token: '<string>', code: '<string>'})
};
fetch('https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.trustivan.com/api/v1/auth/mfa/required-enrollment/confirm"
payload := strings.NewReader("{\n \"challenge_token\": \"<string>\",\n \"code\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"recovery_codes": [
"<string>"
]
}{
"error": "<string>",
"code": "validation_failed",
"required_scope": "<string>",
"principal": "user"
}