Fix #2390: Temporary block of activation#2392
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR implements temporary activation blocking for activations that exceed maximum authentication failures, with scheduled/on-access expiration and API exposure of the block-expiration timestamp.
Changes:
- Adds temporary block configuration, persistence fields, Liquibase/SQL migrations, and scheduled expiration.
- Updates authentication/status/list flows to set, expire, and expose temporary activation blocks.
- Extends client models and documentation with
timestampBlockExpireand related configuration/error details.
Reviewed changes
Copilot reviewed 37 out of 37 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
powerauth-java-server/src/main/resources/application.properties |
Adds temporary block and scheduler properties. |
CleaningTask.java |
Adds scheduled temporary block expiration task. |
ActivationQueryService*.java |
Adds queries for expired temporary blocks. |
ServiceError.java |
Adds configuration error code. |
v3/v4/*Authentication*/*Signature*/*Status*Behavior.java |
Integrates temporary block expiration/blocking/reset into auth and status flows. |
TemporaryBlockService.java |
Implements temporary block lifecycle logic. |
ActivationServiceBehavior.java |
Exposes block expiration and expires blocks in activation APIs. |
ActivationRepository.java |
Adds expired temporary block repository query. |
ActivationRecordEntity.java |
Adds temporary block persistence fields. |
AdditionalInformation.java |
Adds history reason for expired temporary blocks. |
PowerAuthServiceConfiguration.java |
Adds temporary block configuration fields. |
powerauth-client-model/... |
Adds timestampBlockExpire to response/entity models. |
docs/WebServices-Methods-V3.md |
Documents new response fields for v3 APIs. |
docs/WebServices-Methods-V4.md |
Documents new response fields for v4 APIs. |
docs/sql/** |
Adds SQL schema/migration statements. |
docs/db/changelog/** |
Adds Liquibase changeset include and column changes. |
docs/Server-Error-Codes.md |
Documents new configuration error code. |
docs/PowerAuth-Server-2.2.0.md |
Documents migration and feature behavior. |
docs/Database-Structure.md |
Documents new activation columns. |
docs/Configuration-Properties.md |
Documents new configuration properties. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
jnpsk
reviewed
Jun 9, 2026
jnpsk
left a comment
Collaborator
There was a problem hiding this comment.
Good job! 👏
Sharing some minor notes.
…ouble unblock events
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See #2390