sdasilva
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [Login by Auth0] “Invalid State” Error upon Login@auth0josh
Thank you for the reply. I’ve followed the troubleshoot guide, however I wasn’t very luck in determining the exact problem. Here is what is happening with me as I follow the guide:- On step 2, I am asked to check if the
auth0_stateis being set. It is not. I then checked the console for errors and saw only the 500 response atindex.php - I proceeded to adding the suggested snippet to the top of my wp-config.php file. I tried to login in this manner and saw a non-empty
Array(). Because it was not an empty value, I did as told and checked the response headers for the callback URL loaded. There were NO responses listed with a 500 this time, I actually got a 200 OK response from the index. I did however find some evidence of caching, with amax-age= =600andx-cache: HIT: 1.In the response headers I did not find the directiveauth0_state=deleted, but I did see in the Cookies tab thatauth0_statehas a set value. - There was some evidence of caching, but the behavior did not quite match what was described in the guide. I then proceeded to edit the
WP_Auth0_LoginManager.phpfile. The guide suggests adding some code just before a specific line, however it seems the code was updated and the link in the guide no longer points to the correct location of where to add the code. I had to do some guesswork and added it here
After trying to login again, I can confirm that thestateparameter in the$_REQUESTdoes not match theauth0_stateof the$_COOKIE, which returns only an empty array.
All this seems to suggest that the cookie did change at some point, but I am not sure what to do form this point forward. What do you recommend? Thank you.
- This reply was modified 6 years, 4 months ago by sdasilva.
- On step 2, I am asked to check if the
Viewing 1 replies (of 1 total)