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

Use api access from shopify api #105

Closed
wants to merge 1 commit into from

Conversation

rezaansyed
Copy link
Contributor

Related to Shopify/shopify-api-ruby#829

What does this PR solve?

There are common operations that are used for scopes on OmniAuth and apps consuming the gem. Such operations include serializing, deserializing and normalizing scopes. This PR uses the ApiAccess class from shopify_api that will be used to perform such operations.

@rezaansyed rezaansyed force-pushed the use-api-access-from-shopify-api branch 2 times, most recently from a26e06b to 1517cf4 Compare January 28, 2021 14:51
Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good to me, but the dependency might be an issue.

@@ -1,2 +1,3 @@
require 'omniauth/shopify/version'
require 'omniauth/strategies/shopify'
require 'shopify_api'
Copy link
Contributor

@paulomarg paulomarg Jan 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is sort of creating a circular dependency: shopify_app => omniauth-shopify-oauth2 => shopify_api <= shopify_app. Is that a problem? I'm guessing no but thought I'd check.

Copy link
Contributor

@andyw8 andyw8 Jan 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm not sure of the consequences, but this strikes me as something to be cautious about.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tanema you brought this up before in this closed PR. Do you think adding shopify_api as a dependency should mean a major release upgrade of omniauth-shopify-oauth2?

@rezaansyed rezaansyed marked this pull request as draft January 28, 2021 16:22
@rezaansyed rezaansyed closed this Feb 10, 2023
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

Successfully merging this pull request may close these issues.

3 participants