gitlab-org--gitlab-foss/spec/lib/json_web_token
Stan Hu 34f51dee0d Set the JWT algorithm to RS256 in decode specs
By default, the JWT decode only allows HS256 mode (HMAC using SHA-256
hash algorithm). The specs using RSA tokens failed per
https://github.com/jwt/ruby-jwt#algorithms-and-usage:

It is strongly recommended that you hard code the algorithm, as you may
leave yourself vulnerable by dynamically picking the algorithm.
2018-12-29 06:20:04 -08:00
..
hmac_token_spec.rb Relocate JSONWebToken::HMACToken from EE 2018-11-13 08:36:57 +11:00
rsa_token_spec.rb Set the JWT algorithm to RS256 in decode specs 2018-12-29 06:20:04 -08:00
token_spec.rb