Single logout can be incorporated when signing up to applications in WSO2 App Manager.
Configuring App Manager
To configure App Manager for single logout, you only need to specify the LogOut URL of your application as depicted below.
However, when developing third party web applications, do not include hard coded absolute URLs, in which case, the gateway would be bypassed and your web app will get directly invoked.
When persisting the logout URL, WSO2 App Manager converts it to gateway URL by tallying it against the web app URL. Hence, the logout URL always need to start with web app URL as shown in the below convention.
- Web app URL : http://locahost:8080/MyWebapp
- Logout URL : http://locahost:8080/MyWebapp/?action=logout
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>