You can configure single logout in WSO2 App Manager to automatically sign out from all logged in apps, when you sign out from one.
Configuring WSO2 App Manager
To configure WSO2 App Manager for single logout, select Enable Single Logout in the Step 2 - Policies section of creating a Web app, and specify the logout URL of your app as shown below.
WSO2 App Manager internally converts the Web app URL to a gateway URL. When persisting the logout URL, the logout acton is appended to the gateway URL by tallying it against the Web app URL. Therefore, you need to enter the complete logout URL (including the Web app URL).
For example, if your Web app URL is http://locahost:8080/MyWebapp
, the enter the logout URL as follows: http://locahost:8080/MyWebapp/?action=logout
.
Configuring the Web app
As already mentioned in the best practices section, when proxying through app manager, the webapps should not contain any hard coded resource paths. Same applies for log out URLs. If the resource path configured for the logout action of your web application is absolute, the app manager gateway would be by passed and the direct URL, would be invoked, if this is the case, the action sequence for logout will not be triggered.
A sample logout link configuration with a relative reference on a JSP page, is as follows.
<li><a href=<% out.println(".?action=logout"); %>>Logout</a></li>