Skip to content

requests redirect with hash rather than query #24

Description

@cognisent

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions