Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nfc
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
CodeLinaro
hoperuntest
aa
bb
cc
dd
nfc
Commits
a25431bc
Commit
a25431bc
authored
4 years ago
by
NGPixel
Browse files
Options
Downloads
Patches
Plain Diff
fix: token revocation incorrect TTL
parent
a690e559
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/core/auth.js
+1
-2
1 addition, 2 deletions
server/core/auth.js
with
1 addition
and
2 deletions
server/core/auth.js
+
1
−
2
View file @
a25431bc
...
...
@@ -438,7 +438,6 @@ module.exports = {
* Add user / group ID to JWT revokation list, forcing all requests to be validated against the latest permissions
*/
revokeUserTokens
({
id
,
kind
=
'
u
'
})
{
console
.
info
(
Math
.
ceil
(
ms
(
WIKI
.
config
.
auth
.
tokenRenewal
)
/
1000
))
WIKI
.
auth
.
revokationList
.
set
(
`
${
kind
}${
_
.
toString
(
id
)}
`
,
true
,
Math
.
ceil
(
ms
(
WIKI
.
config
.
auth
.
tokenRenewal
)
/
1000
))
WIKI
.
auth
.
revokationList
.
set
(
`
${
kind
}${
_
.
toString
(
id
)}
`
,
true
,
Math
.
ceil
(
ms
(
WIKI
.
config
.
auth
.
tokenExpiration
)
/
1000
))
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment