6

How to log out BTP user logged in SAP Build Apps?

 1 year ago
source link: https://answers.sap.com/questions/13886235/how-to-log-out-btp-user-logged-in-sap-build-apps.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

How to log out BTP user logged in SAP Build Apps?Skip to Content

SAP Community Log-in Update
In a few months, SAP Community will switch to SAP Universal ID as the only option to login. Create your SAP Universal ID now! If you have multiple S- or P- accounts, use the Consolidation Tool to merge your content.
Get Started with SAP Universal ID
2 Answers
Sort by:
May 16, 2023 at 01:02 PM

I used the Open URL flow function and tried this formula, that seemed to work in preview mode (I did not test in a deployed app and I could not get the user back to the IAS login page):

"https://" + SPLIT(REPLACE_ALL(systemVars.initialUrl, "https://", ""),"/")[0] + "/logout"

Of course, I would prefer a dedicated flow function to do this and perhaps I missed this.

1 comment
May 16, 2023 at 03:02 PM

Hi Daniel,

I appreciate your response. I followed your solution, and it worked in preview mode. However, when I deployed the application, I encountered an issue. I am unable to return to the IAS login page.

Thank you.

May 18, 2023 at 02:04 PM

I think the URL to use, and which (almost) works for me is

https://<your custom IDP>.accounts.ondemand.com/saml2/idp/slo

This does in fact log you out of the IDP and require relogin if you go to the accounts page of the IDP. But the SAP Build Apps app still works -- there seems to be some caching that does not clear because if I clear the cache the app then requires login.

1 comment
22 minutes ago

You're right. I tried the solution you suggested, and it did log me out of my Identity Provider (IDP). However, the SAP Build Apps app still worked without . I think there might be a way to solve this using the refresh token. I noticed that after leaving the app open for an hour, it automatically refreshed itself and logged me out. But I'm not sure how to make this refresh token thing work :).


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK