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

[ANCHOR-526] Fix account not being forwarded in SEP-9's /customer callback #1183

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

Ifropc
Copy link
Contributor

@Ifropc Ifropc commented Nov 1, 2023

Description

Fix account not being forwarded in SEP-9's /customer callback

Context

When receiving callback for SEP-9 field forwarding all JWT fields (account and memo) was missing. Turned out, they were not being forwarded properly

Testing

  • ./gradlew test
  • Adjusted test scenario

Documentation

There is a task for documenting this feature

Known limitations

N/A

Copy link

github-actions bot commented Nov 1, 2023

Code Coverage

Overall Project 29.71%
Files changed 100% 🍏

Module Coverage
core 68.73% 🍏
platform 47.88% 🍏
Files
Module File Coverage
core Sep24Service.java 87.11% 🍏
InteractiveUrlConstructor.java 0% 🍏
platform SimpleInteractiveUrlConstructor.java 100% 🍏

Copy link
Contributor

@philipliu philipliu left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -104,7 +109,7 @@ String constructToken(
return jwtService.encode(token);
}

void forwardKycFields(Map<String, String> request) throws AnchorException {
void forwardKycFields(Map<String, String> request, Sep10Jwt jwt) throws AnchorException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

The memo and account are not KYC fields. Can we add them after line#58?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Put customer request is being created inside forwardKycFields method, so it's required to pass extra parameter either way

@Ifropc Ifropc merged commit 528a74b into develop Nov 1, 2023
5 checks passed
@Ifropc Ifropc deleted the ANCHOR-526 branch November 1, 2023 20:08
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.

3 participants