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

Add scope customization when provider initials. #201

Merged
merged 1 commit into from May 4, 2017

Conversation

cai-q
Copy link
Contributor

@cai-q cai-q commented May 4, 2017

Some provider doesn't support 'email' as their scope. This fix issue #200

Some provider doesn't support 'email' as their scope. This fix issue spree-contrib#200
Devise.setup do |config|
config.omniauth provider, key, secret, setup: true, scope: 'email', info_fields: 'email, name'
config.omniauth provider, key, secret, setup: true, scope: scope, info_fields: 'email, name'

Choose a reason for hiding this comment

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

Line is too long. [98/80]
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@@ -36,7 +36,7 @@ def self.activate
end

# Setup all OAuth providers
def self.init_provider(provider)
def self.init_provider(provider, scope='email')

Choose a reason for hiding this comment

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

Surrounding space missing in default value assignment.
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.

@damianlegawiec
Copy link
Contributor

Thanks @Ronaldoooo 👍

@damianlegawiec damianlegawiec merged commit 0a99c03 into spree-contrib:master May 4, 2017
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.

None yet

3 participants