Class ProfileSelectionController
java.lang.Object
swiss.trustbroker.profileselection.controller.ProfileSelectionController
@Controller
@ConditionalOnBooleanProperty("trustbroker.config.profileselection.enabled")
public class ProfileSelectionController
extends Object
Controller for profile selection services.
-
Constructor Summary
ConstructorsConstructorDescriptionProfileSelectionController(ProfileSelectionServiceFactory profileSelectionServiceFactory, RelyingPartyService relyingPartyService, RelyingPartySetupService relyingPartySetupService, StateCacheService stateCacheService, List<swiss.trustbroker.api.saml.service.OutputService> outputServices, RedirectOutputService redirectOutputService) -
Method Summary
Modifier and TypeMethodDescriptionswiss.trustbroker.api.profileselection.dto.ProfileResponseselectProfile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, ProfileRequest profileRequest)
-
Constructor Details
-
ProfileSelectionController
public ProfileSelectionController(ProfileSelectionServiceFactory profileSelectionServiceFactory, RelyingPartyService relyingPartyService, RelyingPartySetupService relyingPartySetupService, StateCacheService stateCacheService, List<swiss.trustbroker.api.saml.service.OutputService> outputServices, RedirectOutputService redirectOutputService)
-
-
Method Details
-
getUserProfiles
@GetMapping(path="/api/v1/hrd/profiles") @ResponseBody public swiss.trustbroker.api.profileselection.dto.ProfileResponse getUserProfiles(@RequestHeader("XTB-ProfileId") String id) -
selectProfile
@PostMapping(path="/api/v1/hrd/profile") public String selectProfile(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, @RequestBody ProfileRequest profileRequest)
-