soar_authentication_token 6.0.4 → 6.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1aac3acb8ce7f8984a3eebfc2442474ca332c74
|
4
|
+
data.tar.gz: a6f81a998b9afa523cd8c5e771d4ed89db968724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6922a3f9eead7d9dd9a310db3a41faeb2d365b7e02ee94707bb22b4a15116ae2de59b93b64c6cb4cfd129ae0c08b4eaad294bf13f6562bd8f5d44910e53fc6ca
|
7
|
+
data.tar.gz: d7a5b39fa6b1878d1191ba22f0e1584267479bc2f7118974e033609c25255dc65eb0692a6af180dad06b6c7e31a06b1fa3c4bd90c7b43ad8c19b52744d25de80
|
@@ -53,12 +53,12 @@ module SoarAuthenticationToken
|
|
53
53
|
def rejection
|
54
54
|
[ 401,
|
55
55
|
{ 'Content-Type' => 'application/json'},
|
56
|
-
{
|
56
|
+
[ {
|
57
57
|
'status' => 'fail',
|
58
58
|
'data' => {
|
59
59
|
'notifications' => ['Not authenticated']
|
60
60
|
}
|
61
|
-
}.to_json
|
61
|
+
}.to_json ]
|
62
62
|
]
|
63
63
|
end
|
64
64
|
end
|
@@ -39,10 +39,10 @@ describe SoarAuthenticationToken::RackMiddleware do
|
|
39
39
|
before :all do
|
40
40
|
@local_valid_generator, @valid_private_key, @valid_public_key = create_valid_token_generator
|
41
41
|
@local_invalid_generator, @imvalid_private_key, @invalid_public_key = create_invalid_token_generator
|
42
|
-
@failure_response_json = { 'status' => 'fail', 'data' => {
|
42
|
+
@failure_response_json = [ { 'status' => 'fail', 'data' => {
|
43
43
|
'notifications' => ['Not authenticated']
|
44
44
|
}
|
45
|
-
}.to_json
|
45
|
+
}.to_json ]
|
46
46
|
end
|
47
47
|
|
48
48
|
before :each do
|