wm_okta_helper 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/wm_okta_helper/get_user_groups.rb +5 -11
- data/lib/wm_okta_helper/version.rb +1 -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: 65af61e943a8915d7cfc8c459e2d5d43a5c9da95
|
4
|
+
data.tar.gz: fe8760d47e69f3d567c09c57878dd2484f84be7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a983c3d1d896383d8188ba4401cf5370e5a3db3ef7cb9d846829ad2027d4a754ed5ebaf0bbaf762597416ca95a80ffa1e399df88cd2eab79731c8291fe14e3ce
|
7
|
+
data.tar.gz: ffc344f5904b4d6b9a169bf4f2a65ca5798670c6b71724e2b180626eb939c0217e44924b1b7371a262df77bd1159fd8e9dad173d21746ec9baf3fe39e19632db
|
data/Gemfile.lock
CHANGED
@@ -29,19 +29,13 @@ module WmOktaHelper
|
|
29
29
|
URI("#{site}/#{endpoint}")
|
30
30
|
end
|
31
31
|
|
32
|
-
def cache_key
|
33
|
-
"user-groups-#{@user}"
|
34
|
-
end
|
35
|
-
|
36
32
|
def okta_groups
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
groups << group_name if group_name.include?('otto_')
|
42
|
-
end
|
43
|
-
groups
|
33
|
+
groups = []
|
34
|
+
fetch_data.each do |g|
|
35
|
+
group_name = g.dig('profile', 'name')
|
36
|
+
groups << group_name if group_name.include?('otto_')
|
44
37
|
end
|
38
|
+
groups
|
45
39
|
end
|
46
40
|
|
47
41
|
def fetch_data
|