Hello
I have a registration inline hook that connects to our API to perform validations
If I want to return an error due to an invalid value in one attribute, what format should it be in order for the Widget to get it?
Currently I see in this call https://splunk-ext-poc.okta.com/idp/idx/enroll/new the messages
attribute saying:
"messages": {
"type": "array",
"value": [
{
"message": "Se ha producido un error al crear la cuenta. Intente registrarse de nuevo.",
"i18n": {
"key": "registration.error.generic",
"params": []
},
"class": "ERROR"
}
]
},
But it does not include my custom error
I’m trying to return a Commands object with the custom error like this:
{
"commands": [
{
"type": "com.okta.user.profile.update",
"value": {
"error": {
"reason": "CUSTOM_REASON_CODE",
"message": "Your custom validation message here"
}
}
}
],
"statusCode": 500
}
But the widget still receives the generic error message
Does anyone know where I could find more info?