Last Updated: Sep 24, 2024
Overview
When there is a redirect from an action and it is particularly desired to trigger an /authorize request and send a state, it might be observed that the state parameter is overridden in the action by its action state. This article details how to have the “state” parameter customizable in the actions.
Applies To
- Action Redirect
- Add Parameter
Solution
Sending an internal state with redirects from actions is by design, as the state parameter is used with the continue endpoint to find the active state for the user logging in, as documented here.
As a workaround, instead of attempting to redirect to the login page directly, redirect to an owned application and pass the state with a custom parameter like “customstate”. The app then can perform a second redirect to the Auth0’s login page with the state parameter the same as the “customstate” value.