cancel
Showing results for 
Search instead for 
Did you mean: 

Logout-SAP UI5 app - cloud foundry - sample code

08-02-2020 12:19 PM
alagar_pandian Participant
2583 views 2 comments Go to solution
SAP Managed Tags
Subscribe

Hello,

I've used webide to create MTA project with HTML5 repo and added UI5 as a module in it. I would like to know the step by step procedure from here to implement logout functionality with out cache issue. I followed many blogs such as https://blogs.sap.com/2019/08/23/sapui5-sessions-and-logout-fine-grained-control-of-approuter-cachin... for the same but still failing to achieve it.

If anyone could share a sample project with this logout functionality would be of great help to understand the configurations required.

Accepted Solutions (1)

Accepted Solutions (1)

mariusobert
Developer Advocate
Developer Advocate

The default logout functionality of the approuter (and therefore the entire application) can be used with the "logoutEndpoint" configuration: Sample Code

In the application itself, you just need to make a call to this endpoint to trigger the flow.

If you want to have more control over the caching mechanisms, this guide might be able to help you.

raihan_siddiqui
Participant
0 Likes

Hi @marisobert, I tried implementing this but I am getting internal server error when I click on logout.
On checking the error logs of the app, I see the error as:
GET request to /74cf1c07-1827-49d2-9bc9-90ba4d9f6781.capleavemanagementappservice.leavemanagement-1.0.0/my/logout completed with status 500 request method (GET) does not match logout configuration logoutMethod (POST)

I am using managed approuter, SAP Build Work Zone standard edition.

Answers (0)