checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
---
2
2
SHA1:
3
- metadata.gz: 8c7aa02f11102390e977513389af9287dace7440
4
- data.tar.gz: 1fde83ec917ff1311a2a6b863380831e0fa47e9e
3
+ metadata.gz: 65af61e943a8915d7cfc8c459e2d5d43a5c9da95
4
+ data.tar.gz: fe8760d47e69f3d567c09c57878dd2484f84be7a
5
5
SHA512:
6
- metadata.gz: 5cc00508aac733cda66f624d811e690214910b88e085c77038abb98486369b5511bf5b5127b3a0d64ef9145c8750cc77b09f8446e32c24a794d3d659688de9ce
7
- data.tar.gz: eadd03a83b10e6c64efe506c2d15a8925bd2543abf53042fd831de2df76aa8803def3e1a66675a6fce470073e4ada2ccd095c3783e9ac8566eb0e39a4af6f1ba
6
+ metadata.gz: a983c3d1d896383d8188ba4401cf5370e5a3db3ef7cb9d846829ad2027d4a754ed5ebaf0bbaf762597416ca95a80ffa1e399df88cd2eab79731c8291fe14e3ce
7
+ data.tar.gz: ffc344f5904b4d6b9a169bf4f2a65ca5798670c6b71724e2b180626eb939c0217e44924b1b7371a262df77bd1159fd8e9dad173d21746ec9baf3fe39e19632db
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
PATH
2
2
remote: .
3
3
specs:
4
- wm_okta_helper (0.2.5)
4
+ wm_okta_helper (0.2.6)
5
5
json-jwt
6
6
jwt
7
7
data/lib/wm_okta_helper/get_user_groups.rb 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
- Rails.cache.fetch(cache_key, expires_in: 1.hour) do
38
- groups = []
39
- fetch_data.each do |g|
40
- group_name = g.dig('profile', 'name')
33
+ groups = []
34
+ fetch_data.each do |g|
35
+ group_name = g.dig('profile', 'name')
36
+ groups << group_name if group_name.include?('otto_')
41
- groups << group_name if group_name.include?('otto_')
42
- end
43
- groups
44
37
end
38
+ groups
45
39
end
46
40
47
41
def fetch_data
data/lib/wm_okta_helper/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
# frozen_string_literal: true
2
2
3
3
module WmOktaHelper
4
- VERSION = '0.2.5'
4
+ VERSION = '0.2.6'
5
5
end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: wm_okta_helper
3
3
version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
platform: ruby
6
6
authors:
7
7
- Jose C Fernandez