Uses of Record Class
com.irurueta.authserver.authorization.domain.mfa.SecondFactorLockout
Packages that use SecondFactorLockout
Package
Description
Use cases of the multi-factor framework: security events, second-factor lockout and trusted devices.
Multi-factor authentication: the authentication factors, the policy that decides when an authentication is strong
enough, trusted devices, the audit trail and the failed-attempt lockout of the second factor.
PostgreSQL implementations of the multi-factor ports: security events, second-factor attempts and the per-user
enforcement flag, over the
security_events, second_factor_attempts and users tables.-
Uses of SecondFactorLockout in com.irurueta.authserver.authorization.application.mfa
Methods in com.irurueta.authserver.authorization.application.mfa that return SecondFactorLockoutModifier and TypeMethodDescriptionRegisters a failed attempt. -
Uses of SecondFactorLockout in com.irurueta.authserver.authorization.domain.mfa
Methods in com.irurueta.authserver.authorization.domain.mfa that return SecondFactorLockoutModifier and TypeMethodDescriptionReads the state of a user.SecondFactorAttemptRepository.lockForUpdate(UUID userId) Reads the state of a user and locks it until the end of the current transaction, creating a clean state first when nothing was recorded, so that concurrent verifications of the same user's second factor run one after the other instead of all passing the lockout check before any of their failures is counted.static SecondFactorLockoutSecondFactorLockout.none()Creates the state of a user with no failed attempts.SecondFactorAttemptRepository.recordFailure(UUID userId, int maxAttempts, Duration lockout, Instant now) Records one failed attempt and, when the counter reaches the maximum, locks the second factor. -
Uses of SecondFactorLockout in com.irurueta.authserver.authorization.infrastructure.persistence.mfa
Methods in com.irurueta.authserver.authorization.infrastructure.persistence.mfa that return SecondFactorLockoutModifier and TypeMethodDescriptionJdbcSecondFactorAttemptRepository.lockForUpdate(UUID userId) Reads and locks the state of a user, in the caller's transaction (without one, the lock is released as soon as the query ends).Maps the current row.JdbcSecondFactorAttemptRepository.recordFailure(UUID userId, int maxAttempts, Duration lockout, Instant now)