sync_attr_with_auth0 0.2.1 → 0.2.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
- SHA1:
3
- metadata.gz: 78fbbb5d2b17d4c371c8ceb2a3e78218a18e481b
4
- data.tar.gz: b99c5481792d5f7979939e7c92a41af7e72d6997
2
+ SHA256:
3
+ metadata.gz: 0e0afb86d465d9c136f38d604c69f198a86a969b77301f6abf60da12aa98cf54
4
+ data.tar.gz: 237034211a5eaf258332933e8c10c3e2744b3033dd83f8f859dd578b42d06b63
5
5
  SHA512:
6
- metadata.gz: 4e86813e02d4568ca0fba19fc1e0cd0cc9e9ba17ffbad58869ce35ebe75a64a73cec1ed851685bad2283e8104b3d445332275bc32701422d6128b91286301c24
7
- data.tar.gz: c997fba5eb75a6264df9e1a294dd155a870919125fa3faaeb0877c8296d141b9e26cde6db59c891948d0a14ce7339ee3f8c316024b1e35c3bd9b92468a08bfb5
6
+ metadata.gz: 978bc082c1c60d5d13ba2a20a5f1d8faf5da73596e852c75d2d53aa6893a46fcfc1104029788ccc8b7320161597a3e352f365958b816b0f118bbde50e92e71d7
7
+ data.tar.gz: f87f7c4145859950ea7336adde22913c4ec1390893c57a097b77cf7147f2e18e068bf4fa3d3b4cd60f6d4e41feeae4183e3881fb471360fafce32aedab1d17ed
@@ -13,6 +13,7 @@ module SyncAttrWithAuth0
13
13
 
14
14
  module ClassMethods
15
15
 
16
+ # TODO: We should accept two arrays of fields: user_metadata (for user-managed settings) and app_metadata (for app-managed settings)
16
17
  def sync_attr_with_auth0(*fields)
17
18
  options = fields.extract_options!
18
19
 
@@ -159,6 +159,10 @@ module SyncAttrWithAuth0
159
159
  'password' => password,
160
160
  'connection' => auth0_sync_configuration.connection_name,
161
161
  'email_verified' => email_verified,
162
+ 'name' => auth0_user_name,
163
+ 'nickname' => auth0_user_name,
164
+ 'given_name' => auth0_user_given_name,
165
+ 'family_name' => auth0_user_family_name,
162
166
  'user_metadata' => user_metadata,
163
167
  'app_metadata' => app_metadata
164
168
  }
@@ -172,6 +176,10 @@ module SyncAttrWithAuth0
172
176
  app_metadata = auth0_app_metadata
173
177
 
174
178
  params = {
179
+ 'name' => auth0_user_name,
180
+ 'nickname' => auth0_user_name,
181
+ 'given_name' => auth0_user_given_name,
182
+ 'family_name' => auth0_user_family_name,
175
183
  'app_metadata' => app_metadata,
176
184
  'user_metadata' => user_metadata
177
185
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sync_attr_with_auth0
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick McGraw
@@ -169,8 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubyforge_project:
173
- rubygems_version: 2.6.13
172
+ rubygems_version: 3.1.2
174
173
  signing_key:
175
174
  specification_version: 4
176
175
  summary: Synchronize attributes on a local ActiveRecord user model with the user metadata