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

[KIWI-1951]- BAV | BE | Handle Response from Experian Crosscore BAV #248

Open
wants to merge 49 commits into
base: main
Choose a base branch
from

Conversation

GDainton
Copy link
Contributor

@GDainton GDainton commented Sep 26, 2024

What changed

The way that the code handles responses from the new credential vendor Experian

Why did it change

As Experian works slightly differently to HMRC the response has to be handled differently

Issue tracking

Environment variables or secrets

  • Documented in the README
  • Added to deployment repository
  • Added to local startup repository
Screenshot 2024-10-03 at 16 10 44 Screenshot 2024-10-03 at 16 10 55 Screenshot 2024-10-03 at 16 11 04 Screenshot 2024-10-03 at 16 13 50 Screenshot 2024-10-03 at 16 14 23 Screenshot 2024-10-03 at 16 17 21

@GDainton GDainton changed the title Hard coded responses producing desired DDB results [KIWI-1951]- BAV | BE | Handle Response from Experian Crosscore BAV Oct 3, 2024
@GDainton GDainton marked this pull request as ready for review October 9, 2024 09:05
@GDainton GDainton requested review from a team as code owners October 9, 2024 09:05
Copy link

sonarcloud bot commented Oct 10, 2024

return await VerifyAccountRequestProcessor.getInstance(logger, metrics, VENDOR_TOKEN).processHmrcRequest(sessionId, body, clientIpAddress, encodedHeader);
} else {
const experianTokenSsmPath = checkEnvironmentVariable(EnvironmentVariables.EXPERIAN_TOKEN_SSM_PATH, logger);
VENDOR_TOKEN = await getParameter(experianTokenSsmPath);
Copy link
Contributor

Choose a reason for hiding this comment

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

Will this be replaced by the token table?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll check with Stelios

Copy link
Contributor Author

Choose a reason for hiding this comment

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

const params = {
header: {
tenantId: uuid,
requestType: "BAVConsumer-Standard",
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move "BAVConsumer-Standard" to a variable so its understood this is a product name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean set it in Constants? Like static readonly EXPERIAN_PRODUCT_NAME = "BAVConsumer-Standard"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

extensions: {
evidence: [
{
txn: vendorUuid,
Copy link
Contributor

Choose a reason for hiding this comment

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

The txn value should be the third party request identifier. Can we confirm the value for this with Sanka

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure I will check with him tomorrow

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Waiting for Experian to supply their expRequestId to be used as txn property - shall we just retain this random UUID as a placeholder to avoid this PR being blocked @Stelios-CB

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.

2 participants