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

example #2

Open
karol-pietrzak opened this issue Feb 1, 2021 · 1 comment
Open

example #2

karol-pietrzak opened this issue Feb 1, 2021 · 1 comment

Comments

@karol-pietrzak
Copy link

karol-pietrzak commented Feb 1, 2021

Your example seems to be not working. Its throwing {"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorizatio (truncated...)

Could you help me with that ?

am i right that docs says that i should be asking for access_token here services/oauth/access_token and sso-auth package is asking services/oauth/token ?

i was trying to debug by myself there but hit the wall

Also i think urls should be .com instead .io

@AdrianAdamiec
Copy link
Contributor

unsupported_grant_type - you should check your app permissions in the partners system. If you are changing permissions please remember to generate new access token.
We have two ways how you can authorize. The old way which is written in our docs based on oauth1.1 and the new one based on our sso system. Store client sdk uses sso authorization(https://github.com/Shoplo/sso-auth) and we recommend using it.

You're right urls should end with .com and we'll fix it.

If you still have a problem with connecting with our api please write to us on help@shoplo.com and attach an example of code that you are using.

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

2 participants