Add a Logout Function to the Default Log Out Menu Item in Oracle Integration Cloud Visual Builder

Introduction

Each Visual Builder (VBCS) web application in Oracle OICS (Oracle Integration Cloud Service) comes with a default shell. The default shell displays a simple title, username (as a menu button) and a Log Out menu item. See picture below.

 

However, if you click the Log Out button, nothing happens. This is because no event handler is configured for the Log Out menu item. Adding an event handler to the Log Out menu item to perform logout function is quite easy.

 

Add Logout Function

Follow the image below to open default shell page (1), open page structure (2), expand the page structure and click on menu component (3), select events on the right (4) and expand “+New Event” menu button and select “ojAction” (5).

Now you should see an empty action chain (event handler for the ojAction event) is displayed. Follow the image below to drag an “if”action to the chain (1), add a Logout action to the “true” branch (2),  and finally change the condition property as shown in the image (3).

Save and test it. It should log you out of all active sessions (in the same browser) associated with the same identity domain.

 

Add Your Comment