Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
m-team
oidc
mytoken
server
Commits
808674de
Verified
Commit
808674de
authored
2 years ago
by
Gabriel Zachmann
Browse files
Options
Downloads
Patches
Plain Diff
fix cleanup of non-expiring mytokens
parent
5b94f52d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
shared/utils/unixtime/unixtime.go
+3
-0
3 additions, 0 deletions
shared/utils/unixtime/unixtime.go
with
4 additions
and
0 deletions
CHANGELOG.md
+
1
−
0
View file @
808674de
...
...
@@ -36,6 +36,7 @@
-
Fixed a bug in the mytoken webinterface where token introspection did not work on the settings page
-
Fixed a bug in the mytoken webinterface restriction editor, where audiences would always be set to zero when switching
from the JSON editor to the GUI editor
-
Fixed a bug where non-expiring mytokens would be revoked when database cleanup was enabled.
### Dependencies
...
...
This diff is collapsed.
Click to expand it.
shared/utils/unixtime/unixtime.go
+
3
−
0
View file @
808674de
...
...
@@ -15,6 +15,9 @@ type UnixTime int64
// Time returns the UnixTime as time.Time
func
(
t
UnixTime
)
Time
()
time
.
Time
{
if
t
==
0
{
return
time
.
Time
{}
}
return
time
.
Unix
(
int64
(
t
),
0
)
}
...
...
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