Fix faulty login 11/113711/1
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>
Fri, 9 Oct 2020 07:17:40 +0000 (09:17 +0200)
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>
Fri, 9 Oct 2020 07:17:40 +0000 (09:17 +0200)
Fix faulty login

Issue-ID: CCSDK-2896
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: I9d5e3450138971986ac39e634ea41620941e1f50

sdnr/wt/odlux/framework/src/services/applicationApi.ts
sdnr/wt/odlux/framework/src/services/authenticationService.ts

index 77287f4..ff9ef06 100644 (file)
@@ -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();
 }
 
index cd8a93a..9b006fc 100644 (file)
@@ -49,7 +49,7 @@ class AuthenticationService {
   }
 
    public async authenticateUserBasicAuth(email: string, password: string, scope: string): Promise<AuthToken | null> {
-    const result = await requestRest<string>(`restconf/modules`, {
+    const result = await requestRest<string>(`rests/data/network-topology:network-topology/topology=topology-netconf?fields=node(node-id)`, {
       method: "GET",
       headers: {
         'Authorization':  "Basic " + btoa(email + ":" + password)