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

Encoding On redirect_uri #1094

Open
StrangeWill opened this issue Aug 30, 2024 · 1 comment
Open

Encoding On redirect_uri #1094

StrangeWill opened this issue Aug 30, 2024 · 1 comment
Labels

Comments

@StrangeWill
Copy link

In BuildAuthorizationUrl whatever URL we pass in is not URI encoded automatically, the documentation also does not suggest that we need to, however oauth spec seems to require that we URL encode our parameters (which makes sense, otherwise if we use query strings or the like in our redirect_uri, it'll clearly break)

Should this be handled by ShopifySharp or should our documentation be updated to suggest to follow spec?

@nozzlegear
Copy link
Owner

Hey! You're correct that it's not currently handled by ShopifySharp. What I've always done is just encode it myself before passing it to ShopifySharp, but I don't think that's very intuitive. If ShopifySharp is creating the final authorization uri, it makes sense that it'd be responsible for encoding the query parameters since it controls what goes into the query string.

At the very least, I could add a boolean to configure whether ShopifySharp should encode the query params or not.

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

No branches or pull requests

2 participants