Interface ProfileSelectionService
public interface ProfileSelectionService
A user that has different profiles may need to select the profile to use for authentication. (OIDC: prompt=select_account)
This interface is preliminary and could still change.
An implementation can be configured via Spring @Value binding or by injecting swiss.trustbroker.config.TrustbrokerProperties and using swiss.trustbroker.config.dto.ProfileSelectionConfig (${trustbroker.config.profileSelection}).
Breaking changes:
This interface is preliminary and could still change.
An implementation can be configured via Spring @Value binding or by injecting swiss.trustbroker.config.TrustbrokerProperties and using swiss.trustbroker.config.dto.ProfileSelectionConfig (${trustbroker.config.profileSelection}).
Breaking changes:
- With 1.8.0 buildProfileResponse signature changed.
-
Method Summary
Modifier and TypeMethodDescriptionbuildProfileResponse(ProfileSelectionData profileSelectionData, CpResponseData cpResponseData) doFinalProfileSelection(ProfileSelectionData profileSelectionData, RelyingPartyConfig relyingPartyConfig, CpResponseData cpResponseData, SessionState sessionState) doInitialProfileSelection(ProfileSelectionData profileSelectionData, RelyingPartyConfig relyingPartyConfig, CpResponseData cpResponseData, SessionState sessionState) doSsoProfileSelection(ProfileSelectionData profileSelectionData, RelyingPartyConfig relyingPartyConfig, CpResponseData cpResponseData, SessionState sessionState) static booleanisProfileSelectionDisabled(ProfileSelectionProperties profileSelection) booleanisValidSelectedProfile(ProfileSelectionData profileSelectionData, CpResponseData cpResponseData)
-
Method Details
-
doInitialProfileSelection
ProfileSelectionResult doInitialProfileSelection(ProfileSelectionData profileSelectionData, RelyingPartyConfig relyingPartyConfig, CpResponseData cpResponseData, SessionState sessionState) -
doFinalProfileSelection
ProfileSelectionResult doFinalProfileSelection(ProfileSelectionData profileSelectionData, RelyingPartyConfig relyingPartyConfig, CpResponseData cpResponseData, SessionState sessionState) -
doSsoProfileSelection
ProfileSelectionResult doSsoProfileSelection(ProfileSelectionData profileSelectionData, RelyingPartyConfig relyingPartyConfig, CpResponseData cpResponseData, SessionState sessionState) -
buildProfileResponse
ProfileResponse buildProfileResponse(ProfileSelectionData profileSelectionData, CpResponseData cpResponseData) -
isValidSelectedProfile
boolean isValidSelectedProfile(ProfileSelectionData profileSelectionData, CpResponseData cpResponseData) -
isProfileSelectionDisabled
-