Class PasskeyConfiguration

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

@Configuration(value="passkeyWebConfiguration", proxyBeanMethods=false) public class PasskeyConfiguration extends Object
Installs the passkeys (WebAuthn) in the login/UI chain. Nothing outside this feature is edited: the chain applies every LoginChainCustomizer bean, in order, before its catch-all rule.
  • Constructor Details

    • PasskeyConfiguration

      public PasskeyConfiguration()
  • Method Details

    • passkeyChainCustomizer

      @Bean @Order(2) public LoginChainCustomizer passkeyChainCustomizer(PasskeyProperties properties, MfaAuthorizationManager authorizationManager, org.springframework.security.core.userdetails.UserDetailsService userDetailsService, SecondFactorUserResolver userResolver, CheckSecondFactorLockoutUseCase lockoutUseCase)
      Declares the customizer that enables http.webAuthn(...), permits its public endpoints, keeps the registration endpoints behind the multi-factor policy and removes the ones that would bypass the step-up. It is applied after the TOTP customizer.
      Parameters:
      properties - relying party settings.
      authorizationManager - applies the multi-factor policy.
      userDetailsService - loads the account of the user a passkey belongs to.
      userResolver - resolves the account of the signed-in user, for the lockout check.
      lockoutUseCase - tells whether the second factor of a user is locked.
      Returns:
      the customizer.