java.lang.Object
com.irurueta.authserver.authorization.api.web.social.FederatedFactor

@Configuration(proxyBeanMethods=false) public class FederatedFactor extends Object
Registers the sign-in with an external provider as an authentication factor, in two flavours that are never held together by one session:
  • AUTHORITY (fed, a FactorStrength.PRIMARY factor): the normal case. The provider proved the user, but the server does not know how, so the normal second-factor flow applies;
  • STRONG_AUTHORITY (fed, FactorStrength.PRIMARY_STRONG): granted instead of the first only when the provider is marked trust-mfa and its upstream amr contains mfa, so the sign-in satisfies the multi-factor policy on its own, like a passkey. Unlike a passkey it is also multi-factor alone: the provider proved several factors, so the session reaches the multi-factor acr and passes a step-up without a local second factor.
Both report the same amr value, so the tokens read fed either way (plus mfa and the upstream values for the strong one, see IdpClaimsContributor).
  • Field Details

    • AUTHORITY

      public static final String AUTHORITY
      Authority of a federated sign-in, a primary factor.
      See Also:
    • STRONG_AUTHORITY

      public static final String STRONG_AUTHORITY
      Authority of a federated sign-in whose provider proved several factors and is trusted for it.
      See Also:
    • AMR_VALUE

      public static final String AMR_VALUE
      RFC 8176 amr value of a federated sign-in.
      See Also:
  • Constructor Details

    • FederatedFactor

      public FederatedFactor()
  • Method Details

    • federatedAuthenticationFactor

      @Bean public AuthenticationFactor federatedAuthenticationFactor()
      Declares the federated factor.
      Returns:
      the factor.
    • federatedStrongAuthenticationFactor

      @Bean public AuthenticationFactor federatedStrongAuthenticationFactor()
      Declares the federated factor of a trusted provider that proved several factors.
      Returns:
      the factor.