Skip to content
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 #904: Add parsed user agent to the audit #909

Closed
wants to merge 1 commit into from

Conversation

jandusil
Copy link
Contributor

@jandusil jandusil commented Nov 12, 2023

Connected PRs that need to be merged first:
wultra/lime-java-core#227
wultra/powerauth-server#1125

@jandusil jandusil self-assigned this Nov 12, 2023
@jandusil jandusil linked an issue Nov 12, 2023 that may be closed by this pull request
Copy link
Member

@banterCZ banterCZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@@ -200,6 +205,10 @@ public void operationFailApprove(@NotNull String operationId, @NotNull RequestCo
// Prepare additional data
request.getAdditionalData().put(ATTR_IP_ADDRESS, requestContext.getIpAddress());
request.getAdditionalData().put(ATTR_USER_AGENT, requestContext.getUserAgent());
final UserAgent.Device device = UserAgent.parse(requestContext.getUserAgent());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of the scope of this PR, but UserAgent.parse is missing Javadoc, and instead of null it could return Optional.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jandusil
Copy link
Contributor Author

It has been decided in #904, that no changes in ES need to be made. Therefore, closing this PR.

@jandusil jandusil closed this Nov 21, 2023
@banterCZ banterCZ deleted the issues/904-audit-user-agent branch October 25, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add parsed user agent to the audit
2 participants