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

Missing access-scopes in AuthorizationScope enum #692

Closed
bantikyan opened this issue Nov 27, 2021 · 2 comments
Closed

Missing access-scopes in AuthorizationScope enum #692

bantikyan opened this issue Nov 27, 2021 · 2 comments

Comments

@bantikyan
Copy link

Hello, I need to have access to read_discounts, write_discounts from GraphQL
Those scopes are missing from enum AuthorizationScope, and I have a problem with AuthorizationService.BuildAuthorizationUrl
Can you please add missing scopes?

@nozzlegear
Copy link
Owner

Hey @bantikyan I'm adding them in right now, but just in case you haven't been able to work around this yet, there's an overload for AuthorizationService.BuildAuthorizationUrl that will accept the authorization scopes as strings instead of enums:

var scopes = new List<string>{ "read_discounts", "write_discounts" };
var authUrl = AuthorizationService.BuildAuthorizationUrl(scopes, myShopifyUrl, shopifyApiKey, redirectUrl, state);

nozzlegear added a commit that referenced this issue Jan 11, 2022
@nozzlegear
Copy link
Owner

These enums have been added in 5.14.3 on Nuget.

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

No branches or pull requests

2 participants