Class AppController

java.lang.Object
swiss.trustbroker.saml.controller.AbstractSamlController
swiss.trustbroker.saml.controller.AppController

@Controller @ConditionalOnBooleanProperty(value="trustbroker.config.saml.enabled", matchIfMissing=true) public class AppController extends AbstractSamlController
This is the main controller for SAML POST and federation metadata related interaction.
Note that we offer the /trustbroker alternative for backward compat and to possibly get out of the ADFS's way for migration if running on same host name.
  • Constructor Details

  • Method Details

    • handleIncomingPostMessages

      @PostMapping(path={"/api/v1/saml","/adfs/ls","/adfs/ls/","/trustbroker/adfs/ls"}, consumes="application/x-www-form-urlencoded") public String handleIncomingPostMessages(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Web traffic dispatcher handling SAML POST and UI interaction.
      Parameters:
      request - is the web input according to servlet spec
      response - is the web response according to servlet spec
      Returns:
      redirect routing or null when no redirect is needed.
    • handleIncomingGetMessages

      @GetMapping(path={"/api/v1/saml","/adfs/ls","/adfs/ls/","/trustbroker/adfs/ls"}) public String handleIncomingGetMessages(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Web traffic dispatcher handling SAML Redirect and UI interaction.
      Parameters:
      request - is the web input according to servlet spec
      response - is the web response according to servlet spec
      Returns:
      redirect routing or null when no redirect is needed.
    • handleIncomingSoapMessages

      @PostMapping(path={"/api/v1/saml","/adfs/ls","/adfs/ls/","/trustbroker/adfs/ls"}, consumes={"text/xml","application/soap+xml"}) public String handleIncomingSoapMessages(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Web traffic dispatcher handling SAML SOAP without UI interaction. Only LogoutRequest is supported at the moment.
      Parameters:
      request - is the web input according to servlet spec
      response - is the web response according to servlet spec
      Returns:
      redirect routing or null when no redirect is needed.
    • resolveArtifact

      @PostMapping(path="/api/v1/saml/arp") public void resolveArtifact(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)