diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 14:34:42 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 14:34:42 +0000 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /spec/lib/omni_auth | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) | |
download | gitlab-ce-9f46488805e86b1bc341ea1620b866016c2ce5ed.tar.gz |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'spec/lib/omni_auth')
-rw-r--r-- | spec/lib/omni_auth/strategies/jwt_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/omni_auth/strategies/jwt_spec.rb b/spec/lib/omni_auth/strategies/jwt_spec.rb index f2b682850e3..302329cf198 100644 --- a/spec/lib/omni_auth/strategies/jwt_spec.rb +++ b/spec/lib/omni_auth/strategies/jwt_spec.rb @@ -35,7 +35,7 @@ describe OmniAuth::Strategies::Jwt do end end - ECDSA_NAMED_CURVES = { + ecdsa_named_curves = { 'ES256' => 'prime256v1', 'ES384' => 'secp384r1', 'ES512' => 'secp521r1' @@ -54,7 +54,7 @@ describe OmniAuth::Strategies::Jwt do private_key_class.generate(2048) .to_pem elsif private_key_class == OpenSSL::PKey::EC - private_key_class.new(ECDSA_NAMED_CURVES[algorithm]) + private_key_class.new(ecdsa_named_curves[algorithm]) .tap { |key| key.generate_key! } .to_pem else |