Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
go-sso
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
id
go-sso
Commits
10aba630
Commit
10aba630
authored
5 years ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Add a grace time to the keystore TTL
Just to cover edge cases when sessions are about to expire.
parent
c31919d0
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/http.go
+3
-1
3 additions, 1 deletion
server/http.go
with
3 additions
and
1 deletion
server/http.go
+
3
−
1
View file @
10aba630
...
...
@@ -203,7 +203,9 @@ func (h *Server) maybeUnlockKeystore(ctx context.Context, username, password str
}
shard
=
userinfo
.
Shard
}
return
true
,
h
.
keystore
.
Open
(
ctx
,
shard
,
username
,
password
,
h
.
authSessionLifetime
)
// Add a 'grace time' of 30 minutes to the key ttl.
ttl
:=
h
.
authSessionLifetime
+
1800
return
true
,
h
.
keystore
.
Open
(
ctx
,
shard
,
username
,
password
,
ttl
)
}
// Callback called by the login handler whenever a user successfully
...
...
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