devise-auth0 0.0.2 → 0.0.3

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: 09d2c52435f4724971a7010be7afdeb821f2c179
4
- data.tar.gz: fefa985762c18269d3df02d61d2522a0842fdf62
3
+ metadata.gz: a9ebedfc7f681b212887f7eb792de3f95699b06f
4
+ data.tar.gz: b3d048af9d4e2ef6040565e7f0c801eb40e309f4
5
5
  SHA512:
6
- metadata.gz: e250b8ae551213bf6f78900f838db70d369530068485b19e92710b93a5a6fcfef56e50674b167d7d1bbde974bb81a5d8713a14aa9fd47c4a5ad59ee0c603a240
7
- data.tar.gz: fc954f7f8ecab7a2b0604e343b26bc332c5fd3ed9c38498ba7806f80c4ef77abf2463e77f303010ed68210c29111679c2697f26b9d7fc999608c44f31a9e564e
6
+ metadata.gz: b10717d8b1ce99f92d0cc5fbcffc57c8bf635cf9a913f4f469e94c5a6dacc2cb4fc57022b23680f4d02f4c6040c314eb84509e94739af54847bfecefe932712f
7
+ data.tar.gz: 8714436aa44207a2744b8eef2115f6841ac186689be1d2a020ec7314ef15ec70f54e2f2d3077dcbd6d774d34fa0ee3c94f3290a227672709fb947d18a24fc5b1
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 0.0.3 / 2016-09-07
2
+
3
+ * Official user identifier is the `sub` field. Use it first before `user_id`
4
+ field
5
+
1
6
  0.0.2 / 2014-04-17
2
7
 
3
8
  * Better support for oauth-based login
@@ -1,5 +1,5 @@
1
1
  module Devise
2
2
  module Auth0
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -12,7 +12,7 @@ module Devise
12
12
  module ClassMethods
13
13
 
14
14
  def find_or_sync_auth0(info)
15
- unless uid = info['user_id']
15
+ unless uid = info['sub'] || info['user_id']
16
16
  raise MissingAuth0Id.new(info),
17
17
  "Expected auth0_user_id, got none inside of #{@info.inspect}"
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Kastner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-17 00:00:00.000000000 Z
11
+ date: 2016-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.2.2
80
+ rubygems_version: 2.5.1
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Integrate devise with auth0