Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

In the Web app, if you have any absolute references configured in the logout URL, then WSO2 App Manager will directly invoke the Web app by-passing the gateway. Therefore, you need to configure the logout URL as a relative reference. For example, a sample logout link configuration with a relative reference on a JSP page, is as As a best practice, Web apps should not contain any hard-coded resource paths when proxying through WSO2 App Manager. Similarly, if the resource path configured for the logout action of your Web application is absolute, WSO2 App Manager by-passes the gateway and invokes the direct URL, and the action sequence for single logout is not triggered.

Therefore, the logout link configuration in a JSP page of the Web app should contain a relative reference  as follows.

<li><a href=<% out.println(".?action=logout"); %>>Logout</a></li>