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.
However, when developing third party Web applications, do not include hard-coded absolute URLs, in which case, WSO2 AppM will directly invoke the Web app by-passing the gateway.
When persisting the logout URL, WSO2 App Manager converts it to a gateway URL by tallying it against the Web app URL. Therefore, the logout URL always need to start with the Web app URL as shown in the below convention.
- Web app URL:
http://locahost:8080/MyWebapp
- Logout URL:
http://locahost:8080/MyWebapp/?action=logout
WSo2 App Manager does not require any sort of special parameters to be present in the logout request, for the above convention.
Configuring the Web app
The configured logout URL of the Web app should be relative, and should not contain absolute references. A sample logout link configuration on a JSP page, is as follows.
<li><a href=<% out.println(".?action=logout"); %>>Logout</a></li>