Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cffb99a8
Commit
cffb99a8
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix leaky constant in jwt spec
parent
d194f3dc
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
.rubocop.yml
.rubocop.yml
+0
-1
changelogs/unreleased/leaky-constant-fix-25.yml
changelogs/unreleased/leaky-constant-fix-25.yml
+5
-0
spec/lib/omni_auth/strategies/jwt_spec.rb
spec/lib/omni_auth/strategies/jwt_spec.rb
+2
-2
No files found.
.rubocop.yml
View file @
cffb99a8
...
@@ -372,7 +372,6 @@ RSpec/LeakyConstantDeclaration:
...
@@ -372,7 +372,6 @@ RSpec/LeakyConstantDeclaration:
-
'
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb'
-
'
spec/lib/gitlab/sidekiq_middleware/server_metrics_spec.rb'
-
'
spec/lib/gitlab/view/presenter/factory_spec.rb'
-
'
spec/lib/gitlab/view/presenter/factory_spec.rb'
-
'
spec/lib/marginalia_spec.rb'
-
'
spec/lib/marginalia_spec.rb'
-
'
spec/lib/omni_auth/strategies/jwt_spec.rb'
-
'
spec/lib/system_check/simple_executor_spec.rb'
-
'
spec/lib/system_check/simple_executor_spec.rb'
-
'
spec/lib/system_check_spec.rb'
-
'
spec/lib/system_check_spec.rb'
-
'
spec/mailers/notify_spec.rb'
-
'
spec/mailers/notify_spec.rb'
...
...
changelogs/unreleased/leaky-constant-fix-25.yml
0 → 100644
View file @
cffb99a8
---
title
:
Fix leaky constant issue in jwt spec
merge_request
:
32093
author
:
Rajendra Kadam
type
:
fixed
spec/lib/omni_auth/strategies/jwt_spec.rb
View file @
cffb99a8
...
@@ -35,7 +35,7 @@ describe OmniAuth::Strategies::Jwt do
...
@@ -35,7 +35,7 @@ describe OmniAuth::Strategies::Jwt do
end
end
end
end
ECDSA_NAMED_CURVES
=
{
ecdsa_named_curves
=
{
'ES256'
=>
'prime256v1'
,
'ES256'
=>
'prime256v1'
,
'ES384'
=>
'secp384r1'
,
'ES384'
=>
'secp384r1'
,
'ES512'
=>
'secp521r1'
'ES512'
=>
'secp521r1'
...
@@ -54,7 +54,7 @@ describe OmniAuth::Strategies::Jwt do
...
@@ -54,7 +54,7 @@ describe OmniAuth::Strategies::Jwt do
private_key_class
.
generate
(
2048
)
private_key_class
.
generate
(
2048
)
.
to_pem
.
to_pem
elsif
private_key_class
==
OpenSSL
::
PKey
::
EC
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!
}
.
tap
{
|
key
|
key
.
generate_key!
}
.
to_pem
.
to_pem
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment