sailpoint 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d6bf86899f091940b968757d594603b5db984e6d89cdd999787b873f86bfe9ed
4
- data.tar.gz: 442bfb5d83d550d3899e029d5234bac86c710059148a69dfbf32222f4442d02f
3
+ metadata.gz: 948e79e40e1b960266502c666ca8db069ce15e302374c23012e95112a48b9b36
4
+ data.tar.gz: 259569e390dd2d392be8e85d3d252ac531dd632dde2b39c4a49a2818eacc99f8
5
5
  SHA512:
6
- metadata.gz: 68c0c05d8f5c6a8fb53e1eb5655ce6e4418725820703734d60e9c2579b3ed727e307a8832389340e9bc5e2fadc92117e38c91dc3036660f0146dcc793cbe30fa
7
- data.tar.gz: 663cc39a7e2bc3a73b1de299f07fd4721334aff2eac81aca2c7249f364e2bc2082739843a6369a6cf3dc15c094c30a842a8f367622790fbf9b6cd909aa9f7803
6
+ metadata.gz: 37b621badd12c2c2028b28614403c105e2ab48557b8918d6ccddef7f19169fd339cfde06fc0eeb0b813da6bb7974cc64458817f07d92c8bae29a97d594401643
7
+ data.tar.gz: d72001f42801aa0d29f10863619e5fe00e3d12852cee307068e9e3cb169b1935936cdd82843c359d370c7068c7c8a27badb6a280e728e6b18dbe990a6747843e
@@ -37,7 +37,7 @@ module Sailpoint
37
37
  def self.get_identity(identity)
38
38
  response = HTTParty.get([Sailpoint::Config.url('rest'), 'identities', identity.escape_str, 'managedIdentities'].join('/'),
39
39
  headers: Sailpoint::Config.auth_header,
40
- output: 'json')
40
+ output: 'json', timeout: 10)
41
41
  return [] if response.code == '500'
42
42
 
43
43
  JSON.parse(response&.body || '{}').first
@@ -49,7 +49,7 @@ module Sailpoint
49
49
  def self.get_user(identity)
50
50
  response = HTTParty.get([Sailpoint::Config.url('rest'), 'identities', identity.escape_str].join('/'),
51
51
  headers: Sailpoint::Config.auth_header,
52
- output: 'json')
52
+ output: 'json', timeout: 10)
53
53
  raise AuthenticationException, 'Invalid credentials, please try again.' if response.code == 401
54
54
 
55
55
  JSON.parse(response&.body || '{}')
@@ -63,7 +63,7 @@ module Sailpoint
63
63
 
64
64
  response = HTTParty.get([Sailpoint::Config.url('rest'), "roles/assignablePermits/?roleMode=assignable&identity=#{identity.escape_str}"].join('/'),
65
65
  headers: Sailpoint::Config.auth_header,
66
- output: 'json')
66
+ output: 'json', timeout: 10)
67
67
  response_body = JSON.parse(response&.body || '{}')
68
68
  return response_body['objects'].map { |role| role['name'] } if response['status'].present? && response['status'] == 'success'
69
69
 
@@ -75,7 +75,7 @@ module Sailpoint
75
75
  def self.ping
76
76
  HTTParty.get([Sailpoint::Config.url('rest'), 'ping'].join('/'),
77
77
  headers: Sailpoint::Config.auth_header,
78
- output: 'json')
78
+ output: 'json', timeout: 10)
79
79
  end
80
80
  end
81
81
  end
@@ -10,7 +10,7 @@ module Sailpoint
10
10
  def self.accounts
11
11
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/Accounts'].join('/'),
12
12
  headers: Sailpoint::Config.auth_header,
13
- output: 'json')
13
+ output: 'json', timeout: 10)
14
14
  JSON.parse(response&.body || '{}')
15
15
  end
16
16
 
@@ -19,7 +19,7 @@ module Sailpoint
19
19
  def self.applications
20
20
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/Applications'].join('/'),
21
21
  headers: Sailpoint::Config.auth_header,
22
- output: 'json')
22
+ output: 'json', timeout: 10)
23
23
  JSON.parse(response&.body || '{}')
24
24
  end
25
25
 
@@ -28,7 +28,7 @@ module Sailpoint
28
28
  def self.get_user(identity)
29
29
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/Users', identity.escape_str].join('/'),
30
30
  headers: Sailpoint::Config.auth_header,
31
- output: 'json')
31
+ output: 'json', timeout: 10)
32
32
  # NOTE: If invalid credentials are supplied or the user could not be found response bodies contain a status code.
33
33
  # => But if a a user if found, a status code isn't returned, but all of their data attributes are returned instead.
34
34
  raise AuthenticationException, 'Invalid credentials, please try again.' if response.body['status'] && response.body['status'] == '401'
@@ -42,7 +42,7 @@ module Sailpoint
42
42
  def self.resource_types
43
43
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/ResourceTypes'].join('/'),
44
44
  headers: Sailpoint::Config.auth_header,
45
- output: 'json')
45
+ output: 'json', timeout: 10)
46
46
  JSON.parse(response&.body || '{}')
47
47
  end
48
48
 
@@ -51,7 +51,7 @@ module Sailpoint
51
51
  def self.schemas
52
52
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/Schemas'].join('/'),
53
53
  headers: Sailpoint::Config.auth_header,
54
- output: 'json')
54
+ output: 'json', timeout: 10)
55
55
  JSON.parse(response&.body || '{}')
56
56
  end
57
57
 
@@ -60,7 +60,7 @@ module Sailpoint
60
60
  def self.service_providers
61
61
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/ServiceProviderConfig'].join('/'),
62
62
  headers: Sailpoint::Config.auth_header,
63
- output: 'json')
63
+ output: 'json', timeout: 10)
64
64
  JSON.parse(response&.body || '{}')
65
65
  end
66
66
 
@@ -69,7 +69,7 @@ module Sailpoint
69
69
  def self.users
70
70
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/Users'].join('/'),
71
71
  headers: Sailpoint::Config.auth_header,
72
- output: 'json')
72
+ output: 'json', timeout: 10)
73
73
  JSON.parse(response&.body || '{}')
74
74
  end
75
75
 
@@ -78,7 +78,7 @@ module Sailpoint
78
78
  def self.user_resource_types
79
79
  response = HTTParty.get([Sailpoint::Config.url('scim'), 'v2/ResourceTypes/User'].join('/'),
80
80
  headers: Sailpoint::Config.auth_header,
81
- output: 'json')
81
+ output: 'json', timeout: 10)
82
82
  JSON.parse(response&.body || '{}')
83
83
  end
84
84
  end
@@ -2,5 +2,5 @@ module Sailpoint
2
2
  # The minimum required RUBY_VERSION
3
3
  RUBY_VERSION = '2.5'.freeze
4
4
  # The Sailpoints version
5
- VERSION = '0.0.2'.freeze
5
+ VERSION = '0.0.3'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sailpoint
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
  - Brandon Hicks