Class SamlMockController

java.lang.Object
swiss.trustbroker.samlmock.controller.SamlMockController

@Controller public class SamlMockController extends Object
This controller handles all the mock services from RP -> XTB and CP -> XTB
  • Constructor Details

  • Method Details

    • homePage

      @GetMapping(path="/") public String homePage(org.springframework.ui.Model model)
    • showAllSamples

      @GetMapping(path={"/authn/samples","/authn/samples/{*sampleSelector}"}) public String showAllSamples(org.springframework.ui.Model model, @PathVariable(required=false) String sampleSelector)
    • mockCpResponseCpInitiated

      @GetMapping(path={"/auth/saml2/idp/samples","/auth/saml2/idp/samples/{*sampleSelector}"}) public String mockCpResponseCpInitiated(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, @PathVariable(required=false) String sampleSelector)
    • mockCpResponse

      @PostMapping(path={"/auth/saml2/idp/samples","/auth/saml2/idp/samples/{*sampleSelector}"}) public String mockCpResponse(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, @PathVariable(required=false) String sampleSelector)
    • handleMetadata

      @GetMapping(path="/saml/metadata", produces="application/xml") @ResponseBody public String handleMetadata()
    • resolveArtifact

      @PostMapping(path="/authn/arp") public void resolveArtifact(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Throws:
      IOException
    • cacheArtifact

      @PostMapping(path="/authn/artifact") public void cacheArtifact(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    • handleSamlPost

      @PostMapping(path={"/authn/consumer","/authn/consumer/{*sampleSelector}","/auth/saml2/slo","/auth/saml2/slo/{*sampleSelector}","/auth/saml/slo","/auth/saml/slo/{*sampleSelector}"}) public String handleSamlPost(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, @PathVariable(required=false) String sampleSelector)
    • handleSamlGet

      @GetMapping(path={"/authn/consumer","/authn/consumer/{*sampleSelector}","/auth/saml2/slo","/auth/saml2/slo/{*sampleSelector}","/auth/saml/slo","/auth/saml/slo/{*sampleSelector}"}) public String handleSamlGet(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, @PathVariable(required=false) String sampleSelector)
    • mockAssertionConsumer

      public String mockAssertionConsumer(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request)
    • mockSamlMessageConsumer

      public String mockSamlMessageConsumer(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String sampleSelector)
    • mockSloHttpNotificationConsumer

      @GetMapping(path="/auth/http/slo") public String mockSloHttpNotificationConsumer(jakarta.servlet.http.HttpServletRequest request)
    • mockSloOidcNotificationConsumer

      @GetMapping(path="/auth/oidc/slo") public String mockSloOidcNotificationConsumer(jakarta.servlet.http.HttpServletRequest request)
    • mockAccessRequestConsumer

      @PostMapping(path="/accessrequest/consumer") public String mockAccessRequestConsumer(jakarta.servlet.http.HttpServletRequest request)
    • refreshMockData

      @GetMapping(path="/authn/refresh") public String refreshMockData(org.springframework.ui.Model model)