This is an automated email from the ASF dual-hosted git repository.
Aman-Mittal pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/fineract-consumer-facing.git
from 23f6a5c Merge pull request #204 from
ayushcodes27/feat/114-loan-payment-limit
add 7d8c94a security: bind one-time codes to a purpose and close the
registration identity oracle
add 1d0f31d registration: retarget the OTP replay scenario at the state
guard
new 0415fe2 Merge pull request #212 from
Aman-Mittal/fix/security-hardening
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../service/AuthenticationCommandServiceImpl.java | 5 +-
.../service/BeneficiariesCommandServiceImpl.java | 5 +-
.../IdentityVerificationAttemptCounter.java | 104 +++++++++
.../infrastructure/otp/data/OtpPurpose.java | 56 +++++
.../infrastructure/otp/data/PendingOtp.java | 10 +-
.../otp/repository/OtpRepository.java | 39 ++--
.../otp/service/OtpEmailDeliveryService.java | 11 +-
.../infrastructure/otp/service/OtpService.java | 15 +-
.../infrastructure/otp/service/OtpServiceImpl.java | 33 +--
...n.java => RegistrationNotPendingException.java} | 15 +-
.../service/RegistrationCommandServiceImpl.java | 48 +++-
.../service/TransfersCommandServiceImpl.java | 5 +-
.../user/command/service/UserCommandService.java | 10 +
.../command/service/UserCommandServiceImpl.java | 24 +-
.../AuthenticationCommandServiceImplTest.java | 16 +-
.../BeneficiariesCommandServiceImplTest.java | 28 +--
...RateLimitReset.java => ValkeyCounterReset.java} | 25 +-
.../consumer/cucumber/steps/PasswordSteps.java | 53 +++++
.../consumer/cucumber/steps/RegistrationSteps.java | 24 ++
.../IdentityVerificationAttemptCounterTest.java | 122 ++++++++++
.../otp/repository/OtpRepositoryTest.java | 44 +++-
.../otp/service/OtpServiceImplTest.java | 122 ++++++----
.../RegistrationCommandServiceImplTest.java | 257 +++++++++++++++++++++
.../service/TransfersCommandServiceImplTest.java | 34 +--
.../service/UserCommandServiceImplTest.java | 23 +-
.../src/test/resources/features/password.feature | 18 ++
.../test/resources/features/registration.feature | 26 ++-
docs/consumer/architecture/infrastructure.adoc | 4 +-
docs/consumer/features/identity.adoc | 2 +-
docs/consumer/features/otp.adoc | 25 +-
docs/consumer/features/registration.adoc | 29 +--
frontend/public/i18n/en.json | 1 +
frontend/public/i18n/hi.json | 1 +
33 files changed, 1044 insertions(+), 190 deletions(-)
create mode 100644
consumer/src/main/java/org/apache/fineract/consumer/infrastructure/kyc/service/IdentityVerificationAttemptCounter.java
create mode 100644
consumer/src/main/java/org/apache/fineract/consumer/infrastructure/otp/data/OtpPurpose.java
copy
consumer/src/main/java/org/apache/fineract/consumer/registration/command/exception/{IdentityNotVerifiedException.java
=> RegistrationNotPendingException.java} (65%)
rename
consumer/src/test/java/org/apache/fineract/consumer/cucumber/hooks/{RateLimitReset.java
=> ValkeyCounterReset.java} (68%)
create mode 100644
consumer/src/test/java/org/apache/fineract/consumer/infrastructure/kyc/service/IdentityVerificationAttemptCounterTest.java
create mode 100644
consumer/src/test/java/org/apache/fineract/consumer/registration/command/service/RegistrationCommandServiceImplTest.java