diff options
author | Patrick Brady <patrick.brady@att.com> | 2020-03-26 16:14:17 -0700 |
---|---|---|
committer | Patrick Brady <patrick.brady@att.com> | 2020-03-26 16:14:53 -0700 |
commit | aa60945d2903ff60c4cdeebae76fbf569c91e444 (patch) | |
tree | 3569bf253b35703194e97ebb888caf152d3e39e0 /src/app/admin/admin.component.ts | |
parent | 0141df20b1f533cd2acabdf7ea986aebab8d6868 (diff) |
Revert "Authentication support for cdt"
There appear to be problems with some fields saving in cdt
caused by this change.
This reverts commit 0141df20b1f533cd2acabdf7ea986aebab8d6868.
Change-Id: Iee40058de9870afdac608db7851fcfc206102822
Signed-off-by: Patrick Brady <patrick.brady@att.com>
Issue-ID: APPC-1854
Diffstat (limited to 'src/app/admin/admin.component.ts')
-rw-r--r-- | src/app/admin/admin.component.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/app/admin/admin.component.ts b/src/app/admin/admin.component.ts index 4bde5b5..74fe86a 100644 --- a/src/app/admin/admin.component.ts +++ b/src/app/admin/admin.component.ts @@ -1,7 +1,7 @@ /* ============LICENSE_START========================================== =================================================================== -Copyright (C) 2018-2020 AT&T Intellectual Property. All rights reserved. +Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. =================================================================== Unless otherwise specified, all software contained herein is licensed @@ -70,8 +70,8 @@ export class AdminComponent implements OnInit { } ngOnInit() { - const apiToken = sessionStorage['apiToken']; - this.currentUser = sessionStorage['userId']; + const apiToken = localStorage['apiToken']; + this.currentUser = localStorage['userId']; if(this.paramShareService.ansibleServerData) { this.ansibleServerData = this.paramShareService.ansibleServerData; @@ -92,14 +92,14 @@ export class AdminComponent implements OnInit { const input = { "input":{ "design-request":{ - "request-id":sessionStorage['apiToken'], + "request-id":localStorage['apiToken'], "action":"getArtifact", "payload":"{\"vnf-type\":\"NULL\",\"vnfc-type\":\"NULL\",\"protocol\":\"\",\"incart\":\"N\",\"action\":\"NULL\",\"artifact-name\":\""+this.fileName+"\",\"artifact-type\":\"APPC-CONFIG\",\"userID\":\"admin\"}" } } }; //const x = JSON.parse(data.input['design-request']['payload']); - //x.userID = sessionStorage['userId']; + //x.userID = localStorage['userId']; //data.input['design-request']['payload'] = JSON.stringify(x); console.log("input to payload====", JSON.stringify(input)); @@ -215,7 +215,7 @@ export class AdminComponent implements OnInit { let input = { "input": { "design-request": { - "request-id": sessionStorage['apiToken'], + "request-id": localStorage['apiToken'], "action": "uploadAdminArtifact", "payload": "{\"userID\": \"admin\",\"vnf-type\" : \"NULL \",\"action\" : \"NULL\",\"artifact-name\" : \""+this.fileName+"\",\"artifact-type\" : \"APPC-CONFIG\",\"artifact-version\" : \"0.1\",\"artifact-contents\":\""+artifactContent+"\"}", } @@ -244,4 +244,4 @@ export class AdminComponent implements OnInit { } } -} +}
\ No newline at end of file |