Fix faulty login
Issue-ID: CCSDK-2896
Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com>
Change-Id: I9d5e3450138971986ac39e634ea41620941e1f50
}
export const onLogout = () => {
+ document.cookie = "JSESSIONID=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
logoutEvent.invoke();
}
}
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)