rspectacular 0.66.0 → 0.67.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspectacular/plugins/authentication.rb +6 -5
- data/lib/rspectacular/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed024ef276d7d04cc6356cfd1c4840058947c3cc
|
4
|
+
data.tar.gz: c2f79ed0238d257d7e30a9f79f92e5675b669d77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 515e7927df3cbd100356bfb8f64f26a1b5c59f1d7bcf82994675db6331fec766b106366effdb80fa7673112355821de9c26721bbae422643d3347be4296af05e
|
7
|
+
data.tar.gz: e736e2642f56a331fdd2588126f165efc0ae2204708ff3de4087173a78872480ffd33d7a865fcfd2248ff60bcab18583d077d87afcb4da74f65cf20d230b4fb7
|
@@ -57,11 +57,11 @@ RSpec.configure do |config|
|
|
57
57
|
authentication_result = authentication_successful ? instance : nil
|
58
58
|
|
59
59
|
if authentication_type == :standard
|
60
|
-
authentication_method
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
60
|
+
authentication_method = if authentication_controller_instance.respond_to?(inferred_auth_method, true)
|
61
|
+
inferred_auth_method
|
62
|
+
elsif authentication_controller_instance.respond_to?(:authenticate, true)
|
63
|
+
:authenticate
|
64
|
+
end
|
65
65
|
|
66
66
|
authentication_controller_class.__send__(:define_method, authentication_method) { authentication_successful }
|
67
67
|
authentication_controller_class.__send__(:define_method, current_class_method) { authentication_result }
|
@@ -78,6 +78,7 @@ RSpec.configure do |config|
|
|
78
78
|
[
|
79
79
|
{
|
80
80
|
'iss' => 'rspectacular',
|
81
|
+
'own' => instance['account_id'] || instance['id'],
|
81
82
|
'sub' => example.file_path,
|
82
83
|
'aud' => 'rspec',
|
83
84
|
'exp' => 1.day.from_now.utc.to_i,
|
data/lib/rspectacular/version.rb
CHANGED