You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
context'with algorithms not supported by key provided'do
248
+
it'raises JWT::VerificationError'do
249
+
expect{token.verify_signature!(algorithm: %w[RS384RS512],key: jwk)}.toraise_error(JWT::VerificationError,'Provided JWKs do not support one of the specified algorithms: RS384, RS512')
context'with mismatching algorithm provided in sign call'do
44
+
it'signs the token'do
45
+
expect{token.sign!(algorithm: %w[RS384RS512],key: jwk)}.toraise_error(JWT::DecodeError,'Provided JWKs do not support one of the specified algorithms: RS384, RS512')
46
+
end
47
+
end
34
48
end
35
49
36
50
context'when string key is given but not algorithm'do
37
51
it'raises an error'do
38
-
expect{token.sign!(key: 'secret')}.toraise_error(ArgumentError,'Algorithm must be provided')
0 commit comments