omniauth-auth0 1.4.0 → 1.4.1

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: bd50cc68d4204cea39dfe9768136109b57134ea6
4
- data.tar.gz: 173e0a227c26d92344b4efc4ad0e9488e661f00d
3
+ metadata.gz: 3975adb17a66c3cf5f58dea8ecc7062861c6b70a
4
+ data.tar.gz: 25cee1f22876b0e408d04cfcd9c47c43e13f9a47
5
5
  SHA512:
6
- metadata.gz: 98af35c60a404d1bd132af797c1febfa0c5e652c20a34335495f448b230eabe013153699c80a51a9f9b51ce65fd559f7f925df78bb7b44dd0024504ca776ff47
7
- data.tar.gz: 75972c6b9c26082ef8d1eab1fd3c111be6424b7a07c5a7fc6cfa8160353043b6e53ce4a89817d930f6c2f1459bd31c46707702522af86e90b6369612754ea83f
6
+ metadata.gz: e798bd0e1abfefa9f029c490e6af764d2ff4c45a84124b167ddf273d5eba478066d9655b01917a8dec422d5308e36463164b194682676eca0fbc72ee626b2858
7
+ data.tar.gz: 47b67589531b5f60c2df125a9b0e274ee34d180264249bbb9a0b6467950e6ac56aef2fc02258e803268e4a434dcefa972d15205e87d105e1ac0e97bef4f04e89
@@ -0,0 +1,2 @@
1
+ bump:
2
+ tag: true
@@ -0,0 +1,19 @@
1
+ # Change Log
2
+
3
+ ## [v1.4.0](https://github.com/auth0/omniauth-auth0/tree/v1.4.0) (2015-06-01)
4
+
5
+ **Merged pull requests:**
6
+
7
+ - Client headers [\#8](https://github.com/auth0/omniauth-auth0/pull/8) ([benschwarz](https://github.com/benschwarz))
8
+
9
+ - Web application seed with Lock [\#5](https://github.com/auth0/omniauth-auth0/pull/5) ([sandrinodimattia](https://github.com/sandrinodimattia))
10
+
11
+ - Create LICENSE.md [\#4](https://github.com/auth0/omniauth-auth0/pull/4) ([pose](https://github.com/pose))
12
+
13
+ - Update README.md [\#3](https://github.com/auth0/omniauth-auth0/pull/3) ([pose](https://github.com/pose))
14
+
15
+ - Fix Markdown typo [\#2](https://github.com/auth0/omniauth-auth0/pull/2) ([dentarg](https://github.com/dentarg))
16
+
17
+
18
+
19
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
@@ -1,5 +1,5 @@
1
1
  #Auth0 + Ruby on Rails WebApp Seed
2
- This is the seed project you need to use if you're going to create a regular WebApp with Ruby on Rails. If you want to build a Ruby On Rails API that will be used with a SPA or a Mobile device, please check this [other seed project](https://github.com/auth0/ruby-auth0/tree/master/examples/ruby-on-rails-api)
2
+ This is the seed project you need to use if you're going to create a regular WebApp with Ruby on Rails. If you want to build a Ruby On Rails API that will be used with a SPA or a Mobile device, please check this [other seed project](https://github.com/auth0/auth0-ruby-samples/tree/master/ruby-on-rails-api)
3
3
 
4
4
  This example is deployed at Heroku at http://auth0-ror-webapp-sample.herokuapp.com/
5
5
 
@@ -4,7 +4,7 @@ function signin() {
4
4
  callbackURL: 'http://localhost:3000/auth/auth0/callback', // use this in production '<%= Rails.application.secrets.auth0_callback_url %>'
5
5
  responseType: 'code',
6
6
  authParams: {
7
- scope: 'openid profile'
7
+ scope: 'openid name email picture'
8
8
  }
9
9
  });
10
- }
10
+ }
@@ -1,3 +1,5 @@
1
- module Auth0
2
- VERSION = "1.4.0"
3
- end
1
+ module OmniAuth
2
+ module Auth0
3
+ VERSION = "1.4.1"
4
+ end
5
+ end
@@ -46,6 +46,7 @@ module OmniAuth
46
46
  if access_token.params
47
47
  hash.merge!('id_token' => access_token.params['id_token'])
48
48
  hash.merge!('token_type' => access_token.params['token_type'])
49
+ hash.merge!('refresh_token' => access_token.refresh_token) if access_token.refresh_token
49
50
  end
50
51
  hash
51
52
  end
@@ -74,9 +75,9 @@ module OmniAuth
74
75
 
75
76
  private
76
77
  def client_info_querystring
77
- client_info = JSON.dump({name: 'omniauth-auth0', version: ::Auth0::VERSION})
78
+ client_info = JSON.dump({name: 'omniauth-auth0', version: OmniAuth::Auth0::VERSION})
78
79
  "auth0Client=" + Base64.urlsafe_encode64(client_info)
79
80
  end
80
81
  end
81
82
  end
82
- end
83
+ end
@@ -4,7 +4,7 @@ require "omniauth-auth0/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "omniauth-auth0"
7
- s.version = Auth0::VERSION
7
+ s.version = OmniAuth::Auth0::VERSION
8
8
  s.authors = ["Auth0", "Ezequiel Morito", "Jose Romaniello"]
9
9
  s.email = ["support@auth0.com"]
10
10
  s.homepage = "https://github.com/auth0/omniauth-auth0"
@@ -33,4 +33,4 @@ omniauth-auth0 is the omniauth strategy for Auth0.
33
33
  s.add_development_dependency 'gem-release', '~> 0.7'
34
34
 
35
35
  s.license = 'MIT'
36
- end
36
+ end
@@ -30,7 +30,7 @@ describe OmniAuth::Strategies::Auth0 do
30
30
 
31
31
  context "initiation" do
32
32
  let(:base64_token) {
33
- Base64.urlsafe_encode64('{"name":"omniauth-auth0","version":"'+Auth0::VERSION+'"}')
33
+ Base64.urlsafe_encode64('{"name":"omniauth-auth0","version":"' + OmniAuth::Auth0::VERSION + '"}')
34
34
  }
35
35
 
36
36
  it "uses the correct site" do
@@ -162,6 +162,16 @@ describe OmniAuth::Strategies::Auth0 do
162
162
  expect(subject.credentials['token'][:access_token]).to eq('OTqSFa9zrh0VRGAZHH4QPJISCoynRwSy9FocUazuaU950EVcISsJo3pST11iTCiI')
163
163
  expect(subject.credentials['token'][:token_type]).to eq('bearer')
164
164
  end
165
+
166
+ it 'returns the refresh token' do
167
+ allow(@access_token).to receive(:refresh_token) { "your_refresh_token" }
168
+ allow(@access_token).to receive(:params) {
169
+ {
170
+ 'id_token' => "your_id_token",
171
+ 'token_type' => "your_token_type"
172
+ } }
173
+ expect(subject.credentials['refresh_token']).to eq('your_refresh_token')
174
+ end
165
175
  end
166
176
  end
167
- end
177
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Auth0
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-06-01 00:00:00.000000000 Z
13
+ date: 2015-11-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: omniauth-oauth2
@@ -146,8 +146,10 @@ executables: []
146
146
  extensions: []
147
147
  extra_rdoc_files: []
148
148
  files:
149
+ - ".gemrelease"
149
150
  - ".gitignore"
150
151
  - ".travis.yml"
152
+ - CHANGELOG.md
151
153
  - Gemfile
152
154
  - LICENSE
153
155
  - README.md
@@ -252,7 +254,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
254
  version: '0'
253
255
  requirements: []
254
256
  rubyforge_project: omniauth-auth0
255
- rubygems_version: 2.2.2
257
+ rubygems_version: 2.4.5
256
258
  signing_key:
257
259
  specification_version: 4
258
260
  summary: Omniauth OAuth2 strategy for the Auth0 platform.