Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid State #16

Open
peteralewis opened this issue Aug 24, 2022 · 1 comment
Open

Invalid State #16

peteralewis opened this issue Aug 24, 2022 · 1 comment

Comments

@peteralewis
Copy link

When running through the Xero connection login within the CMS, it gets through to the permission for access panel (Xero side) and when selecting "Allow Access", it returns to the CMS with the correct return URL, but shows a white screen with the error "invalid state" (generated on line 95 of the below file).

I looked up on Xero developer portal and verified the "state" code was in the URL and the handshake was done all at the same time, so couldn't have timed out. Digging into the plugin code (src/controllers/AuthController.php line 91), the state query string is present, so has to be that it's not matching the session oauth2state variable. I couldn't find how the state variable is originally passed to Xero for it to be able to return it...?

Any help appreciated as this is a blocker.

@peteralewis
Copy link
Author

Also the docs might need to be updated as this seems to be the latest integration popup:
Screenshot 2022-08-24 at 17 19 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant