java.lang.Object
swiss.trustbroker.homerealmdiscovery.controller.HrdController

@Controller public class HrdController extends Object
HRD services separated from application namespace.
Always enabled as it's required for the HRD UI.
  • Constructor Details

  • Method Details

    • getHrdTilesForRpIssuer

      @GetMapping(path="/api/v1/hrd/relyingparties/{issuer}/tiles") @ResponseBody public UiObjects getHrdTilesForRpIssuer(jakarta.servlet.http.HttpServletRequest httpRequest, @PathVariable("issuer") String issuer, @RequestParam(value="sid",required=false) String rpAuthnRequestId)
    • 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

      @GetMapping(path="/api/v1/hrd/{session}/continue") public String backToHrd(@PathVariable("session") String session)
    • fetchSupportInfo

      @GetMapping(path="/api/v1/support/{errorCode}/{session}") @ResponseBody public SupportInfo fetchSupportInfo(@PathVariable("errorCode") String errorCode, @PathVariable("session") String session)