-
Type:
Bug
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 12.0.0, 12.0.1, 12.0.2
-
Component/s: authentication
-
Labels:
-
Sprint:AM Sustaining Sprint 14, AM Sustaining Sprint 15
-
Support Ticket IDs:
Post Authentication Plugin HttpServletRequest is null in onLogout() method
Steps to re-produce:
1) Install a 12.x OpenAM instance.
2) Configure a Post Authentication Plugin by following the steps at https://backstage.forgerock.com/#!/docs/openam/12.0.0/dev-guide/chap-post-auth
Make sure to add a snippet in the onLogout() like below.
public void onLogout(HttpServletRequest request, HttpServletResponse response, SSOToken ssoToken)
throws AuthenticationException {
DEBUG.message("Triggering the onLogout in the SamplePAP");
if (request != null)
{ DEBUG.message(" request is not null"); }else
{ DEBUG.message("request is null"); }}
3) Login to OpenAM using browser or REST.
4) Invoke logout from OpenAM using browser or REST.
5) The PAP onLogout will print message like "request is null", where as the expected behavior is to provide the HttpServletRequest object.