Skip to content

Logoff function on local environment #1021

@jGluchConsalit

Description

@jGluchConsalit

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    author actionWaiting for feedback by issue authorhelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions