Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
strudelv2_spa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
hpc-team
strudelv2_spa
Commits
e2bdb74a
Commit
e2bdb74a
authored
4 years ago
by
Chris Hines
Browse files
Options
Downloads
Patches
Plain Diff
extend lifefime of certs
parent
201d05e0
No related branches found
No related tags found
4 merge requests
!106
if stat fails, display the error instead of immediately refreshing...
,
!99
Dev
,
!73
Test
,
!72
Dev
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/accountinfo/accountinfo.component.html
+1
-1
1 addition, 1 deletion
src/app/accountinfo/accountinfo.component.html
src/app/keygen/keygen.component.ts
+2
-1
2 additions, 1 deletion
src/app/keygen/keygen.component.ts
with
3 additions
and
2 deletions
src/app/accountinfo/accountinfo.component.html
+
1
−
1
View file @
e2bdb74a
<div
fxLayout=
"column"
fxLayoutAlign=
"start none"
style=
"width: 100%"
class=
"strudel-accountinfo-typography"
>
<div
*ngIf=
"nowSeconds(identity$ | async) ; let time"
>
Login certificates expire in {{ time }}
Login certificates expire in {{ time }}
(or when you 5 minutes after you close this tab, which ever comes first)
</div>
<div
*ngIf=
"identity$.value !== null && identity$.value !== undefined"
>
<!--<div *ngIf="identity$.value.systemalerts.value !== null">-->
...
...
This diff is collapsed.
Click to expand it.
src/app/keygen/keygen.component.ts
+
2
−
1
View file @
e2bdb74a
...
...
@@ -116,7 +116,8 @@ export class KeygenComponent implements OnInit, OnDestroy {
let
headers
=
new
HttpHeaders
({
'
Authorization
'
:
'
Bearer
'
+
token
.
token
});
let
options
=
{
headers
:
headers
,
withCredentials
:
false
};
var
now
=
new
Date
()
var
end
=
new
Date
(
now
.
getTime
()
+
24
*
60
*
60
*
1000
);
//request a certificate valid for 24 hours
var
end
=
new
Date
(
now
.
getTime
()
+
28
*
24
*
60
*
60
*
1000
);
//request a certificate valid for 28 days
//its expected that the user will terminate the session by closing their browser/sleeping their laptop before this
let
data
=
{
'
public_key
'
:
key
.
public
,
'
end
'
:
end
.
toISOString
()};
return
this
.
http
.
post
<
any
>
(
token
.
sshauthzservice
.
sign
,
data
,
options
).
pipe
(
tap
((
v
)
=>
console
.
log
(
'
in getCert
'
,
v
)),
...
...
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