From 904552c5e9bc395260319fe50cc0760043f98ba5 Mon Sep 17 00:00:00 2001 From: Aijana Schumann Date: Fri, 9 Oct 2020 09:17:40 +0200 Subject: Fix faulty login Fix faulty login Issue-ID: CCSDK-2896 Signed-off-by: Aijana Schumann Change-Id: I9d5e3450138971986ac39e634ea41620941e1f50 --- sdnr/wt/odlux/framework/src/services/applicationApi.ts | 1 + sdnr/wt/odlux/framework/src/services/authenticationService.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sdnr/wt/odlux/framework') diff --git a/sdnr/wt/odlux/framework/src/services/applicationApi.ts b/sdnr/wt/odlux/framework/src/services/applicationApi.ts index 77287f497..ff9ef0663 100644 --- a/sdnr/wt/odlux/framework/src/services/applicationApi.ts +++ b/sdnr/wt/odlux/framework/src/services/applicationApi.ts @@ -30,6 +30,7 @@ export const onLogin = () => { } export const onLogout = () => { + document.cookie = "JSESSIONID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"; logoutEvent.invoke(); } diff --git a/sdnr/wt/odlux/framework/src/services/authenticationService.ts b/sdnr/wt/odlux/framework/src/services/authenticationService.ts index cd8a93a53..9b006fc16 100644 --- a/sdnr/wt/odlux/framework/src/services/authenticationService.ts +++ b/sdnr/wt/odlux/framework/src/services/authenticationService.ts @@ -49,7 +49,7 @@ class AuthenticationService { } public async authenticateUserBasicAuth(email: string, password: string, scope: string): Promise { - const result = await requestRest(`restconf/modules`, { + const result = await requestRest(`rests/data/network-topology:network-topology/topology=topology-netconf?fields=node(node-id)`, { method: "GET", headers: { 'Authorization': "Basic " + btoa(email + ":" + password) -- cgit 1.2.3-korg