cul_omniauth 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cul/omniauth/version.rb +1 -1
- data/lib/cul/omniauth.rb +8 -0
- data/lib/cul_omniauth.rb +6 -14
- data/lib/omni_auth/strategies/{saml.rb → s_a_m_l.rb} +2 -2
- data/lib/omni_auth/strategies/{wind.rb → w_i_n_d.rb} +2 -2
- data/spec/dummy/Rakefile +1 -1
- data/spec/dummy/app/assets/stylesheets/application.css +1 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/jobs/application_job.rb +7 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +10 -9
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +3 -3
- data/spec/dummy/bin/rake +2 -2
- data/spec/dummy/bin/setup +33 -0
- data/spec/dummy/config/application.rb +12 -13
- data/spec/dummy/config/boot.rb +3 -3
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +3 -3
- data/spec/dummy/config/environment.rb +1 -1
- data/spec/dummy/config/environments/development.rb +46 -15
- data/spec/dummy/config/environments/production.rb +39 -30
- data/spec/dummy/config/environments/test.rb +34 -13
- data/spec/dummy/config/initializers/content_security_policy.rb +25 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +6 -2
- data/spec/dummy/config/initializers/inflections.rb +4 -4
- data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
- data/spec/dummy/config/locales/en.yml +13 -3
- data/spec/dummy/config/puma.rb +43 -0
- data/spec/dummy/config/routes.rb +3 -1
- data/spec/dummy/config/storage.yml +34 -0
- data/spec/dummy/config.ru +3 -1
- data/spec/dummy/log/test.log +262 -0
- data/spec/dummy/public/404.html +6 -6
- data/spec/dummy/public/422.html +6 -6
- data/spec/dummy/public/500.html +6 -6
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/lib/cul/omniauth/callbacks_spec.rb +1 -6
- data/spec/lib/cul/omniauth/users_spec.rb +3 -3
- metadata +61 -18
- data/spec/dummy/config/initializers/assets.rb +0 -8
- /data/lib/omni_auth/strategies/{saml → s_a_m_l}/logout_request.rb +0 -0
- /data/lib/omni_auth/strategies/{saml → s_a_m_l}/service_ticket_validator.rb +0 -0
- /data/lib/omni_auth/strategies/{wind → w_i_n_d}/logout_request.rb +0 -0
- /data/lib/omni_auth/strategies/{wind → w_i_n_d}/service_ticket_validator.rb +0 -0
@@ -4,13 +4,13 @@
|
|
4
4
|
# are locale specific, and you may define rules for as many different
|
5
5
|
# locales as you wish. All of these examples are active by default:
|
6
6
|
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
-
# inflect.plural /^(ox)$/i,
|
8
|
-
# inflect.singular /^(ox)en/i,
|
9
|
-
# inflect.irregular
|
7
|
+
# inflect.plural /^(ox)$/i, "\\1en"
|
8
|
+
# inflect.singular /^(ox)en/i, "\\1"
|
9
|
+
# inflect.irregular "person", "people"
|
10
10
|
# inflect.uncountable %w( fish sheep )
|
11
11
|
# end
|
12
12
|
|
13
13
|
# These inflection rules are supported but not enabled by default:
|
14
14
|
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
-
# inflect.acronym
|
15
|
+
# inflect.acronym "RESTful"
|
16
16
|
# end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# Define an application-wide HTTP permissions policy. For further
|
2
|
+
# information see https://developers.google.com/web/updates/2018/06/feature-policy
|
3
|
+
#
|
4
|
+
# Rails.application.config.permissions_policy do |f|
|
5
|
+
# f.camera :none
|
6
|
+
# f.gyroscope :none
|
7
|
+
# f.microphone :none
|
8
|
+
# f.usb :none
|
9
|
+
# f.fullscreen :self
|
10
|
+
# f.payment :self, "https://secure.example.com"
|
11
|
+
# end
|
@@ -4,11 +4,11 @@
|
|
4
4
|
#
|
5
5
|
# To use the locales, use `I18n.t`:
|
6
6
|
#
|
7
|
-
# I18n.t
|
7
|
+
# I18n.t "hello"
|
8
8
|
#
|
9
9
|
# In views, this is aliased to just `t`:
|
10
10
|
#
|
11
|
-
# <%= t(
|
11
|
+
# <%= t("hello") %>
|
12
12
|
#
|
13
13
|
# To use a different locale, set it with `I18n.locale`:
|
14
14
|
#
|
@@ -16,8 +16,18 @@
|
|
16
16
|
#
|
17
17
|
# This would use the information in config/locales/es.yml.
|
18
18
|
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# "true": "foo"
|
28
|
+
#
|
19
29
|
# To learn more, please read the Rails Internationalization guide
|
20
|
-
# available at
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
21
31
|
|
22
32
|
en:
|
23
33
|
hello: "Hello world"
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
2
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
3
|
+
# Any libraries that use thread pools should be configured to match
|
4
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
5
|
+
# and maximum; this matches the default thread size of Active Record.
|
6
|
+
#
|
7
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
+
threads min_threads_count, max_threads_count
|
10
|
+
|
11
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
12
|
+
# terminating a worker in development environments.
|
13
|
+
#
|
14
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
15
|
+
|
16
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
17
|
+
#
|
18
|
+
port ENV.fetch("PORT") { 3000 }
|
19
|
+
|
20
|
+
# Specifies the `environment` that Puma will run in.
|
21
|
+
#
|
22
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
23
|
+
|
24
|
+
# Specifies the `pidfile` that Puma will use.
|
25
|
+
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }
|
26
|
+
|
27
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
28
|
+
# Workers are forked web server processes. If using threads and workers together
|
29
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
30
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
31
|
+
# processes).
|
32
|
+
#
|
33
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
34
|
+
|
35
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
36
|
+
# This directive tells Puma to first boot the application and load code
|
37
|
+
# before forking the application. This takes advantage of Copy On Write
|
38
|
+
# process behavior so workers use less memory.
|
39
|
+
#
|
40
|
+
# preload_app!
|
41
|
+
|
42
|
+
# Allow puma to be restarted by `bin/rails restart` command.
|
43
|
+
plugin :tmp_restart
|
data/spec/dummy/config/routes.rb
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use bin/rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket-<%= Rails.env %>
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket-<%= Rails.env %>
|
23
|
+
|
24
|
+
# Use bin/rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name-<%= Rails.env %>
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
data/spec/dummy/config.ru
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -1,3 +1,265 @@
|
|
1
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
2
|
+
---------------------------
|
3
|
+
CulOmniauthTest: test_truth
|
4
|
+
---------------------------
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
---------------------------
|
8
|
+
CulOmniauthTest: test_truth
|
9
|
+
---------------------------
|
10
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
---------------------------
|
13
|
+
CulOmniauthTest: test_truth
|
14
|
+
---------------------------
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
17
|
+
------------------------------------------------------------------
|
18
|
+
OmniAuth::Strategies::WIND::ServiceTicketValidatorTest: test_truth
|
19
|
+
------------------------------------------------------------------
|
20
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
22
|
+
---------------------------
|
23
|
+
CulOmniauthTest: test_truth
|
24
|
+
---------------------------
|
25
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
----------------------------------------------------------------------------
|
28
|
+
OmniAuth::Strategies::WIND::ServiceTicketValidatorTest: test_success_parsing
|
29
|
+
----------------------------------------------------------------------------
|
30
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
32
|
+
------------------------------------------------------------------
|
33
|
+
OmniAuth::Strategies::WIND::ServiceTicketValidatorTest: test_truth
|
34
|
+
------------------------------------------------------------------
|
35
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
36
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
37
|
+
---------------------------
|
38
|
+
CulOmniauthTest: test_truth
|
39
|
+
---------------------------
|
40
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
---------------------------
|
43
|
+
CulOmniauthTest: test_truth
|
44
|
+
---------------------------
|
45
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
|
+
---------------------------
|
48
|
+
CulOmniauthTest: test_truth
|
49
|
+
---------------------------
|
50
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52
|
+
---------------------------
|
53
|
+
CulOmniauthTest: test_truth
|
54
|
+
---------------------------
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
---------------------------
|
58
|
+
CulOmniauthTest: test_truth
|
59
|
+
---------------------------
|
60
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
62
|
+
---------------------------
|
63
|
+
CulOmniauthTest: test_truth
|
64
|
+
---------------------------
|
65
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
67
|
+
---------------------------
|
68
|
+
CulOmniauthTest: test_truth
|
69
|
+
---------------------------
|
70
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
---------------------------
|
73
|
+
CulOmniauthTest: test_truth
|
74
|
+
---------------------------
|
75
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
77
|
+
---------------------------------------------------
|
78
|
+
CulOmniauthTest: test_FailureApp_provider_overrides
|
79
|
+
---------------------------------------------------
|
80
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
81
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
82
|
+
----------------------------
|
83
|
+
CulOmniauthTest: test_module
|
84
|
+
----------------------------
|
85
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
86
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
87
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
88
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
89
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
90
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
91
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
92
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
93
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
94
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
95
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
96
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
97
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
98
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
99
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
100
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
101
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
102
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
103
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
104
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
105
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
106
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
107
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
108
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
109
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
110
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
111
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
112
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
113
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
114
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
115
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
116
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
117
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
118
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
119
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
120
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
121
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
122
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
123
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
124
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
125
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
126
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
127
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
128
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
129
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
130
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
131
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
132
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
133
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
134
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
135
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
136
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
137
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
138
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
139
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
140
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
141
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
142
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
143
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
144
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
145
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
146
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
147
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
148
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
149
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
150
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
151
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
152
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
153
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
154
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
155
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
156
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
157
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
158
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
159
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
160
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
161
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
162
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
163
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
164
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
165
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
166
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
167
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
168
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
169
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
170
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
171
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
172
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
173
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
174
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
175
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
176
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
177
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
178
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
179
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
180
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
181
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
182
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
183
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
184
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
185
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
186
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
187
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
188
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
189
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
190
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
191
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
192
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
193
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
194
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
195
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
196
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
197
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
198
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
199
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
200
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
201
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
202
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
203
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
204
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
205
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
206
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
207
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
208
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
209
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
210
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
211
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
212
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
213
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
214
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
215
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
216
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
217
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
218
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
219
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
220
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
221
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
222
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
223
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
224
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
225
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
226
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
227
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
228
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
229
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
230
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
231
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
232
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
233
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
234
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
235
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
236
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
237
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
238
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
239
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
240
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
241
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
242
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
243
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
244
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
245
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
246
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
247
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
248
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
249
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
250
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
251
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
252
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
253
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
254
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
255
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
256
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
257
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
258
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
259
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
260
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
261
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
262
|
+
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
1
263
|
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
2
264
|
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
3
265
|
no persisted user for id {"uid"=>"foo", "extra"=>{}}
|
data/spec/dummy/public/404.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>The page you were looking for doesn't exist (404)</title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<style>
|
7
|
-
|
7
|
+
.rails-default-error-page {
|
8
8
|
background-color: #EFEFEF;
|
9
9
|
color: #2E2F30;
|
10
10
|
text-align: center;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
margin: 0;
|
13
13
|
}
|
14
14
|
|
15
|
-
div.dialog {
|
15
|
+
.rails-default-error-page div.dialog {
|
16
16
|
width: 95%;
|
17
17
|
max-width: 33em;
|
18
18
|
margin: 4em auto 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
div.dialog > div {
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
22
|
border: 1px solid #CCC;
|
23
23
|
border-right-color: #999;
|
24
24
|
border-left-color: #999;
|
@@ -31,13 +31,13 @@
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
32
|
}
|
33
33
|
|
34
|
-
h1 {
|
34
|
+
.rails-default-error-page h1 {
|
35
35
|
font-size: 100%;
|
36
36
|
color: #730E15;
|
37
37
|
line-height: 1.5em;
|
38
38
|
}
|
39
39
|
|
40
|
-
div.dialog > p {
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
41
|
margin: 0 0 1em;
|
42
42
|
padding: 1em;
|
43
43
|
background-color: #F7F7F7;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</style>
|
55
55
|
</head>
|
56
56
|
|
57
|
-
<body>
|
57
|
+
<body class="rails-default-error-page">
|
58
58
|
<!-- This file lives in public/404.html -->
|
59
59
|
<div class="dialog">
|
60
60
|
<div>
|
data/spec/dummy/public/422.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>The change you wanted was rejected (422)</title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<style>
|
7
|
-
|
7
|
+
.rails-default-error-page {
|
8
8
|
background-color: #EFEFEF;
|
9
9
|
color: #2E2F30;
|
10
10
|
text-align: center;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
margin: 0;
|
13
13
|
}
|
14
14
|
|
15
|
-
div.dialog {
|
15
|
+
.rails-default-error-page div.dialog {
|
16
16
|
width: 95%;
|
17
17
|
max-width: 33em;
|
18
18
|
margin: 4em auto 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
div.dialog > div {
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
22
|
border: 1px solid #CCC;
|
23
23
|
border-right-color: #999;
|
24
24
|
border-left-color: #999;
|
@@ -31,13 +31,13 @@
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
32
|
}
|
33
33
|
|
34
|
-
h1 {
|
34
|
+
.rails-default-error-page h1 {
|
35
35
|
font-size: 100%;
|
36
36
|
color: #730E15;
|
37
37
|
line-height: 1.5em;
|
38
38
|
}
|
39
39
|
|
40
|
-
div.dialog > p {
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
41
|
margin: 0 0 1em;
|
42
42
|
padding: 1em;
|
43
43
|
background-color: #F7F7F7;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</style>
|
55
55
|
</head>
|
56
56
|
|
57
|
-
<body>
|
57
|
+
<body class="rails-default-error-page">
|
58
58
|
<!-- This file lives in public/422.html -->
|
59
59
|
<div class="dialog">
|
60
60
|
<div>
|
data/spec/dummy/public/500.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
<title>We're sorry, but something went wrong (500)</title>
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
6
|
<style>
|
7
|
-
|
7
|
+
.rails-default-error-page {
|
8
8
|
background-color: #EFEFEF;
|
9
9
|
color: #2E2F30;
|
10
10
|
text-align: center;
|
@@ -12,13 +12,13 @@
|
|
12
12
|
margin: 0;
|
13
13
|
}
|
14
14
|
|
15
|
-
div.dialog {
|
15
|
+
.rails-default-error-page div.dialog {
|
16
16
|
width: 95%;
|
17
17
|
max-width: 33em;
|
18
18
|
margin: 4em auto 0;
|
19
19
|
}
|
20
20
|
|
21
|
-
div.dialog > div {
|
21
|
+
.rails-default-error-page div.dialog > div {
|
22
22
|
border: 1px solid #CCC;
|
23
23
|
border-right-color: #999;
|
24
24
|
border-left-color: #999;
|
@@ -31,13 +31,13 @@
|
|
31
31
|
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
32
|
}
|
33
33
|
|
34
|
-
h1 {
|
34
|
+
.rails-default-error-page h1 {
|
35
35
|
font-size: 100%;
|
36
36
|
color: #730E15;
|
37
37
|
line-height: 1.5em;
|
38
38
|
}
|
39
39
|
|
40
|
-
div.dialog > p {
|
40
|
+
.rails-default-error-page div.dialog > p {
|
41
41
|
margin: 0 0 1em;
|
42
42
|
padding: 1em;
|
43
43
|
background-color: #F7F7F7;
|
@@ -54,7 +54,7 @@
|
|
54
54
|
</style>
|
55
55
|
</head>
|
56
56
|
|
57
|
-
<body>
|
57
|
+
<body class="rails-default-error-page">
|
58
58
|
<!-- This file lives in public/500.html -->
|
59
59
|
<div class="dialog">
|
60
60
|
<div>
|
File without changes
|
File without changes
|
@@ -61,12 +61,7 @@ describe Cul::Omniauth::Callbacks do
|
|
61
61
|
end
|
62
62
|
context "and success translation is empty" do
|
63
63
|
before do
|
64
|
-
I18n.
|
65
|
-
I18n.backend.reload!
|
66
|
-
end
|
67
|
-
after do
|
68
|
-
I18n.load_path.shift
|
69
|
-
I18n.backend.reload!
|
64
|
+
expect(I18n).to receive(:t).with("devise.omniauth_callbacks.success", kind: method).and_return("")
|
70
65
|
end
|
71
66
|
it do
|
72
67
|
is_expected.to receive(:sign_in_and_redirect)
|
@@ -21,7 +21,7 @@ describe Cul::Omniauth::Users do
|
|
21
21
|
context "existing user" do
|
22
22
|
let(:users) { [double(User)]}
|
23
23
|
it do
|
24
|
-
is_expected.to receive(:where).with(uid: uid, provider: provider).and_return(users)
|
24
|
+
is_expected.to receive(:where).with({ uid: uid, provider: provider }).and_return(users)
|
25
25
|
is_expected.not_to receive(:"create!")
|
26
26
|
subject.find_for_provider(token, provider)
|
27
27
|
end
|
@@ -29,8 +29,8 @@ describe Cul::Omniauth::Users do
|
|
29
29
|
context "new user" do
|
30
30
|
let(:users) { []}
|
31
31
|
it do
|
32
|
-
is_expected.to receive(:where).with(uid: uid, provider: provider).and_return(users)
|
33
|
-
is_expected.to receive(:"create!").with(uid: uid, provider: provider).and_return(double(User))
|
32
|
+
is_expected.to receive(:where).with({ uid: uid, provider: provider }).and_return(users)
|
33
|
+
is_expected.to receive(:"create!").with({ uid: uid, provider: provider }).and_return(double(User))
|
34
34
|
subject.find_for_provider(token, provider)
|
35
35
|
end
|
36
36
|
end
|