Skip to content

Conversation

@sreejithKExalture
Copy link
Contributor

Jira: https://sift.atlassian.net/browse/MSUE-129

changes:

  1. Upgraded java version to 1.8
  2. Set user Agent String to Client to identifiable value
  3. Updated okhttp to latest(4.10.0)
  4. Added a utility method for webhook validation.

@viaskal-sift viaskal-sift changed the title msue129 [MSUE-129] - Updates in the lib Dec 5, 2022
Copy link

@mpierotti-sift mpierotti-sift left a comment

Choose a reason for hiding this comment

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

Left a comment about the user agent changes, looks good otherwise.

@Expose @SerializedName("$user_agent") private String userAgent;
private static final String APP_VERSION = "3.7.0";
private static final String API_VERSION = "v205";
@Expose @SerializedName("$user_agent") private String userAgent = String.format("SiftScience/%s sift-java/%s", API_VERSION, APP_VERSION);

Choose a reason for hiding this comment

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

I don't think this change is correct for MSUE-63: (Java) Set user Agent String to Client to identifiable value. The SDK user agent should be set in the headers of the the requests that the OkHttpClient is making to Sift, but this implementation seems to be changing the default value for Browser json data within the request.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hi @mpierotti-sift Could you please take a look now? Incorporated changes as suggested.

@sbogolii-sift sbogolii-sift self-requested a review December 12, 2022 17:37
@sbogolii-sift sbogolii-sift self-requested a review December 12, 2022 19:51
Copy link

@mpierotti-sift mpierotti-sift left a comment

Choose a reason for hiding this comment

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

LGTM

@sbogolii-sift sbogolii-sift merged commit 4a73b41 into SiftScience:master Dec 22, 2022
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.

4 participants