ui5-ecosystem-showcase
ui5-ecosystem-showcase copied to clipboard
Logoff function on local environment
Hello everyone,
I am struggling with a problem, or I just think it's a problem. Before you answer. Yes I asked the same question on SAP community and I was directed here.
Getting to the point:
I'm creating my first web application in OpenUI5 (the webapp is created with easy ui5 generator and I'm using TypeScript), and have encountered a wall in the form of logging out of the application. Currently, I am automatically logged out when I close the browser or manually clear session cookies in the browser. I have tried to do the same with a function that works and clears the cookies, but when I refresh the page the cookies come back and I am still logged in.
I connect to the local server using ‘ui5-middleware-simpleproxy’. And everything is working locally.
I have also tried the option with localServer:host/sap/public/bc/icf/logoff
After entering the link, I get a lovely logout message, but, when I try to enter the server, I am still logged in.
I would really appreciate your help on how to implement logging out of the application. I must admit that I am running out of ideas. Maybe my backend team should do something about it?
Ps: The login option is working in the element I created, only I am annoyed by the pop-up that prompts me to login. Is there any way to remove it?
When I'm login, I use this path: localServer:host/sap/opu/odata/SAP/SERVICE_NAME
Many thanks for help!