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
@@ -1,23 +0,0 @@
1
- Rails.application.routes.draw do
2
- get 'home/index'
3
-
4
- post 'login', to: 'sessions#new', as: 'new_session'
5
- get 'logout', to: 'sessions#destroy', as: 'destroy_session'
6
- post 'verify_mfa', to: 'sessions#verify', as: 'verify_mfa'
7
- post 'forgot_password', to: 'sessions#forgot_password', as: 'forgot_password'
8
- post 'reset_password', to: 'sessions#reset_password', as: 'reset_password'
9
-
10
- get 'dashboard', to: 'dashboard#index'
11
-
12
- get 'users', to: 'users#index'
13
- get 'users/:id', to: 'users#show', as: 'user'
14
- get 'signup', to: 'users#new'
15
- get 'onboard', to: 'users#onboard'
16
- post 'users', to: 'users#create'
17
- post 'activate', to: 'users#activate'
18
- get 'users/:id/edit', to: 'users#edit', as: 'edit_user'
19
- patch 'users/:id', to: 'users#update', as: 'update_user'
20
-
21
- root 'home#index'
22
- # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
23
- end
@@ -1,38 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rails secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- # Shared secrets are available across all environments.
14
-
15
- # shared:
16
- # api_key: a1B2c3D4e5F6
17
-
18
- # Environmental secrets are only available for that specific environment.
19
-
20
- development:
21
- secret_key_base: 8675d963d3be368312020c957a4967d38f8b94e9100226731141c00a675d7cd991a7c29a4d01c35513edf50893e169df8d70cd6f216f701470c610a04b9e9828
22
- ONELOGIN_CLIENT_ID:
23
- ONELOGIN_CLIENT_SECRET:
24
- ONELOGIN_REGION: us
25
- ONELOGIN_SUBDOMAIN:
26
- CUSTOM_DOMAIN:
27
- COOKIE_VIA_POST_FORM:
28
-
29
- test:
30
- secret_key_base: 4560f08eba120b9601635410e1ceb958d9e119733b1ed614dee82dfb8cd6d121ed756463ae53dd9876bea1995505f85f8c86cc6848397fd2b3f63ae4f8980d30
31
-
32
- # Do not keep production secrets in the unencrypted secrets file.
33
- # Instead, either read values from the environment.
34
- # Or, use `bin/rails secrets:setup` to configure encrypted secrets
35
- # and move the `production:` environment over there.
36
-
37
- production:
38
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -1,6 +0,0 @@
1
- %w(
2
- .ruby-version
3
- .rbenv-vars
4
- tmp/restart.txt
5
- tmp/caching-dev.txt
6
- ).each { |path| Spring.watch(path) }
@@ -1,5 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require_relative 'config/environment'
4
-
5
- run Rails.application
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
- # Character.create(name: 'Luke', movie: movies.first)
File without changes
File without changes
@@ -1,5 +0,0 @@
1
- {
2
- "name": "onelogin-oidc-rails",
3
- "private": true,
4
- "dependencies": {}
5
- }
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- .rails-default-error-page {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- .rails-default-error-page div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- .rails-default-error-page div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- .rails-default-error-page h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- .rails-default-error-page div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body class="rails-default-error-page">
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
File without changes
@@ -1 +0,0 @@
1
- # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
@@ -1,5 +0,0 @@
1
- require "test_helper"
2
-
3
- class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4
- driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- class DashboardControllerTest < ActionDispatch::IntegrationTest
4
- test "should get index" do
5
- get dashboard_index_url
6
- assert_response :success
7
- end
8
-
9
- end
@@ -1,9 +0,0 @@
1
- require 'test_helper'
2
-
3
- class HomeControllerTest < ActionDispatch::IntegrationTest
4
- test "should get index" do
5
- get home_index_url
6
- assert_response :success
7
- end
8
-
9
- end
@@ -1,7 +0,0 @@
1
- require 'test_helper'
2
-
3
- class SessionsControllerTest < ActionDispatch::IntegrationTest
4
- # test "the truth" do
5
- # assert true
6
- # end
7
- end
@@ -1,48 +0,0 @@
1
- require 'test_helper'
2
-
3
- class UsersControllerTest < ActionDispatch::IntegrationTest
4
- setup do
5
- @user = users(:one)
6
- end
7
-
8
- test "should get index" do
9
- get users_url
10
- assert_response :success
11
- end
12
-
13
- test "should get new" do
14
- get new_user_url
15
- assert_response :success
16
- end
17
-
18
- test "should create user" do
19
- assert_difference('User.count') do
20
- post users_url, params: { user: { } }
21
- end
22
-
23
- assert_redirected_to user_url(User.last)
24
- end
25
-
26
- test "should show user" do
27
- get user_url(@user)
28
- assert_response :success
29
- end
30
-
31
- test "should get edit" do
32
- get edit_user_url(@user)
33
- assert_response :success
34
- end
35
-
36
- test "should update user" do
37
- patch user_url(@user), params: { user: { } }
38
- assert_redirected_to user_url(@user)
39
- end
40
-
41
- test "should destroy user" do
42
- assert_difference('User.count', -1) do
43
- delete user_url(@user)
44
- end
45
-
46
- assert_redirected_to users_url
47
- end
48
- end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,9 +0,0 @@
1
- require File.expand_path('../../config/environment', __FILE__)
2
- require 'rails/test_help'
3
-
4
- class ActiveSupport::TestCase
5
- # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order.
6
- fixtures :all
7
-
8
- # Add more helper methods to be used by all tests here...
9
- end
File without changes