Skip to content
Snippets Groups Projects
Commit de8e4a42 authored by Chris Hines's avatar Chris Hines
Browse files

passing the ssh keys independently of app parameters

parent 4dc60549
No related branches found
No related tags found
2 merge requests!21New css dev,!7Dev
......@@ -21,6 +21,8 @@ export class Identity {
id.site.name = this.site.name;
id.site.cafingerprint = this.site.cafingerprint;
id.site.dtn = this.site.dtn;
id.site.lscmd = this.site.lscmd;
is.site.dtnport = this.site.dtnport;
return id;
}
displayName(): string {
......
......@@ -257,8 +257,13 @@ public setStatusMsg(statusMsg: BehaviorSubject<any>) {
this.busy.next(true);
let paramstr = this.buildParams(app,identity,batchinterface);
// let body = this.buildBody(app,appparams)
let keys = this.authorisationService.getKeys();
let body = {'app': app, 'appparams': appparams, 'keys': keys}
let keys = JSON.stringify(this.authorisationService.getKeys());
let loggedin = JSON.stringify(this.authorisationService.loggedInAuthZ.value);
let ids = [];
for (let id of this.computesitesService.ftidentities.value) {
ids.push(id.copy_skip_catalog())
}
let body = {'app': app, 'appparams': appparams, 'keys': keys, 'ids': JSON.stringify(JSON.stringify(ids))}
this.http.post<any>(this.Base+'/submit'+'?'+paramstr, body, options)
.subscribe(resp => {
this.busy.next(false);
......
......@@ -24,6 +24,14 @@
"localbind": true,
"applist": null
},
{ "url": null,
"name": "Transfer files v2",
"startscript": "#!/bin/bash\n echo '{keys}' > keys.json ; echo {ids} > ids.json\n",
"paramscmd": null,
"client": {"cmd": null, "redir": null },
"localbind": true,
"applist": null
},
{
"url": null,
"name": "CryoSPARC",
......
......@@ -24,6 +24,14 @@
"localbind": true,
"applist": null
},
{ "url": null,
"name": "Transfer files v2",
"startscript": "#!/bin/bash\n echo '{keys}' > sshkeys.json\n",
"paramscmd": null,
"client": {"cmd": null, "redir": null },
"localbind": true,
"applist": null
},
{
"url": null,
"name": "CryoSPARC",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment