sync_attr_with_auth0 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sync_attr_with_auth0/auth0.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13eba93a39c3b43a91ba3180eac423de3539be14
|
4
|
+
data.tar.gz: 32665ebf1928fe955b1f5a83f941a040b019a3c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44dbd08f81cc82af8cd4ded2277028472083b995b0017da35f4560be68869dbdb53add03e02aa4ce5308e7970495ecb917f390890d7e2fa507517440bd746c4
|
7
|
+
data.tar.gz: 4819bd1e3f2ac0ded524a0a358809c416209b3df92457c2cdadac39f790b8d899d06d7aa618f47a712ef427196ff8398b527d9afd0f8560b7cf270fbcbb822cb
|
@@ -67,7 +67,8 @@ module SyncAttrWithAuth0
|
|
67
67
|
def self.find_users_by_email(email, exclude_user_id: nil, config: SyncAttrWithAuth0.configuration)
|
68
68
|
auth0 = SyncAttrWithAuth0::Auth0.create_auth0_client(config: config)
|
69
69
|
|
70
|
-
|
70
|
+
# Use the Lucene search because Find by Email is case sensitive
|
71
|
+
results = auth0.get('/api/v2/users', q: "email:#{email}")
|
71
72
|
|
72
73
|
if exclude_user_id
|
73
74
|
results = results.reject { |r| r['user_id'] == exclude_user_id }
|