I just double checked and that cookie doesn’t get set in our project, even after it shows as login successful in Auth0 logs. Does this indicate that the Auth0 middleware isn’t picking up and setting User.Identity
after a successful login? Is there anyway that I can try to debug why this is happening?
I thought that perhaps this was the hardwired into the Auth0 library to process the login and set the cookie and that changing it might break the flow. Good to get the confirmation that it doesn’t.
Yes, I am aware of that thank you. Auth0 is pretty good at displaying an error message when paths aren’t allowed. It’s the silent failing that’s a nightmare to debug!
Thanks, I’ll post on their forums also.
Bp stands for business partners. The path was originally /business-partners
but I changed it to /bp
in case the hyphen was causing the path to be misunderstood somehow!
This is the area of the website that we want to hide behind the Auth0 login. It’s a kind of user area that allows setting of user preferences and posting product orders.
The 404 occurs only with the default callback /signin-auth0
. It redirects fine when the CallbackPath is set to a custom PathString.
It’s mind boggling, why a copy of the project would redirect to the website root before any attempt at login! I’m lost as to what to try next.