-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #981: Option to disable verification of replay attacks #1004
Fix #981: Option to disable verification of replay attacks #1004
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really like the solution with @ConditionalOnProperty
. I suggest documenting the configuration property in this PR.
...o/getlime/security/powerauth/app/server/service/replay/DefaultReplayVerificationService.java
Outdated
Show resolved
Hide resolved
...in/java/io/getlime/security/powerauth/app/server/service/replay/NoOpVerificationService.java
Show resolved
Hide resolved
...o/getlime/security/powerauth/app/server/service/replay/DefaultReplayVerificationService.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, with a minor comment to fix.
@Service | ||
@Slf4j | ||
@AllArgsConstructor | ||
@ConditionalOnProperty(prefix = "powerauth.service.crypto", name = "replayVerificationService", havingValue = "default") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just in case, I recommend adding matchIfMissing property to the annotation.
No description provided.