onelogin 1.7.0 → 1.8.0

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.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +1 -1
  3. data/README.md +46 -5
  4. data/examples/Gemfile.lock +15 -11
  5. data/examples/events-to-csv.rb +5 -4
  6. data/lib/onelogin/api/apiexception.rb +3 -0
  7. data/lib/onelogin/api/client.rb +30 -1
  8. data/lib/onelogin/api/cursor.rb +5 -2
  9. data/lib/onelogin/version.rb +1 -1
  10. data/onelogin.gemspec +2 -2
  11. metadata +4 -110
  12. data/.travis.yml +0 -6
  13. data/examples/rails-custom-login-page/.gitignore +0 -45
  14. data/examples/rails-custom-login-page/.ruby-version +0 -1
  15. data/examples/rails-custom-login-page/Gemfile +0 -57
  16. data/examples/rails-custom-login-page/Gemfile.lock +0 -212
  17. data/examples/rails-custom-login-page/README.md +0 -137
  18. data/examples/rails-custom-login-page/Rakefile +0 -6
  19. data/examples/rails-custom-login-page/app/assets/config/manifest.js +0 -3
  20. data/examples/rails-custom-login-page/app/assets/images/.keep +0 -0
  21. data/examples/rails-custom-login-page/app/assets/javascripts/application.js +0 -18
  22. data/examples/rails-custom-login-page/app/assets/javascripts/cable.js +0 -13
  23. data/examples/rails-custom-login-page/app/assets/javascripts/channels/.keep +0 -0
  24. data/examples/rails-custom-login-page/app/assets/javascripts/dashboard.coffee +0 -3
  25. data/examples/rails-custom-login-page/app/assets/javascripts/home.coffee +0 -3
  26. data/examples/rails-custom-login-page/app/assets/javascripts/sessions.coffee +0 -3
  27. data/examples/rails-custom-login-page/app/assets/stylesheets/application.css +0 -15
  28. data/examples/rails-custom-login-page/app/assets/stylesheets/dashboard.scss +0 -3
  29. data/examples/rails-custom-login-page/app/assets/stylesheets/home.scss +0 -3
  30. data/examples/rails-custom-login-page/app/assets/stylesheets/sessions.scss +0 -3
  31. data/examples/rails-custom-login-page/app/channels/application_cable/channel.rb +0 -4
  32. data/examples/rails-custom-login-page/app/channels/application_cable/connection.rb +0 -4
  33. data/examples/rails-custom-login-page/app/controllers/application_controller.rb +0 -23
  34. data/examples/rails-custom-login-page/app/controllers/concerns/.keep +0 -0
  35. data/examples/rails-custom-login-page/app/controllers/dashboard_controller.rb +0 -10
  36. data/examples/rails-custom-login-page/app/controllers/home_controller.rb +0 -5
  37. data/examples/rails-custom-login-page/app/controllers/sessions_controller.rb +0 -46
  38. data/examples/rails-custom-login-page/app/controllers/users_controller.rb +0 -120
  39. data/examples/rails-custom-login-page/app/helpers/application_helper.rb +0 -2
  40. data/examples/rails-custom-login-page/app/helpers/dashboard_helper.rb +0 -28
  41. data/examples/rails-custom-login-page/app/helpers/home_helper.rb +0 -2
  42. data/examples/rails-custom-login-page/app/helpers/sessions_helper.rb +0 -87
  43. data/examples/rails-custom-login-page/app/helpers/users_helper.rb +0 -3
  44. data/examples/rails-custom-login-page/app/jobs/application_job.rb +0 -2
  45. data/examples/rails-custom-login-page/app/mailers/application_mailer.rb +0 -4
  46. data/examples/rails-custom-login-page/app/models/application_record.rb +0 -3
  47. data/examples/rails-custom-login-page/app/models/concerns/.keep +0 -0
  48. data/examples/rails-custom-login-page/app/views/dashboard/index.html.erb +0 -43
  49. data/examples/rails-custom-login-page/app/views/home/index.html.erb +0 -272
  50. data/examples/rails-custom-login-page/app/views/layouts/application.html.erb +0 -31
  51. data/examples/rails-custom-login-page/app/views/layouts/mailer.html.erb +0 -13
  52. data/examples/rails-custom-login-page/app/views/layouts/mailer.text.erb +0 -1
  53. data/examples/rails-custom-login-page/app/views/users/_form.html.erb +0 -1
  54. data/examples/rails-custom-login-page/app/views/users/_user.json.jbuilder +0 -2
  55. data/examples/rails-custom-login-page/app/views/users/edit.html.erb +0 -33
  56. data/examples/rails-custom-login-page/app/views/users/index.html.erb +0 -33
  57. data/examples/rails-custom-login-page/app/views/users/index.json.jbuilder +0 -1
  58. data/examples/rails-custom-login-page/app/views/users/new.html.erb +0 -60
  59. data/examples/rails-custom-login-page/app/views/users/onboard.html.erb +0 -54
  60. data/examples/rails-custom-login-page/app/views/users/show.html.erb +0 -17
  61. data/examples/rails-custom-login-page/app/views/users/show.json.jbuilder +0 -1
  62. data/examples/rails-custom-login-page/bin/bundle +0 -3
  63. data/examples/rails-custom-login-page/bin/rails +0 -9
  64. data/examples/rails-custom-login-page/bin/rake +0 -9
  65. data/examples/rails-custom-login-page/bin/setup +0 -38
  66. data/examples/rails-custom-login-page/bin/spring +0 -17
  67. data/examples/rails-custom-login-page/bin/update +0 -29
  68. data/examples/rails-custom-login-page/bin/yarn +0 -11
  69. data/examples/rails-custom-login-page/config/application.rb +0 -18
  70. data/examples/rails-custom-login-page/config/boot.rb +0 -3
  71. data/examples/rails-custom-login-page/config/cable.yml +0 -10
  72. data/examples/rails-custom-login-page/config/database.yml +0 -25
  73. data/examples/rails-custom-login-page/config/environment.rb +0 -5
  74. data/examples/rails-custom-login-page/config/environments/development.rb +0 -54
  75. data/examples/rails-custom-login-page/config/environments/production.rb +0 -91
  76. data/examples/rails-custom-login-page/config/environments/test.rb +0 -42
  77. data/examples/rails-custom-login-page/config/initializers/application_controller_renderer.rb +0 -8
  78. data/examples/rails-custom-login-page/config/initializers/assets.rb +0 -14
  79. data/examples/rails-custom-login-page/config/initializers/backtrace_silencers.rb +0 -7
  80. data/examples/rails-custom-login-page/config/initializers/cookies_serializer.rb +0 -5
  81. data/examples/rails-custom-login-page/config/initializers/filter_parameter_logging.rb +0 -4
  82. data/examples/rails-custom-login-page/config/initializers/inflections.rb +0 -16
  83. data/examples/rails-custom-login-page/config/initializers/mime_types.rb +0 -4
  84. data/examples/rails-custom-login-page/config/initializers/onelogin.rb +0 -6
  85. data/examples/rails-custom-login-page/config/initializers/wrap_parameters.rb +0 -14
  86. data/examples/rails-custom-login-page/config/locales/en.yml +0 -33
  87. data/examples/rails-custom-login-page/config/puma.rb +0 -56
  88. data/examples/rails-custom-login-page/config/routes.rb +0 -23
  89. data/examples/rails-custom-login-page/config/secrets.yml.sample +0 -38
  90. data/examples/rails-custom-login-page/config/spring.rb +0 -6
  91. data/examples/rails-custom-login-page/config.ru +0 -5
  92. data/examples/rails-custom-login-page/db/seeds.rb +0 -7
  93. data/examples/rails-custom-login-page/lib/assets/.keep +0 -0
  94. data/examples/rails-custom-login-page/lib/tasks/.keep +0 -0
  95. data/examples/rails-custom-login-page/package.json +0 -5
  96. data/examples/rails-custom-login-page/public/404.html +0 -67
  97. data/examples/rails-custom-login-page/public/422.html +0 -67
  98. data/examples/rails-custom-login-page/public/500.html +0 -66
  99. data/examples/rails-custom-login-page/public/apple-touch-icon-precomposed.png +0 -0
  100. data/examples/rails-custom-login-page/public/apple-touch-icon.png +0 -0
  101. data/examples/rails-custom-login-page/public/favicon.ico +0 -0
  102. data/examples/rails-custom-login-page/public/robots.txt +0 -1
  103. data/examples/rails-custom-login-page/test/application_system_test_case.rb +0 -5
  104. data/examples/rails-custom-login-page/test/controllers/.keep +0 -0
  105. data/examples/rails-custom-login-page/test/controllers/dashboard_controller_test.rb +0 -9
  106. data/examples/rails-custom-login-page/test/controllers/home_controller_test.rb +0 -9
  107. data/examples/rails-custom-login-page/test/controllers/sessions_controller_test.rb +0 -7
  108. data/examples/rails-custom-login-page/test/controllers/users_controller_test.rb +0 -48
  109. data/examples/rails-custom-login-page/test/fixtures/.keep +0 -0
  110. data/examples/rails-custom-login-page/test/fixtures/files/.keep +0 -0
  111. data/examples/rails-custom-login-page/test/helpers/.keep +0 -0
  112. data/examples/rails-custom-login-page/test/integration/.keep +0 -0
  113. data/examples/rails-custom-login-page/test/mailers/.keep +0 -0
  114. data/examples/rails-custom-login-page/test/models/.keep +0 -0
  115. data/examples/rails-custom-login-page/test/system/.keep +0 -0
  116. data/examples/rails-custom-login-page/test/test_helper.rb +0 -9
  117. data/examples/rails-custom-login-page/vendor/.keep +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: db38cae3acb3c8a5810159344a5e088b9e2b52467831e865b625462b470d6340
4
- data.tar.gz: b40ec7f43940358e3e2014a1075074778afd6d1d4263b3fa1ea2a6b78853e55e
3
+ metadata.gz: 341fedcf1ef3faf8e076b127ad2b7379c48fe04957396d850d3468a01a27b369
4
+ data.tar.gz: ca91b881e24411ff62d8d91b37e6226d5f879c8f245eaced58c44d84194ff892
5
5
  SHA512:
6
- metadata.gz: d0e8f95dc8d30b514d1a0427b64364a2389a548057d643bda94a2a58cf6c44dc3bf33240b7d1d660ad5ff8c09595b4e4e1e7f7ad6382a5aa54fd044209219cda
7
- data.tar.gz: bafb58f70a588457fc592dd397c54069a87245df8d332d56369c36bb6842d3a1fb4e5cfa9250e0b346dc335f288f99a0e6a4fdc3f9fa0960413349155c8647c7
6
+ metadata.gz: 6d0a9ac12d1bb6fc17434ff5503f0fe311ad9b48603f430244423c19c6b9e130e434e2892f4d3308dcfa4c1dc966a5557ba6537d7a733567dd5f42e3a6db8b49
7
+ data.tar.gz: c95b20d2915d751098950bc1bda5b0356bbc1d9bb4fad76f3c94bf4a8134705bbb3c745b1b4518e849cb0c1994ca2c3a0a3f7584c8eab051dd1344f4dee995c4
@@ -9,7 +9,7 @@ jobs:
9
9
  strategy:
10
10
  fail-fast: false
11
11
  matrix:
12
- ruby: ['3.0', '3.1', '3.2', '3.3']
12
+ ruby: ['3.2', '3.3', '3.4']
13
13
 
14
14
  steps:
15
15
  - name: Checkout
data/README.md CHANGED
@@ -3,9 +3,15 @@
3
3
  This SDK will let you execute all the API methods, version/1, described
4
4
  at https://developers.onelogin.com/api-docs/1/getting-started/dev-overview.
5
5
 
6
- The toolkit is hosted on github. You can download it from:
6
+ The toolkit is hosted on GitHub. You can download it from:
7
7
  * Lastest release: https://github.com/onelogin/onelogin-ruby-sdk/releases/latest
8
- * Master repo: https://github.com/onelogin/onelogin-ruby-sdk/tree/master
8
+ * Main repo: https://github.com/onelogin/onelogin-ruby-sdk/tree/main
9
+
10
+
11
+ ## Support
12
+
13
+ OneLogin by One Identity open source projects are supported through [OneLogin GitHub issues](https://github.com/onelogin/onelogin-ruby-sdk/issues). This includes all scripts, plugins, SDKs, modules, code snippets or other solutions. For assistance with any OneLogin by One Identity GitHub project, please raise a new Issue on the [OneLogin GitHub issues](https://github.com/onelogin/onelogin-ruby-sdk/issues) page. Requests for assistance made through official One Identity Support will be referred back to GitHub where those requests can benefit all users.
14
+
9
15
 
10
16
 
11
17
  ## Installation
@@ -27,7 +33,17 @@ Or install it yourself as:
27
33
 
28
34
  ### Dependencies
29
35
 
36
+ * Ruby >= 3.2
30
37
  * httparty
38
+ * nokogiri
39
+
40
+ Ruby 3.2 is the lowest version on which `nokogiri` resolves to a release with
41
+ no known security advisories — below it, the newest installable `nokogiri` is
42
+ still affected by a critical one.
43
+
44
+ On an older Ruby, `bundle install` resolves to the most recent release that
45
+ still supports it rather than failing, so existing builds keep working. You
46
+ just stop receiving updates until you upgrade Ruby.
31
47
 
32
48
  ## Getting started
33
49
 
@@ -167,17 +183,42 @@ query_parameters = {
167
183
  }
168
184
  users_filtered2 = client.get_users(query_parameters)
169
185
 
170
- # Get Users with limit
186
+ # Get Users with a page size of 3.
187
+ #
188
+ # `limit` is the API's page size, not a cap on the total. To stop after a
189
+ # fixed number of results use `take`, or set `max_results` on the client.
171
190
  query_parameters = {
172
191
  limit: 3
173
192
  }
174
- users_filtered_limited = client.get_users(query_parameters)
193
+ users_paged_by_three = client.get_users(query_parameters)
194
+
195
+ # Stop after 3 users regardless of page size
196
+ first_three = client.get_users.take(3)
175
197
 
176
198
  # Only return the firstname and email fields for each user
177
199
  client.get_users(fields: 'email,firstname').each do |user|
178
200
  puts "#{user.firstname} - #{user.email}"
179
201
  end
180
202
 
203
+ # Sort server-side with the sort parameter. Prefix with - to reverse.
204
+ # Sorting happens in the API, so you do not need to fetch every user and
205
+ # sort client-side.
206
+ query_parameters = {
207
+ sort: '+id'
208
+ }
209
+ users_sorted = client.get_users(query_parameters)
210
+
211
+ # Ten least recently active users.
212
+ #
213
+ # `sort` is applied by the API. `limit` sets the page size so the request
214
+ # itself only fetches ten rows, and `take` stops the cursor after ten so it
215
+ # does not page any further.
216
+ #
217
+ # Use both: `limit` alone does not cap the total, because the cursor keeps
218
+ # following pages until they run out or `max_results` is reached, and `take`
219
+ # alone still transfers a full default-sized page and discards the extra.
220
+ least_recently_active = client.get_users(sort: '+last_login', limit: 10).take(10)
221
+
181
222
  # Get User by id
182
223
  user = client.get_user(users_filtered.first.id)
183
224
  user_mfa = client.get_user(users_filtered2.first.id)
@@ -515,4 +556,4 @@ The gem is available as open source under the terms of the [MIT License](http://
515
556
 
516
557
  ## Code of Conduct
517
558
 
518
- Everyone interacting in the OneLogin Ruby Sdk project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/onelogin/onelogin-ruby-sdk/blob/master/CODE_OF_CONDUCT.md).
559
+ Everyone interacting in the OneLogin Ruby Sdk project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/onelogin/onelogin-ruby-sdk/blob/main/CODE_OF_CONDUCT.md).
@@ -1,19 +1,23 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- httparty (0.18.0)
5
- mime-types (~> 3.0)
4
+ bigdecimal (4.1.2)
5
+ csv (3.3.6)
6
+ httparty (0.24.2)
7
+ csv
8
+ mini_mime (>= 1.0.0)
6
9
  multi_xml (>= 0.5.2)
7
- mime-types (3.3.1)
8
- mime-types-data (~> 3.2015)
9
- mime-types-data (3.2020.0425)
10
- mini_portile2 (2.4.0)
11
- multi_xml (0.6.0)
12
- nokogiri (1.10.9)
13
- mini_portile2 (~> 2.4.0)
14
- onelogin (1.6.0)
10
+ mini_mime (1.1.5)
11
+ mini_portile2 (2.8.9)
12
+ multi_xml (0.9.1)
13
+ bigdecimal (>= 3.1, < 5)
14
+ nokogiri (1.19.4)
15
+ mini_portile2 (~> 2.8.2)
16
+ racc (~> 1.4)
17
+ onelogin (1.7.0)
15
18
  httparty (>= 0.13.7)
16
19
  nokogiri (>= 1.6.3.1)
20
+ racc (1.8.1)
17
21
 
18
22
  PLATFORMS
19
23
  ruby
@@ -22,4 +26,4 @@ DEPENDENCIES
22
26
  onelogin
23
27
 
24
28
  BUNDLED WITH
25
- 2.1.4
29
+ 2.6.9
@@ -52,11 +52,15 @@ OptionParser.new do |opts|
52
52
  end
53
53
  end.parse!
54
54
 
55
+ counter = 0
56
+ limit = options[:limit] || 1000
57
+
55
58
  # Fetch the events
56
59
  client = OneLogin::Api::Client.new(
57
60
  client_id: 'ONELOGIN_CLIENT_ID_GOES_HERE',
58
61
  client_secret: 'ONELOGIN_CLIENT_SECRET_GOES_HERE',
59
- region: 'us'
62
+ region: 'us',
63
+ max_results: limit
60
64
  )
61
65
 
62
66
  attribute_names = ['id', 'created_at', 'account_id', 'user_id', 'user_name', 'event_type_id',
@@ -66,9 +70,6 @@ attribute_names = ['id', 'created_at', 'account_id', 'user_id', 'user_name', 'ev
66
70
  'operation_name', 'directory_sync_run_id', 'directory_id', 'resolution', 'client_id',
67
71
  'resource_type_id', 'error_description', 'risk_score', 'risk_reasons', 'risk_cookie_id', 'browser_fingerprint']
68
72
 
69
- counter = 0
70
- limit = options[:limit] || 1000
71
-
72
73
  # We remove limit from options parsed to the api as we want to fetch
73
74
  # the max number of records possible and then use the cursor that is
74
75
  # built into the ruby sdk to limit the results
@@ -1,6 +1,9 @@
1
1
  module OneLogin
2
2
  module Api
3
3
  class ApiException < Exception
4
+ # HTTP status (or API status code) the exception was raised for.
5
+ attr_reader :code
6
+
4
7
  def initialize(message, code)
5
8
  super(message)
6
9
  @code = code
@@ -60,6 +60,28 @@ module OneLogin
60
60
  raise ArgumentError, 'client_id & client_secret are required' unless @client_id && @client_secret
61
61
  end
62
62
 
63
+ # Normalize caller-supplied parameter hashes to string keys.
64
+ #
65
+ # The README and examples use symbol keys, but the required-parameter
66
+ # checks below look them up as strings. `to_json` already serializes both
67
+ # forms identically, so only the validation ever disagreed.
68
+ #
69
+ # Anything that isn't a Hash becomes an empty one so the required-parameter
70
+ # guards still fire and report the missing attribute, rather than blowing
71
+ # up on has_key? and surfacing as a generic 500.
72
+ #
73
+ # An already-string-keyed hash is returned untouched, so existing callers
74
+ # keep the exact object they passed - including Hash subclasses with their
75
+ # own to_json.
76
+ #
77
+ def stringify_param_keys(params)
78
+ return {} unless params.is_a?(Hash)
79
+ return params if params.keys.all? { |key| key.is_a?(String) }
80
+
81
+ params.each_with_object({}) { |(key, value), out| out[key.to_s] = value }
82
+ end
83
+ private :stringify_param_keys
84
+
63
85
  # Coerce the configured refresh buffer into a non-negative Integer.
64
86
  #
65
87
  # ENV-backed configs hand this over as a String, and a negative buffer
@@ -1141,6 +1163,8 @@ module OneLogin
1141
1163
  begin
1142
1164
  url = url_for(SESSION_LOGIN_TOKEN_URL)
1143
1165
 
1166
+ query_params = stringify_param_keys(query_params)
1167
+
1144
1168
  if query_params.nil? || !query_params.has_key?('username_or_email') || !query_params.has_key?('password') || !query_params.has_key?('subdomain')
1145
1169
  raise "username_or_email, password and subdomain are required parameters"
1146
1170
  end
@@ -1366,7 +1390,12 @@ module OneLogin
1366
1390
  begin
1367
1391
  url = url_for(CREATE_APP_URL)
1368
1392
 
1369
- unless app_params.has_key?('connector_id') || app_params['connector_id'].to_s.empty?
1393
+ app_params = stringify_param_keys(app_params)
1394
+
1395
+ # Was `unless has_key? || value.empty?`, which is true in every case,
1396
+ # so the check never fired and an app could be created with no
1397
+ # connector_id at all.
1398
+ if !app_params.has_key?('connector_id') || app_params['connector_id'].to_s.empty?
1370
1399
  @error = '400'
1371
1400
  @error_description = "connector_id is required"
1372
1401
  @error_attribute = "connector_id"
@@ -64,8 +64,11 @@ class Cursor
64
64
 
65
65
  json = response.parsed_response
66
66
 
67
- if json.nil?
68
- raise OneLogin::Api::ApiException.new("Response could not be parsed", 500)
67
+ # HTTParty picks its parser from Content-Type, so a gateway or proxy error
68
+ # page comes back as a String and every has_key? below would blow up with a
69
+ # NoMethodError instead of a usable ApiException.
70
+ if json.nil? || !json.is_a?(Hash)
71
+ raise OneLogin::Api::ApiException.new("Response could not be parsed", response.code)
69
72
  elsif !json.has_key?(@container) && json.has_key?('status') && json["status"]["error"] == true
70
73
  raise OneLogin::Api::ApiException.new(extract_error_message_from_response(response), json["status"]["code"])
71
74
  elsif !json.has_key?(@container) && json.has_key?('statusCode')
@@ -1,3 +1,3 @@
1
1
  module OneLogin
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
data/onelogin.gemspec CHANGED
@@ -34,13 +34,13 @@ Gem::Specification.new do |spec|
34
34
  spec.bindir = "exe"
35
35
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
36
  spec.require_paths = ["lib"]
37
- spec.required_ruby_version = '>= 1.9.3'
37
+ spec.required_ruby_version = '>= 3.2'
38
38
 
39
39
  spec.add_runtime_dependency('httparty', '>=0.13.7')
40
40
  spec.add_runtime_dependency('nokogiri', '>=1.6.3.1')
41
41
 
42
42
  spec.add_development_dependency "bundler"
43
- spec.add_development_dependency "rake", "~> 10.0"
43
+ spec.add_development_dependency "rake", "~> 13.0"
44
44
  spec.add_development_dependency "rspec", "~> 3.0"
45
45
  spec.add_development_dependency "webmock", "~> 3.0"
46
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onelogin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OneLogin
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -107,7 +107,6 @@ files:
107
107
  - ".github/workflows/git-secrets-public.yml"
108
108
  - ".github/workflows/test.yml"
109
109
  - ".gitignore"
110
- - ".travis.yml"
111
110
  - CODE_OF_CONDUCT.md
112
111
  - Gemfile
113
112
  - LICENSE
@@ -125,111 +124,6 @@ files:
125
124
  - examples/get-all-login-events-of-last-day-to-csv.rb
126
125
  - examples/last-app-user-login-to-csv.rb
127
126
  - examples/list-users.rb
128
- - examples/rails-custom-login-page/.gitignore
129
- - examples/rails-custom-login-page/.ruby-version
130
- - examples/rails-custom-login-page/Gemfile
131
- - examples/rails-custom-login-page/Gemfile.lock
132
- - examples/rails-custom-login-page/README.md
133
- - examples/rails-custom-login-page/Rakefile
134
- - examples/rails-custom-login-page/app/assets/config/manifest.js
135
- - examples/rails-custom-login-page/app/assets/images/.keep
136
- - examples/rails-custom-login-page/app/assets/javascripts/application.js
137
- - examples/rails-custom-login-page/app/assets/javascripts/cable.js
138
- - examples/rails-custom-login-page/app/assets/javascripts/channels/.keep
139
- - examples/rails-custom-login-page/app/assets/javascripts/dashboard.coffee
140
- - examples/rails-custom-login-page/app/assets/javascripts/home.coffee
141
- - examples/rails-custom-login-page/app/assets/javascripts/sessions.coffee
142
- - examples/rails-custom-login-page/app/assets/stylesheets/application.css
143
- - examples/rails-custom-login-page/app/assets/stylesheets/dashboard.scss
144
- - examples/rails-custom-login-page/app/assets/stylesheets/home.scss
145
- - examples/rails-custom-login-page/app/assets/stylesheets/sessions.scss
146
- - examples/rails-custom-login-page/app/channels/application_cable/channel.rb
147
- - examples/rails-custom-login-page/app/channels/application_cable/connection.rb
148
- - examples/rails-custom-login-page/app/controllers/application_controller.rb
149
- - examples/rails-custom-login-page/app/controllers/concerns/.keep
150
- - examples/rails-custom-login-page/app/controllers/dashboard_controller.rb
151
- - examples/rails-custom-login-page/app/controllers/home_controller.rb
152
- - examples/rails-custom-login-page/app/controllers/sessions_controller.rb
153
- - examples/rails-custom-login-page/app/controllers/users_controller.rb
154
- - examples/rails-custom-login-page/app/helpers/application_helper.rb
155
- - examples/rails-custom-login-page/app/helpers/dashboard_helper.rb
156
- - examples/rails-custom-login-page/app/helpers/home_helper.rb
157
- - examples/rails-custom-login-page/app/helpers/sessions_helper.rb
158
- - examples/rails-custom-login-page/app/helpers/users_helper.rb
159
- - examples/rails-custom-login-page/app/jobs/application_job.rb
160
- - examples/rails-custom-login-page/app/mailers/application_mailer.rb
161
- - examples/rails-custom-login-page/app/models/application_record.rb
162
- - examples/rails-custom-login-page/app/models/concerns/.keep
163
- - examples/rails-custom-login-page/app/views/dashboard/index.html.erb
164
- - examples/rails-custom-login-page/app/views/home/index.html.erb
165
- - examples/rails-custom-login-page/app/views/layouts/application.html.erb
166
- - examples/rails-custom-login-page/app/views/layouts/mailer.html.erb
167
- - examples/rails-custom-login-page/app/views/layouts/mailer.text.erb
168
- - examples/rails-custom-login-page/app/views/users/_form.html.erb
169
- - examples/rails-custom-login-page/app/views/users/_user.json.jbuilder
170
- - examples/rails-custom-login-page/app/views/users/edit.html.erb
171
- - examples/rails-custom-login-page/app/views/users/index.html.erb
172
- - examples/rails-custom-login-page/app/views/users/index.json.jbuilder
173
- - examples/rails-custom-login-page/app/views/users/new.html.erb
174
- - examples/rails-custom-login-page/app/views/users/onboard.html.erb
175
- - examples/rails-custom-login-page/app/views/users/show.html.erb
176
- - examples/rails-custom-login-page/app/views/users/show.json.jbuilder
177
- - examples/rails-custom-login-page/bin/bundle
178
- - examples/rails-custom-login-page/bin/rails
179
- - examples/rails-custom-login-page/bin/rake
180
- - examples/rails-custom-login-page/bin/setup
181
- - examples/rails-custom-login-page/bin/spring
182
- - examples/rails-custom-login-page/bin/update
183
- - examples/rails-custom-login-page/bin/yarn
184
- - examples/rails-custom-login-page/config.ru
185
- - examples/rails-custom-login-page/config/application.rb
186
- - examples/rails-custom-login-page/config/boot.rb
187
- - examples/rails-custom-login-page/config/cable.yml
188
- - examples/rails-custom-login-page/config/database.yml
189
- - examples/rails-custom-login-page/config/environment.rb
190
- - examples/rails-custom-login-page/config/environments/development.rb
191
- - examples/rails-custom-login-page/config/environments/production.rb
192
- - examples/rails-custom-login-page/config/environments/test.rb
193
- - examples/rails-custom-login-page/config/initializers/application_controller_renderer.rb
194
- - examples/rails-custom-login-page/config/initializers/assets.rb
195
- - examples/rails-custom-login-page/config/initializers/backtrace_silencers.rb
196
- - examples/rails-custom-login-page/config/initializers/cookies_serializer.rb
197
- - examples/rails-custom-login-page/config/initializers/filter_parameter_logging.rb
198
- - examples/rails-custom-login-page/config/initializers/inflections.rb
199
- - examples/rails-custom-login-page/config/initializers/mime_types.rb
200
- - examples/rails-custom-login-page/config/initializers/onelogin.rb
201
- - examples/rails-custom-login-page/config/initializers/wrap_parameters.rb
202
- - examples/rails-custom-login-page/config/locales/en.yml
203
- - examples/rails-custom-login-page/config/puma.rb
204
- - examples/rails-custom-login-page/config/routes.rb
205
- - examples/rails-custom-login-page/config/secrets.yml.sample
206
- - examples/rails-custom-login-page/config/spring.rb
207
- - examples/rails-custom-login-page/db/seeds.rb
208
- - examples/rails-custom-login-page/lib/assets/.keep
209
- - examples/rails-custom-login-page/lib/tasks/.keep
210
- - examples/rails-custom-login-page/package.json
211
- - examples/rails-custom-login-page/public/404.html
212
- - examples/rails-custom-login-page/public/422.html
213
- - examples/rails-custom-login-page/public/500.html
214
- - examples/rails-custom-login-page/public/apple-touch-icon-precomposed.png
215
- - examples/rails-custom-login-page/public/apple-touch-icon.png
216
- - examples/rails-custom-login-page/public/favicon.ico
217
- - examples/rails-custom-login-page/public/robots.txt
218
- - examples/rails-custom-login-page/test/application_system_test_case.rb
219
- - examples/rails-custom-login-page/test/controllers/.keep
220
- - examples/rails-custom-login-page/test/controllers/dashboard_controller_test.rb
221
- - examples/rails-custom-login-page/test/controllers/home_controller_test.rb
222
- - examples/rails-custom-login-page/test/controllers/sessions_controller_test.rb
223
- - examples/rails-custom-login-page/test/controllers/users_controller_test.rb
224
- - examples/rails-custom-login-page/test/fixtures/.keep
225
- - examples/rails-custom-login-page/test/fixtures/files/.keep
226
- - examples/rails-custom-login-page/test/helpers/.keep
227
- - examples/rails-custom-login-page/test/integration/.keep
228
- - examples/rails-custom-login-page/test/mailers/.keep
229
- - examples/rails-custom-login-page/test/models/.keep
230
- - examples/rails-custom-login-page/test/system/.keep
231
- - examples/rails-custom-login-page/test/test_helper.rb
232
- - examples/rails-custom-login-page/vendor/.keep
233
127
  - lib/onelogin.rb
234
128
  - lib/onelogin/api.rb
235
129
  - lib/onelogin/api/apiexception.rb
@@ -281,7 +175,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
281
175
  requirements:
282
176
  - - ">="
283
177
  - !ruby/object:Gem::Version
284
- version: 1.9.3
178
+ version: '3.2'
285
179
  required_rubygems_version: !ruby/object:Gem::Requirement
286
180
  requirements:
287
181
  - - ">="
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 1.9.3
5
- - 2.4.1
6
- before_install: gem install bundler -v 1.15.3
@@ -1,45 +0,0 @@
1
- *.rbc
2
- capybara-*.html
3
- .rspec
4
- /log
5
- /tmp
6
- /db/*.sqlite3
7
- /db/*.sqlite3-journal
8
- /public/system
9
- /coverage/
10
- /spec/tmp
11
- *.orig
12
- rerun.txt
13
- pickle-email-*.html
14
-
15
-
16
- # TODO Comment out this rule if you are OK with secrets being uploaded to the repo
17
- config/initializers/secret_token.rb
18
-
19
- # Only include if you have production secrets in this file, which is no longer a Rails default
20
- config/secrets.yml
21
-
22
- # dotenv
23
- # TODO Comment out this rule if environment variables can be committed
24
- .env
25
-
26
- ## Environment normalization:
27
- /.bundle
28
- /vendor/bundle
29
-
30
- # these should all be checked in to normalize the environment:
31
- Gemfile.lock, .ruby-version, .ruby-gemset
32
-
33
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
- .rvmrc
35
-
36
- # if using bower-rails ignore default bower_components path bower.json files
37
- /vendor/assets/bower_components
38
- *.bowerrc
39
- bower.json
40
-
41
- # Ignore pow environment settings
42
- .powenv
43
-
44
- # Ignore Byebug command history file.
45
- .byebug_history
@@ -1 +0,0 @@
1
- 2.2.5
@@ -1,57 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) do |repo_name|
4
- repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
5
- "https://github.com/#{repo_name}.git"
6
- end
7
-
8
-
9
- # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
10
- gem 'rails', '~> 5.1.4'
11
- # Use sqlite3 as the database for Active Record
12
- gem 'sqlite3'
13
- # Use Puma as the app server
14
- gem 'puma', '~> 3.12'
15
- # Use SCSS for stylesheets
16
- gem 'sass-rails', '~> 5.0'
17
- # Use Uglifier as compressor for JavaScript assets
18
- gem 'uglifier', '>= 1.3.0'
19
- # See https://github.com/rails/execjs#readme for more supported runtimes
20
- # gem 'therubyracer', platforms: :ruby
21
-
22
- # Use CoffeeScript for .coffee assets and views
23
- gem 'coffee-rails', '~> 4.2'
24
- # Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
25
- gem 'turbolinks', '~> 5'
26
- # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
27
- gem 'jbuilder', '~> 2.5'
28
- # Use Redis adapter to run Action Cable in production
29
- # gem 'redis', '~> 3.0'
30
- # Use ActiveModel has_secure_password
31
- # gem 'bcrypt', '~> 3.1.7'
32
-
33
- # Use Capistrano for deployment
34
- # gem 'capistrano-rails', group: :development
35
-
36
- gem 'onelogin', '~> 1.6.0'
37
- gem 'jquery-rails'
38
-
39
- group :development, :test do
40
- # Call 'byebug' anywhere in the code to stop execution and get a debugger console
41
- gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
42
- # Adds support for Capybara system testing and selenium driver
43
- gem 'capybara', '~> 2.13'
44
- gem 'selenium-webdriver'
45
- end
46
-
47
- group :development do
48
- # Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
49
- gem 'web-console', '>= 3.3.0'
50
- gem 'listen', '>= 3.0.5', '< 3.2'
51
- # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
52
- gem 'spring'
53
- gem 'spring-watcher-listen', '~> 2.0.0'
54
- end
55
-
56
- # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
57
- gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]