Class AssertionConsumer

java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
io.deephaven.enterprise.samlauth.servlets.AssertionConsumer
All Implemented Interfaces:
jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

public class AssertionConsumer extends jakarta.servlet.http.HttpServlet
See Also:
  • Field Summary

    Fields inherited from class jakarta.servlet.http.HttpServlet

    LEGACY_DO_HEAD
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Invoked on response from the saml IdP.

    Methods inherited from class jakarta.servlet.http.HttpServlet

    doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, init, service, service

    Methods inherited from class jakarta.servlet.GenericServlet

    destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • doPost

      protected void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Invoked on response from the saml IdP. When triggered, this method will verify a number of required conditions (such as previous registration of nonce & requestId in the LoginRequest.doGet(HttpServletRequest, HttpServletResponse) method, presence of SAMLConstants.DEFAULT_SAML_USER_NAME, etc). On successful completion of these checks, the user's browser will be sent a redirect to a landing page. Note that successful completion at this method (at the client-browser facing side) does not fully complete the login process; the auth-server must verify the nonce and response back to the DH front-end successfully after this method-call in order to complete the front-end login-request
      Overrides:
      doPost in class jakarta.servlet.http.HttpServlet
      Parameters:
      request - standard HttpServletRequest; contains inbound request and stored session
      response - standard HttpServletResponse; may be output or redirect
      Throws:
      IOException - thrown if unable to get response writer object