Class HrdController
java.lang.Object
swiss.trustbroker.homerealmdiscovery.controller.HrdController
HRD services separated from application namespace.
Always enabled as it's required for the HRD UI.
Always enabled as it's required for the HRD UI.
-
Constructor Summary
ConstructorsConstructorDescriptionHrdController(AssertionConsumerService assertionConsumerService, RelyingPartyService relyingPartyService, RelyingPartySetupService relyingPartySetupService, ClaimsProviderService claimsProviderService, SsoService ssoService, StateCacheService stateCacheService, ApiSupport apiSupport, List<swiss.trustbroker.api.saml.service.OutputService> outputServices) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<swiss.trustbroker.api.profileselection.dto.ProfileResponse> checkDeviceInfo(DeviceInfoReq deviceInfoReq, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) fetchSupportInfo(String errorCode, String session) getHrdTilesForRpIssuer(jakarta.servlet.http.HttpServletRequest httpRequest, String issuer, String rpAuthnRequestId) handleContinueToRp(SessionRequest session, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voidredirectUserToClaimsProvider(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, String cpIssuerId, String rpAuthnRequestId) CP selection handling called by UI (we have provided with the links earlier) Updates the relay state cache with the CP's AuthnRequest ID.
-
Constructor Details
-
HrdController
public HrdController(AssertionConsumerService assertionConsumerService, RelyingPartyService relyingPartyService, RelyingPartySetupService relyingPartySetupService, ClaimsProviderService claimsProviderService, SsoService ssoService, StateCacheService stateCacheService, ApiSupport apiSupport, List<swiss.trustbroker.api.saml.service.OutputService> outputServices)
-
-
Method Details
-
getHrdTilesForRpIssuer
-
handleContinueToRp
@PostMapping(path="/api/v1/hrd/relyingparties/continue") public String handleContinueToRp(@RequestBody SessionRequest session, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
redirectUserToClaimsProvider
@GetMapping(path="/api/v1/hrd/claimsproviders/{cpid}", produces="text/html") @Transactional public void redirectUserToClaimsProvider(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @PathVariable("cpid") String cpIssuerId, @RequestParam("sid") String rpAuthnRequestId) CP selection handling called by UI (we have provided with the links earlier) Updates the relay state cache with the CP's AuthnRequest ID. -
checkDeviceInfo
@PostMapping("/api/v1/device/info") @ResponseBody @Transactional public org.springframework.http.ResponseEntity<swiss.trustbroker.api.profileselection.dto.ProfileResponse> checkDeviceInfo(@RequestBody DeviceInfoReq deviceInfoReq, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) -
backToHrd
-
fetchSupportInfo
@GetMapping(path="/api/v1/support/{errorCode}/{session}") @ResponseBody public SupportInfo fetchSupportInfo(@PathVariable("errorCode") String errorCode, @PathVariable("session") String session)
-