I want to add a “back to application” button to our customized universal login page and enable MFA page (using Liquid syntax). Because our application is available from multiple domain this button needs to link to the correct domain, based on where the user came from. It’s possible to determine this based on the redirect URI.
I came across an older post with the same question where it is suggested that
application.callback_domain may work, but that variable is empty in my testing.
I also attempted to use custom parameters, but those can only be set via the
/authorize endpoint. As such this can work for a login page, but I am unable to set/retrieve a custom parameter for the enable MFA page.
Is there a way to access the redirect URI in the universal login page or is there another approach I can take?