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

Aut 2578/use common headers #1625

Closed
wants to merge 5 commits into from
Closed

Aut 2578/use common headers #1625

wants to merge 5 commits into from

Conversation

BeckaL
Copy link
Contributor

@BeckaL BeckaL commented May 16, 2024

What

How to review

Checklist

  • Performance analyst has been notified of the change.
  • A UCD review has been performed.
  • Documentation has been updated to reflect these changes.

Related PRs

@BeckaL BeckaL force-pushed the AUT-2578/use-common-headers branch from 1637430 to 5618a88 Compare May 16, 2024 17:00

const expectedApiCallDetails = {
expectedPath: API_ENDPOINTS.CHECK_REAUTH_USER,
expectedHeaders: expectedHeadersFromCommonVarsWithoutSecurityHeaders,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to pass this? Maybe it could be a way to add additional headers to be checked rather simply passing a constant from the service-test-helper module back to it.

BeckaL added 3 commits May 17, 2024 10:26
This will help to show the difference when we update the code to use the new getInternalConfigWithSecurityHeaders function
…n in authorize service

This ensures that the security headers from the govuk-one-login/frontend-passthrough-headers library are being set on authorize service requests.
@BeckaL BeckaL force-pushed the AUT-2578/use-common-headers branch 6 times, most recently from c26fc3d to 5407f31 Compare May 17, 2024 11:30
This is unused and redundant post the orch/auth split, and can be removed. This commit: caa97df removed usage
@BeckaL BeckaL force-pushed the AUT-2578/use-common-headers branch 2 times, most recently from bc429eb to f773959 Compare May 17, 2024 14:08
These were previously untested. This will make it easier to prove changes to these files are correct in future.

This also introduces a common test helper for service tests, since there is a lot of repetition between the tests"
@BeckaL BeckaL force-pushed the AUT-2578/use-common-headers branch from f773959 to 7d650de Compare May 17, 2024 14:11
@BeckaL BeckaL closed this Jun 12, 2024
@BeckaL BeckaL deleted the AUT-2578/use-common-headers branch July 1, 2024 14:29
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