Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hpc-team
strudelv2_spa
Commits
62b92a8d
Commit
62b92a8d
authored
Jul 25, 2019
by
Chris Hines
Browse files
still fixing redirect
parent
d176913a
Pipeline
#7546
passed with stages
in 3 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/authorisation.service.ts
View file @
62b92a8d
...
...
@@ -54,7 +54,7 @@ export class AuthorisationService {
this
.
getSshAuthzServers
();
this
.
keys
=
[];
this
.
backendSelectionService
.
apiserver
.
pipe
(
filter
((
v
)
=>
v
!==
null
&&
v
!==
undefined
))
.
subscribe
((
value
)
=>
{
this
.
backendURI
=
value
.
tes
;
this
.
updateA
gentContents
(
)
})
.
subscribe
((
value
)
=>
{
this
.
backendURI
=
value
.
tes
;
this
.
a
gentContents
.
next
(
null
)
})
this
.
agentContents
.
subscribe
((
value
)
=>
this
.
updateLoggedAuthZ
());
this
.
sshAuthzServers
.
subscribe
((
value
)
=>
this
.
updateLoggedAuthZ
());
}
...
...
@@ -218,7 +218,6 @@ public getKeys(id?: Identity) {
}
keys
.
push
(
keyCert
);
sessionStorage
.
setItem
(
'
keys
'
,
JSON
.
stringify
(
keys
))
this
.
sshAdd
(
keyCert
);
// this.tesService.keyCert.next(keyCert);
// As soon as the certificate has been generated, we log back out of the signing server
if
(
!
(
sshauthzservice
.
logout
===
null
))
{
...
...
@@ -226,9 +225,8 @@ public getKeys(id?: Identity) {
}
let
path
=
sessionStorage
.
getItem
(
'
path
'
);
//skip1 because loggedInAuthZ is a behaviour subject and we don't want the current value but the value
//after updateAgentcontents has run
this
.
loggedInAuthZ
.
pipe
(
skip
(
1
),
take
(
1
)).
subscribe
(
()
=>
{
this
.
readyToNavigate
.
next
([
true
,
path
])});
this
.
updateAgentContents
(
);
this
.
sshAdd
(
keyCert
);
// only navigate once the agent contents has been refreshed
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment