omniauth-google-oauth2 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8856da55d4dd3541aa24210676726e43c9f7afb
4
- data.tar.gz: 8d34f80f64977b8eef82858f8521c31d4cb4b000
3
+ metadata.gz: de8632659edb78b80d0733a085df62028d80f9a9
4
+ data.tar.gz: 4efa0f89f831db683973282ff1e909fa98e5ea1d
5
5
  SHA512:
6
- metadata.gz: 30137b2edafdad7c71b22f9a0f6b4f7f2897719348326facad7ad2e8a6c5ab3f22f9040cfd2a06cba42995496fcc2f644946ea467b1e0e9d76139a42b39113b6
7
- data.tar.gz: 153076648f4c1eac3971a2bf67c67c75b43ddff1bca0e6c9ca1c86885fb31cdc01cdf306507f2b527931051c6b1cb8029bf93b0b928c4723d84e8de91c7b554e
6
+ metadata.gz: 299c5484f3e20f6aea8cae2217722476e8acfeda538adb05b51fe84c7924bad13c31fd391cf88f8165dc031ed06c1395b45d4b3c5f906b5ac8a973f4d534097e
7
+ data.tar.gz: d2f58b86da4cedd7fc66b2b85aad4e8d379589a11496bf66edd8826bed91b0e0b5a603f3f08a607221c2f0935bdad8677242e2680621b0eb6aecad18a51802e2
@@ -1,10 +1,24 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 0.5.2 - 2017-07-30
5
+
6
+ ### Added
7
+ - Nothing
8
+
9
+ ### Deprecated
10
+ - Nothing.
11
+
12
+ ### Removed
13
+ - New `authorize_url` and `token_url` endpoints are reverted until JWT 2.0 ships.
14
+
15
+ ### Fixed
16
+ - Nothing
17
+
4
18
  ## 0.5.1 - 2017-07-19
5
19
 
6
20
  ### Added
7
- - JWT iss verification can be enabled/disabled with the `verify_iss` flag.
21
+ - *Breaking* JWT iss verification can be enabled/disabled with the `verify_iss` flag - see the README for more details.
8
22
  - Authorize options now includes `device_id` and `device_name` for private ip ranges.
9
23
 
10
24
  ### Deprecated
@@ -2,6 +2,6 @@
2
2
 
3
3
  module OmniAuth
4
4
  module GoogleOauth2
5
- VERSION = '0.5.1'
5
+ VERSION = '0.5.2'
6
6
  end
7
7
  end
@@ -23,8 +23,9 @@ module OmniAuth
23
23
  option :verify_iss, true
24
24
 
25
25
  option :client_options,
26
- authorize_url: 'https://accounts.google.com/o/oauth2/v2/auth',
27
- token_url: 'https://www.googleapis.com/oauth2/v4/token'
26
+ site: 'https://accounts.google.com',
27
+ authorize_url: '/o/oauth2/auth',
28
+ token_url: '/o/oauth2/token'
28
29
 
29
30
  def authorize_params
30
31
  super.tap do |params|
@@ -28,16 +28,16 @@ describe OmniAuth::Strategies::GoogleOauth2 do
28
28
  end
29
29
 
30
30
  describe '#client_options' do
31
- it 'does not have site' do
32
- expect(subject.client.site).to eq(nil)
31
+ it 'has correct site' do
32
+ expect(subject.client.site).to eq('https://accounts.google.com')
33
33
  end
34
34
 
35
35
  it 'has correct authorize_url' do
36
- expect(subject.client.options[:authorize_url]).to eq('https://accounts.google.com/o/oauth2/v2/auth')
36
+ expect(subject.client.options[:authorize_url]).to eq('/o/oauth2/auth')
37
37
  end
38
38
 
39
39
  it 'has correct token_url' do
40
- expect(subject.client.options[:token_url]).to eq('https://www.googleapis.com/oauth2/v4/token')
40
+ expect(subject.client.options[:token_url]).to eq('/o/oauth2/token')
41
41
  end
42
42
 
43
43
  describe 'overrides' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-google-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Ellithorpe
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-07-20 00:00:00.000000000 Z
12
+ date: 2017-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: omniauth