I have a need to retain data about a page when a user is taken to the auth0 login page so when they are authenticated, info about the page they came from is passed or saved so I can continue to process the information. As mentioned elsewhere here, localStorage, cookies, and sessions are not feasible, especially after email verification. We are using SDK/PHP for web application.
Thanks.
Hi @chris.howell,
Thanks for reaching out!
Please see my comment here: How to retrieve the referrer URL in an Auth0 Post Login Action? - #3 by marybeth.hunter
I used the acr_values
property in my application to save the original URL (window.location.origin
) and access it in an Action. In the Action, you could save it to the user’s metadata or set it as a custom claim.
Let me know if you have any questions!
Thanks,
Mary Beth
Thank you for your response. Unfortunately, that really did not help as we are using PHP SDK to authenticate. Is there a way to pass in the referrer page via the login? How would we go about doing that?
Hi @chris.howell,
I understand - please allow me some time to look into an alternative solution for you!
Thanks,
Mary Beth