Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-7265

Post Authentication Plugin HttpServletRequest is null in onLogout() method

    Details

    • Sprint:
      AM Sustaining Sprint 14, AM Sustaining Sprint 15
    • Support Ticket IDs:

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              sachiko Sachiko Wallace
              Reporter:
              kamal.sivanandam@forgerock.com Kamal Sivanandam
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h