Commit 543f05ca authored by Stan Hu's avatar Stan Hu

Fix broken static-analysis on master

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/32436 introduced
the atlassian-jwt gem as part of the jira-ruby dependency update. To get
around this, we remove the constants as they have already been defined
by the gem.
parent 09626a62
......@@ -8,9 +8,6 @@ require 'digest'
module Atlassian
module Jwt
class << self
CANONICAL_QUERY_SEPARATOR = '&'
ESCAPED_CANONICAL_QUERY_SEPARATOR = '%26'
def decode(token, secret, validate = true, options = {})
options = { algorithm: 'HS256' }.merge(options)
::JWT.decode(token, secret, validate, options)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment