Class FederatedFactorSelector
java.lang.Object
com.irurueta.authserver.authorization.api.web.social.FederatedFactorSelector
Decides which factor a federated sign-in proved: the strong one when the provider is trusted for its multi-factor
authentication (
authserver.social.providers.<id>.trust-mfa) and its upstream amr contains
mfa, the ordinary one otherwise. An upstream claim the server was not told to trust is never believed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocialPropertiesSettings of the providers, for the trust.private final FederatedUserMapperReads the upstreamamr. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorityOf(org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken token) Selects the factor of a sign-in.
-
Field Details
-
properties
Settings of the providers, for the trust. -
userMapper
Reads the upstreamamr.
-
-
Constructor Details
-
FederatedFactorSelector
public FederatedFactorSelector()
-
-
Method Details
-
authorityOf
public String authorityOf(org.springframework.security.oauth2.client.authentication.OAuth2AuthenticationToken token) Selects the factor of a sign-in.- Parameters:
token- the authentication of the sign-in.- Returns:
FederatedFactor.STRONG_AUTHORITYorFederatedFactor.AUTHORITY.
-