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

requests redirect with hash rather than query #24

Open
nazrhyn opened this issue Oct 28, 2016 · 0 comments
Open

requests redirect with hash rather than query #24

nazrhyn opened this issue Oct 28, 2016 · 0 comments

Comments

@nazrhyn
Copy link

nazrhyn commented Oct 28, 2016

Hello, oauth.io.

I've set up two routes using OAuth.auth and OAuth.redirect in my Node.js app with Express. I forgot to add my domain to the whitelist and tried to visit the auth route. It called back to my redirect route with the error, but did so like this:

/redirect#oauthio=<url-encoded-json>

...rather than this:

/redirect?oauthio=<url-encoded-json>

That caused it to relay this error:

Error: Could not find oauthio in query string

Changing the # to a ? resulted in the expected error:

Error: Origin "<redirect-url>" does not match any registered domain/url on oauth.io

I assume this is not intended?

Thanks!

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