onelogin 1.7.0 → 1.9.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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -1
- data/README.md +75 -5
- data/examples/Gemfile.lock +15 -11
- data/examples/events-to-csv.rb +5 -4
- data/lib/onelogin/api/apiexception.rb +3 -0
- data/lib/onelogin/api/client.rb +109 -18
- data/lib/onelogin/api/cursor.rb +46 -3
- data/lib/onelogin/api/models/app.rb +8 -1
- data/lib/onelogin/api/models/user.rb +2 -1
- data/lib/onelogin/api/util/constants.rb +18 -0
- data/lib/onelogin/api/util/parser.rb +6 -2
- data/lib/onelogin/api/util/url_builder.rb +25 -1
- data/lib/onelogin/version.rb +1 -1
- data/onelogin.gemspec +2 -2
- metadata +6 -115
- data/.travis.yml +0 -6
- data/examples/rails-custom-login-page/.gitignore +0 -45
- data/examples/rails-custom-login-page/.ruby-version +0 -1
- data/examples/rails-custom-login-page/Gemfile +0 -57
- data/examples/rails-custom-login-page/Gemfile.lock +0 -212
- data/examples/rails-custom-login-page/README.md +0 -137
- data/examples/rails-custom-login-page/Rakefile +0 -6
- data/examples/rails-custom-login-page/app/assets/config/manifest.js +0 -3
- data/examples/rails-custom-login-page/app/assets/images/.keep +0 -0
- data/examples/rails-custom-login-page/app/assets/javascripts/application.js +0 -18
- data/examples/rails-custom-login-page/app/assets/javascripts/cable.js +0 -13
- data/examples/rails-custom-login-page/app/assets/javascripts/channels/.keep +0 -0
- data/examples/rails-custom-login-page/app/assets/javascripts/dashboard.coffee +0 -3
- data/examples/rails-custom-login-page/app/assets/javascripts/home.coffee +0 -3
- data/examples/rails-custom-login-page/app/assets/javascripts/sessions.coffee +0 -3
- data/examples/rails-custom-login-page/app/assets/stylesheets/application.css +0 -15
- data/examples/rails-custom-login-page/app/assets/stylesheets/dashboard.scss +0 -3
- data/examples/rails-custom-login-page/app/assets/stylesheets/home.scss +0 -3
- data/examples/rails-custom-login-page/app/assets/stylesheets/sessions.scss +0 -3
- data/examples/rails-custom-login-page/app/channels/application_cable/channel.rb +0 -4
- data/examples/rails-custom-login-page/app/channels/application_cable/connection.rb +0 -4
- data/examples/rails-custom-login-page/app/controllers/application_controller.rb +0 -23
- data/examples/rails-custom-login-page/app/controllers/concerns/.keep +0 -0
- data/examples/rails-custom-login-page/app/controllers/dashboard_controller.rb +0 -10
- data/examples/rails-custom-login-page/app/controllers/home_controller.rb +0 -5
- data/examples/rails-custom-login-page/app/controllers/sessions_controller.rb +0 -46
- data/examples/rails-custom-login-page/app/controllers/users_controller.rb +0 -120
- data/examples/rails-custom-login-page/app/helpers/application_helper.rb +0 -2
- data/examples/rails-custom-login-page/app/helpers/dashboard_helper.rb +0 -28
- data/examples/rails-custom-login-page/app/helpers/home_helper.rb +0 -2
- data/examples/rails-custom-login-page/app/helpers/sessions_helper.rb +0 -87
- data/examples/rails-custom-login-page/app/helpers/users_helper.rb +0 -3
- data/examples/rails-custom-login-page/app/jobs/application_job.rb +0 -2
- data/examples/rails-custom-login-page/app/mailers/application_mailer.rb +0 -4
- data/examples/rails-custom-login-page/app/models/application_record.rb +0 -3
- data/examples/rails-custom-login-page/app/models/concerns/.keep +0 -0
- data/examples/rails-custom-login-page/app/views/dashboard/index.html.erb +0 -43
- data/examples/rails-custom-login-page/app/views/home/index.html.erb +0 -272
- data/examples/rails-custom-login-page/app/views/layouts/application.html.erb +0 -31
- data/examples/rails-custom-login-page/app/views/layouts/mailer.html.erb +0 -13
- data/examples/rails-custom-login-page/app/views/layouts/mailer.text.erb +0 -1
- data/examples/rails-custom-login-page/app/views/users/_form.html.erb +0 -1
- data/examples/rails-custom-login-page/app/views/users/_user.json.jbuilder +0 -2
- data/examples/rails-custom-login-page/app/views/users/edit.html.erb +0 -33
- data/examples/rails-custom-login-page/app/views/users/index.html.erb +0 -33
- data/examples/rails-custom-login-page/app/views/users/index.json.jbuilder +0 -1
- data/examples/rails-custom-login-page/app/views/users/new.html.erb +0 -60
- data/examples/rails-custom-login-page/app/views/users/onboard.html.erb +0 -54
- data/examples/rails-custom-login-page/app/views/users/show.html.erb +0 -17
- data/examples/rails-custom-login-page/app/views/users/show.json.jbuilder +0 -1
- data/examples/rails-custom-login-page/bin/bundle +0 -3
- data/examples/rails-custom-login-page/bin/rails +0 -9
- data/examples/rails-custom-login-page/bin/rake +0 -9
- data/examples/rails-custom-login-page/bin/setup +0 -38
- data/examples/rails-custom-login-page/bin/spring +0 -17
- data/examples/rails-custom-login-page/bin/update +0 -29
- data/examples/rails-custom-login-page/bin/yarn +0 -11
- data/examples/rails-custom-login-page/config/application.rb +0 -18
- data/examples/rails-custom-login-page/config/boot.rb +0 -3
- data/examples/rails-custom-login-page/config/cable.yml +0 -10
- data/examples/rails-custom-login-page/config/database.yml +0 -25
- data/examples/rails-custom-login-page/config/environment.rb +0 -5
- data/examples/rails-custom-login-page/config/environments/development.rb +0 -54
- data/examples/rails-custom-login-page/config/environments/production.rb +0 -91
- data/examples/rails-custom-login-page/config/environments/test.rb +0 -42
- data/examples/rails-custom-login-page/config/initializers/application_controller_renderer.rb +0 -8
- data/examples/rails-custom-login-page/config/initializers/assets.rb +0 -14
- data/examples/rails-custom-login-page/config/initializers/backtrace_silencers.rb +0 -7
- data/examples/rails-custom-login-page/config/initializers/cookies_serializer.rb +0 -5
- data/examples/rails-custom-login-page/config/initializers/filter_parameter_logging.rb +0 -4
- data/examples/rails-custom-login-page/config/initializers/inflections.rb +0 -16
- data/examples/rails-custom-login-page/config/initializers/mime_types.rb +0 -4
- data/examples/rails-custom-login-page/config/initializers/onelogin.rb +0 -6
- data/examples/rails-custom-login-page/config/initializers/wrap_parameters.rb +0 -14
- data/examples/rails-custom-login-page/config/locales/en.yml +0 -33
- data/examples/rails-custom-login-page/config/puma.rb +0 -56
- data/examples/rails-custom-login-page/config/routes.rb +0 -23
- data/examples/rails-custom-login-page/config/secrets.yml.sample +0 -38
- data/examples/rails-custom-login-page/config/spring.rb +0 -6
- data/examples/rails-custom-login-page/config.ru +0 -5
- data/examples/rails-custom-login-page/db/seeds.rb +0 -7
- data/examples/rails-custom-login-page/lib/assets/.keep +0 -0
- data/examples/rails-custom-login-page/lib/tasks/.keep +0 -0
- data/examples/rails-custom-login-page/package.json +0 -5
- data/examples/rails-custom-login-page/public/404.html +0 -67
- data/examples/rails-custom-login-page/public/422.html +0 -67
- data/examples/rails-custom-login-page/public/500.html +0 -66
- data/examples/rails-custom-login-page/public/apple-touch-icon-precomposed.png +0 -0
- data/examples/rails-custom-login-page/public/apple-touch-icon.png +0 -0
- data/examples/rails-custom-login-page/public/favicon.ico +0 -0
- data/examples/rails-custom-login-page/public/robots.txt +0 -1
- data/examples/rails-custom-login-page/test/application_system_test_case.rb +0 -5
- data/examples/rails-custom-login-page/test/controllers/.keep +0 -0
- data/examples/rails-custom-login-page/test/controllers/dashboard_controller_test.rb +0 -9
- data/examples/rails-custom-login-page/test/controllers/home_controller_test.rb +0 -9
- data/examples/rails-custom-login-page/test/controllers/sessions_controller_test.rb +0 -7
- data/examples/rails-custom-login-page/test/controllers/users_controller_test.rb +0 -48
- data/examples/rails-custom-login-page/test/fixtures/.keep +0 -0
- data/examples/rails-custom-login-page/test/fixtures/files/.keep +0 -0
- data/examples/rails-custom-login-page/test/helpers/.keep +0 -0
- data/examples/rails-custom-login-page/test/integration/.keep +0 -0
- data/examples/rails-custom-login-page/test/mailers/.keep +0 -0
- data/examples/rails-custom-login-page/test/models/.keep +0 -0
- data/examples/rails-custom-login-page/test/system/.keep +0 -0
- data/examples/rails-custom-login-page/test/test_helper.rb +0 -9
- data/examples/rails-custom-login-page/vendor/.keep +0 -0
|
@@ -3,13 +3,20 @@ module OneLogin
|
|
|
3
3
|
module Util
|
|
4
4
|
module UrlBuilder
|
|
5
5
|
|
|
6
|
+
# The version segment of a versioned endpoint, e.g. "/api/1/"
|
|
7
|
+
API_VERSION_SEGMENT = %r{/api/\d+/}
|
|
8
|
+
|
|
6
9
|
# Build the URL of the API endpoint
|
|
7
10
|
#
|
|
8
11
|
# @param base [String] Base of the endpoint
|
|
9
12
|
# @param obj_id [String, nil] Id of the referenced object
|
|
10
13
|
# @param extra_id [String, nil] Id of the secundary referenced object
|
|
14
|
+
# @param version [Integer, nil] API version to call. Defaults to the
|
|
15
|
+
# version already in the base.
|
|
11
16
|
#
|
|
12
|
-
def url_for(base, obj_id=nil, extra_id=nil)
|
|
17
|
+
def url_for(base, obj_id=nil, extra_id=nil, version: nil)
|
|
18
|
+
base = with_api_version(base, version) unless version.nil?
|
|
19
|
+
|
|
13
20
|
if obj_id.nil? || obj_id.to_s.empty?
|
|
14
21
|
base % [@region]
|
|
15
22
|
elsif extra_id.nil? || extra_id.to_s.empty?
|
|
@@ -18,6 +25,23 @@ module OneLogin
|
|
|
18
25
|
base % [@region, obj_id, extra_id]
|
|
19
26
|
end
|
|
20
27
|
end
|
|
28
|
+
|
|
29
|
+
private
|
|
30
|
+
|
|
31
|
+
# Swap the version segment of an endpoint, so the URL constants keep
|
|
32
|
+
# their current values and stay the default.
|
|
33
|
+
#
|
|
34
|
+
# Raises rather than calling a version nobody asked for. The client
|
|
35
|
+
# still rescues this into error '500', but error_description then names
|
|
36
|
+
# the endpoint.
|
|
37
|
+
#
|
|
38
|
+
def with_api_version(base, version)
|
|
39
|
+
unless base.scan(API_VERSION_SEGMENT).size == 1
|
|
40
|
+
raise ArgumentError, "#{base} has no single API version segment to replace"
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
base.sub(API_VERSION_SEGMENT, "/api/#{version}/")
|
|
44
|
+
end
|
|
21
45
|
end
|
|
22
46
|
end
|
|
23
47
|
end
|
data/lib/onelogin/version.rb
CHANGED
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 = '>=
|
|
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", "~>
|
|
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,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: onelogin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OneLogin
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
10
|
+
date: 2026-10-23 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: httparty
|
|
@@ -58,14 +57,14 @@ dependencies:
|
|
|
58
57
|
requirements:
|
|
59
58
|
- - "~>"
|
|
60
59
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
60
|
+
version: '13.0'
|
|
62
61
|
type: :development
|
|
63
62
|
prerelease: false
|
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
64
|
requirements:
|
|
66
65
|
- - "~>"
|
|
67
66
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
67
|
+
version: '13.0'
|
|
69
68
|
- !ruby/object:Gem::Dependency
|
|
70
69
|
name: rspec
|
|
71
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -107,7 +106,6 @@ files:
|
|
|
107
106
|
- ".github/workflows/git-secrets-public.yml"
|
|
108
107
|
- ".github/workflows/test.yml"
|
|
109
108
|
- ".gitignore"
|
|
110
|
-
- ".travis.yml"
|
|
111
109
|
- CODE_OF_CONDUCT.md
|
|
112
110
|
- Gemfile
|
|
113
111
|
- LICENSE
|
|
@@ -125,111 +123,6 @@ files:
|
|
|
125
123
|
- examples/get-all-login-events-of-last-day-to-csv.rb
|
|
126
124
|
- examples/last-app-user-login-to-csv.rb
|
|
127
125
|
- 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
126
|
- lib/onelogin.rb
|
|
234
127
|
- lib/onelogin/api.rb
|
|
235
128
|
- lib/onelogin/api/apiexception.rb
|
|
@@ -273,7 +166,6 @@ licenses:
|
|
|
273
166
|
- MIT
|
|
274
167
|
metadata:
|
|
275
168
|
allowed_push_host: https://rubygems.org
|
|
276
|
-
post_install_message:
|
|
277
169
|
rdoc_options: []
|
|
278
170
|
require_paths:
|
|
279
171
|
- lib
|
|
@@ -281,15 +173,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
281
173
|
requirements:
|
|
282
174
|
- - ">="
|
|
283
175
|
- !ruby/object:Gem::Version
|
|
284
|
-
version:
|
|
176
|
+
version: '3.2'
|
|
285
177
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
286
178
|
requirements:
|
|
287
179
|
- - ">="
|
|
288
180
|
- !ruby/object:Gem::Version
|
|
289
181
|
version: '0'
|
|
290
182
|
requirements: []
|
|
291
|
-
rubygems_version: 3.2
|
|
292
|
-
signing_key:
|
|
183
|
+
rubygems_version: 3.6.2
|
|
293
184
|
specification_version: 4
|
|
294
185
|
summary: OneLogin's Ruby SDK.
|
|
295
186
|
test_files: []
|
data/.travis.yml
DELETED
|
@@ -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]
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
GEM
|
|
2
|
-
remote: https://rubygems.org/
|
|
3
|
-
specs:
|
|
4
|
-
actioncable (5.1.5)
|
|
5
|
-
actionpack (= 5.1.5)
|
|
6
|
-
nio4r (~> 2.0)
|
|
7
|
-
websocket-driver (~> 0.6.1)
|
|
8
|
-
actionmailer (5.1.5)
|
|
9
|
-
actionpack (= 5.1.5)
|
|
10
|
-
actionview (= 5.1.5)
|
|
11
|
-
activejob (= 5.1.5)
|
|
12
|
-
mail (~> 2.5, >= 2.5.4)
|
|
13
|
-
rails-dom-testing (~> 2.0)
|
|
14
|
-
actionpack (5.1.5)
|
|
15
|
-
actionview (= 5.1.5)
|
|
16
|
-
activesupport (= 5.1.5)
|
|
17
|
-
rack (~> 2.0)
|
|
18
|
-
rack-test (>= 0.6.3)
|
|
19
|
-
rails-dom-testing (~> 2.0)
|
|
20
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
21
|
-
actionview (5.1.5)
|
|
22
|
-
activesupport (= 5.1.5)
|
|
23
|
-
builder (~> 3.1)
|
|
24
|
-
erubi (~> 1.4)
|
|
25
|
-
rails-dom-testing (~> 2.0)
|
|
26
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
27
|
-
activejob (5.1.5)
|
|
28
|
-
activesupport (= 5.1.5)
|
|
29
|
-
globalid (>= 0.3.6)
|
|
30
|
-
activemodel (5.1.5)
|
|
31
|
-
activesupport (= 5.1.5)
|
|
32
|
-
activerecord (5.1.5)
|
|
33
|
-
activemodel (= 5.1.5)
|
|
34
|
-
activesupport (= 5.1.5)
|
|
35
|
-
arel (~> 8.0)
|
|
36
|
-
activesupport (5.1.5)
|
|
37
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
38
|
-
i18n (~> 0.7)
|
|
39
|
-
minitest (~> 5.1)
|
|
40
|
-
tzinfo (~> 1.1)
|
|
41
|
-
addressable (2.5.2)
|
|
42
|
-
public_suffix (>= 2.0.2, < 4.0)
|
|
43
|
-
arel (8.0.0)
|
|
44
|
-
bindex (0.5.0)
|
|
45
|
-
builder (3.2.3)
|
|
46
|
-
byebug (10.0.1)
|
|
47
|
-
capybara (2.18.0)
|
|
48
|
-
addressable
|
|
49
|
-
mini_mime (>= 0.1.3)
|
|
50
|
-
nokogiri (>= 1.3.3)
|
|
51
|
-
rack (>= 1.0.0)
|
|
52
|
-
rack-test (>= 0.5.4)
|
|
53
|
-
xpath (>= 2.0, < 4.0)
|
|
54
|
-
childprocess (0.9.0)
|
|
55
|
-
ffi (~> 1.0, >= 1.0.11)
|
|
56
|
-
coffee-rails (4.2.2)
|
|
57
|
-
coffee-script (>= 2.2.0)
|
|
58
|
-
railties (>= 4.0.0)
|
|
59
|
-
coffee-script (2.4.1)
|
|
60
|
-
coffee-script-source
|
|
61
|
-
execjs
|
|
62
|
-
coffee-script-source (1.12.2)
|
|
63
|
-
concurrent-ruby (1.1.5)
|
|
64
|
-
crass (1.0.5)
|
|
65
|
-
erubi (1.7.1)
|
|
66
|
-
execjs (2.7.0)
|
|
67
|
-
ffi (1.11.1)
|
|
68
|
-
globalid (0.4.1)
|
|
69
|
-
activesupport (>= 4.2.0)
|
|
70
|
-
httparty (0.18.1)
|
|
71
|
-
mime-types (~> 3.0)
|
|
72
|
-
multi_xml (>= 0.5.2)
|
|
73
|
-
i18n (0.9.5)
|
|
74
|
-
concurrent-ruby (~> 1.0)
|
|
75
|
-
jbuilder (2.7.0)
|
|
76
|
-
activesupport (>= 4.2.0)
|
|
77
|
-
multi_json (>= 1.2)
|
|
78
|
-
jquery-rails (4.3.1)
|
|
79
|
-
rails-dom-testing (>= 1, < 3)
|
|
80
|
-
railties (>= 4.2.0)
|
|
81
|
-
thor (>= 0.14, < 2.0)
|
|
82
|
-
listen (3.1.5)
|
|
83
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
84
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
|
85
|
-
ruby_dep (~> 1.2)
|
|
86
|
-
loofah (2.3.1)
|
|
87
|
-
crass (~> 1.0.2)
|
|
88
|
-
nokogiri (>= 1.5.9)
|
|
89
|
-
mail (2.7.0)
|
|
90
|
-
mini_mime (>= 0.1.1)
|
|
91
|
-
method_source (0.9.0)
|
|
92
|
-
mime-types (3.3.1)
|
|
93
|
-
mime-types-data (~> 3.2015)
|
|
94
|
-
mime-types-data (3.2020.1104)
|
|
95
|
-
mini_mime (1.0.0)
|
|
96
|
-
mini_portile2 (2.4.0)
|
|
97
|
-
minitest (5.11.3)
|
|
98
|
-
multi_json (1.13.1)
|
|
99
|
-
multi_xml (0.6.0)
|
|
100
|
-
nio4r (2.3.0)
|
|
101
|
-
nokogiri (1.10.4)
|
|
102
|
-
mini_portile2 (~> 2.4.0)
|
|
103
|
-
onelogin (1.6.0)
|
|
104
|
-
httparty (>= 0.13.7)
|
|
105
|
-
nokogiri (>= 1.6.3.1)
|
|
106
|
-
public_suffix (3.0.2)
|
|
107
|
-
puma (3.12.2)
|
|
108
|
-
rack (2.0.8)
|
|
109
|
-
rack-test (0.8.3)
|
|
110
|
-
rack (>= 1.0, < 3)
|
|
111
|
-
rails (5.1.5)
|
|
112
|
-
actioncable (= 5.1.5)
|
|
113
|
-
actionmailer (= 5.1.5)
|
|
114
|
-
actionpack (= 5.1.5)
|
|
115
|
-
actionview (= 5.1.5)
|
|
116
|
-
activejob (= 5.1.5)
|
|
117
|
-
activemodel (= 5.1.5)
|
|
118
|
-
activerecord (= 5.1.5)
|
|
119
|
-
activesupport (= 5.1.5)
|
|
120
|
-
bundler (>= 1.3.0)
|
|
121
|
-
railties (= 5.1.5)
|
|
122
|
-
sprockets-rails (>= 2.0.0)
|
|
123
|
-
rails-dom-testing (2.0.3)
|
|
124
|
-
activesupport (>= 4.2.0)
|
|
125
|
-
nokogiri (>= 1.6)
|
|
126
|
-
rails-html-sanitizer (1.0.4)
|
|
127
|
-
loofah (~> 2.2, >= 2.2.2)
|
|
128
|
-
railties (5.1.5)
|
|
129
|
-
actionpack (= 5.1.5)
|
|
130
|
-
activesupport (= 5.1.5)
|
|
131
|
-
method_source
|
|
132
|
-
rake (>= 0.8.7)
|
|
133
|
-
thor (>= 0.18.1, < 2.0)
|
|
134
|
-
rake (12.3.1)
|
|
135
|
-
rb-fsevent (0.10.3)
|
|
136
|
-
rb-inotify (0.9.10)
|
|
137
|
-
ffi (>= 0.5.0, < 2)
|
|
138
|
-
ruby_dep (1.5.0)
|
|
139
|
-
rubyzip (1.3.0)
|
|
140
|
-
sass (3.5.5)
|
|
141
|
-
sass-listen (~> 4.0.0)
|
|
142
|
-
sass-listen (4.0.0)
|
|
143
|
-
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
144
|
-
rb-inotify (~> 0.9, >= 0.9.7)
|
|
145
|
-
sass-rails (5.0.7)
|
|
146
|
-
railties (>= 4.0.0, < 6)
|
|
147
|
-
sass (~> 3.1)
|
|
148
|
-
sprockets (>= 2.8, < 4.0)
|
|
149
|
-
sprockets-rails (>= 2.0, < 4.0)
|
|
150
|
-
tilt (>= 1.1, < 3)
|
|
151
|
-
selenium-webdriver (3.11.0)
|
|
152
|
-
childprocess (~> 0.5)
|
|
153
|
-
rubyzip (~> 1.2)
|
|
154
|
-
spring (2.0.2)
|
|
155
|
-
activesupport (>= 4.2)
|
|
156
|
-
spring-watcher-listen (2.0.1)
|
|
157
|
-
listen (>= 2.7, < 4.0)
|
|
158
|
-
spring (>= 1.2, < 3.0)
|
|
159
|
-
sprockets (3.7.2)
|
|
160
|
-
concurrent-ruby (~> 1.0)
|
|
161
|
-
rack (> 1, < 3)
|
|
162
|
-
sprockets-rails (3.2.1)
|
|
163
|
-
actionpack (>= 4.0)
|
|
164
|
-
activesupport (>= 4.0)
|
|
165
|
-
sprockets (>= 3.0.0)
|
|
166
|
-
sqlite3 (1.3.13)
|
|
167
|
-
thor (0.20.0)
|
|
168
|
-
thread_safe (0.3.6)
|
|
169
|
-
tilt (2.0.8)
|
|
170
|
-
turbolinks (5.1.0)
|
|
171
|
-
turbolinks-source (~> 5.1)
|
|
172
|
-
turbolinks-source (5.1.0)
|
|
173
|
-
tzinfo (1.2.5)
|
|
174
|
-
thread_safe (~> 0.1)
|
|
175
|
-
uglifier (4.1.8)
|
|
176
|
-
execjs (>= 0.3.0, < 3)
|
|
177
|
-
web-console (3.5.1)
|
|
178
|
-
actionview (>= 5.0)
|
|
179
|
-
activemodel (>= 5.0)
|
|
180
|
-
bindex (>= 0.4.0)
|
|
181
|
-
railties (>= 5.0)
|
|
182
|
-
websocket-driver (0.6.5)
|
|
183
|
-
websocket-extensions (>= 0.1.0)
|
|
184
|
-
websocket-extensions (0.1.3)
|
|
185
|
-
xpath (3.0.0)
|
|
186
|
-
nokogiri (~> 1.8)
|
|
187
|
-
|
|
188
|
-
PLATFORMS
|
|
189
|
-
ruby
|
|
190
|
-
|
|
191
|
-
DEPENDENCIES
|
|
192
|
-
byebug
|
|
193
|
-
capybara (~> 2.13)
|
|
194
|
-
coffee-rails (~> 4.2)
|
|
195
|
-
jbuilder (~> 2.5)
|
|
196
|
-
jquery-rails
|
|
197
|
-
listen (>= 3.0.5, < 3.2)
|
|
198
|
-
onelogin (~> 1.5.0)
|
|
199
|
-
puma (~> 3.12)
|
|
200
|
-
rails (~> 5.1.4)
|
|
201
|
-
sass-rails (~> 5.0)
|
|
202
|
-
selenium-webdriver
|
|
203
|
-
spring
|
|
204
|
-
spring-watcher-listen (~> 2.0.0)
|
|
205
|
-
sqlite3
|
|
206
|
-
turbolinks (~> 5)
|
|
207
|
-
tzinfo-data
|
|
208
|
-
uglifier (>= 1.3.0)
|
|
209
|
-
web-console (>= 3.3.0)
|
|
210
|
-
|
|
211
|
-
BUNDLED WITH
|
|
212
|
-
1.17.3
|