Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-26 22:59:56 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-26 22:59:56 +0300
commit34a401c88dd94954363884f1325b92659159bdd7 (patch)
tree4bd9c57a6f7f527895f15d2877816453aa75c82c /lib
parent5b4b2ed55320932ddaecbb7ce7f957235a1c73cf (diff)
Add latest changes from gitlab-org/gitlab@16-2-stable-ee
Diffstat (limited to 'lib')
-rw-r--r--lib/json_web_token/hmac_token.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json_web_token/hmac_token.rb b/lib/json_web_token/hmac_token.rb
index ec0917ab49d..7f69a7550c7 100644
--- a/lib/json_web_token/hmac_token.rb
+++ b/lib/json_web_token/hmac_token.rb
@@ -4,7 +4,7 @@ require 'jwt'
module JSONWebToken
class HMACToken < Token
- IAT_LEEWAY = 60
+ LEEWAY = 60
JWT_ALGORITHM = 'HS256'
def initialize(secret)
@@ -13,7 +13,7 @@ module JSONWebToken
@secret = secret
end
- def self.decode(token, secret, leeway: IAT_LEEWAY, verify_iat: true)
+ def self.decode(token, secret, leeway: LEEWAY, verify_iat: false)
JWT.decode(token, secret, true, leeway: leeway, verify_iat: verify_iat, algorithm: JWT_ALGORITHM)
end