java.lang.Object
com.irurueta.authserver.authorization.api.web.passkeys.PasskeyFactor

@Configuration(proxyBeanMethods=false) public class PasskeyFactor extends Object
Registers a passkey (WebAuthn credential) as an authentication factor: a strong primary one, because the authenticator proves possession of the key and, with user verification, the user as well, so it satisfies the multi-factor policy on its own. A user who signed in with a password and then presents a passkey on the second-factor page ends up with both factors (Spring Security merges the factor authorities of the session into the result of the WebAuthn filter), and the tokens report pwd, hwk and mfa.
  • Field Details

    • ID

      public static final String ID
      Identifier of the factor.
      See Also:
    • AMR_VALUE

      public static final String AMR_VALUE
      RFC 8176 amr value of a proof of possession of a key held in hardware (or in a platform authenticator). A synchronised passkey is reported the same way; the backup flags are exposed by the account API.
      See Also:
    • AUTHORITY

      public static final String AUTHORITY
      Authority Spring Security's WebAuthn provider grants once a passkey assertion has been verified.
      See Also:
  • Constructor Details

    • PasskeyFactor

      public PasskeyFactor()
  • Method Details

    • passkeyAuthenticationFactor

      @Bean public AuthenticationFactor passkeyAuthenticationFactor()
      Declares the passkey factor.
      Returns:
      the factor.