omniauth-google-oauth2 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module GoogleOauth2
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
@@ -21,6 +21,10 @@ module OmniAuth
21
21
  scopes = (params[:scope] || DEFAULT_SCOPE).split(",")
22
22
  scopes.map! { |s| s =~ /^https?:\/\// ? s : "#{base_scope_url}#{s}" }
23
23
  params[:scope] = scopes.join(' ')
24
+ # This makes sure we get a refresh_token.
25
+ # http://googlecode.blogspot.com/2011/10/upcoming-changes-to-oauth-20-endpoint.html
26
+ params[:access_type] = 'offline'
27
+ params[:approval_prompt] = 'force'
24
28
  end
25
29
  end
26
30
 
@@ -4,7 +4,7 @@ require File.expand_path('../lib/omniauth/google_oauth2/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.add_dependency 'omniauth', '~> 1.0'
6
6
 
7
- gem.authors = ["Josh Ellithorpe"]
7
+ gem.authors = ["Josh Ellithorpe", "Yury Korolev"]
8
8
  gem.email = ["quest@mac.com"]
9
9
  gem.description = %q{A Google oauth2 strategy for OmniAuth 1.0}
10
10
  gem.summary = %q{A Google oauth2 strategy for OmniAuth 1.0}
metadata CHANGED
@@ -1,21 +1,23 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-google-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Ellithorpe
14
+ - Yury Korolev
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-11-24 00:00:00 Z
19
+ date: 2011-12-09 00:00:00 -08:00
20
+ default_executable:
19
21
  dependencies:
20
22
  - !ruby/object:Gem::Dependency
21
23
  name: omniauth
@@ -100,6 +102,7 @@ files:
100
102
  - spec/omniauth/strategies/google_oauth2_spec.rb
101
103
  - spec/spec_helper.rb
102
104
  - spec/support/shared_examples.rb
105
+ has_rdoc: true
103
106
  homepage: ""
104
107
  licenses: []
105
108
 
@@ -129,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
132
  requirements: []
130
133
 
131
134
  rubyforge_project:
132
- rubygems_version: 1.8.10
135
+ rubygems_version: 1.6.2
133
136
  signing_key:
134
137
  specification_version: 3
135
138
  summary: A Google oauth2 strategy for OmniAuth 1.0