Class SamlMockController
java.lang.Object
swiss.trustbroker.samlmock.controller.SamlMockController
This controller handles all the mock services from RP -> XTB and CP -> XTB
-
Constructor Summary
ConstructorsConstructorDescriptionSamlMockController(SamlMockProperties properties, SamlMockFileService fileService, SamlMockMetadataService metadataService, SamlMockMessageService messageService) -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheArtifact(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) handleSamlGet(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String sampleSelector) handleSamlPost(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String sampleSelector) homePage(org.springframework.ui.Model model) mockAccessRequestConsumer(jakarta.servlet.http.HttpServletRequest request) mockAssertionConsumer(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request) mockCpResponse(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String sampleSelector) mockCpResponseCpInitiated(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String sampleSelector) mockSamlMessageConsumer(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletRequest request, String sampleSelector) mockSloHttpNotificationConsumer(jakarta.servlet.http.HttpServletRequest request) mockSloOidcNotificationConsumer(jakarta.servlet.http.HttpServletRequest request) refreshMockData(org.springframework.ui.Model model) voidresolveArtifact(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) showAllSamples(org.springframework.ui.Model model, String sampleSelector)
-
Constructor Details
-
SamlMockController
public SamlMockController(SamlMockProperties properties, SamlMockFileService fileService, SamlMockMetadataService metadataService, SamlMockMessageService messageService)
-
-
Method Details
-
homePage
-
showAllSamples
-
mockCpResponseCpInitiated
-
mockCpResponse
-
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
-
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)
-