Enrol an Authenticator During Login
curl --request POST \
--url https://api.studio.prisme.ai/oidc/interaction/{grant}/mfa/setup \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.studio.prisme.ai/oidc/interaction/{grant}/mfa/setup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/oidc/interaction/{grant}/mfa/setup"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"secret": "<string>",
"qrImage": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "ObjectNotFound",
"message": "<string>",
"details": "<unknown>",
"level": "warn"
}OIDC
Enrol an Authenticator During Login
Generate a fresh TOTP secret and its QR code for a pending mfa interaction. No password re-authentication is required: reaching the mfa prompt already proves the primary factor was completed in this same interaction. The secret is stored as unconfirmed and only becomes active once a first valid code is submitted to POST /oidc/interaction//mfa. Returns 409 when an authenticator is already enrolled — an enrolled account must answer its existing authenticator instead.
POST
/
oidc
/
interaction
/
{grant}
/
mfa
/
setup
Enrol an Authenticator During Login
curl --request POST \
--url https://api.studio.prisme.ai/oidc/interaction/{grant}/mfa/setup \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.studio.prisme.ai/oidc/interaction/{grant}/mfa/setup', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/oidc/interaction/{grant}/mfa/setup"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"secret": "<string>",
"qrImage": "<string>"
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "ObjectNotFound",
"message": "<string>",
"details": "<unknown>",
"level": "warn"
}Was this page helpful?