Skip to content

Commit

Permalink
Google default scope should include http
Browse files Browse the repository at this point in the history
  • Loading branch information
unixcharles committed May 27, 2011
1 parent 21e6ef8 commit 86c4a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oa-oauth/lib/omniauth/strategies/google.rb
Original file line number Diff line number Diff line change
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 86c4a64

Please sign in to comment.