Customize the UI of the MFA text page

Hello everyone,
I would like to customise the MFA page, I know I can customise the page, but not the widget.

I’ve started with a rule which redirect the user to a page, and from there I make a call to my backend and send a challenge, but I’m experiencing 2 issues.

  1. I need the user password to get the mfa_token
  2. Even if I put the password, I get an error: Redirection is not available on /oauth/token endpoint.

Can someone help me on it please ?
Or maybe there is a better way to achieve what I want to do ?

Thank you very much.

Ok, I just found this great example :

I’m just curious by the message : Redirection is not available on /oauth/token endpoint.

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?