Skip to content

Commit

Permalink
Merge pull request #346 from unixcharles/master
Browse files Browse the repository at this point in the history
Fix google auth default scope
  • Loading branch information
sferik committed May 28, 2011
2 parents d14c053 + 86c4a64 commit 55921b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oa-oauth/lib/omniauth/strategies/google.rb
Expand Up @@ -21,7 +21,7 @@ def initialize(app, consumer_key = nil, consumer_secret = nil, options = {}, &bl
}

google_contacts_auth = "www.google.com/m8/feeds"
options[:scope] ||= google_contacts_auth
options[:scope] ||= "http://#{google_contacts_auth}"
options[:scope] << " http://#{google_contacts_auth}" unless options[:scope] =~ %r[http[s]?:\/\/#{google_contacts_auth}]

super(app, :google, consumer_key, consumer_secret, client_options, options)
Expand Down

0 comments on commit 55921b0

Please sign in to comment.