Skip to content

Commit

Permalink
BAU: Remove source ip from check reauth users service
Browse files Browse the repository at this point in the history
This is no longer required to set the ip in headers, since the common headers library that is now used gets this from the request that we now pass through.
  • Loading branch information
BeckaL committed May 22, 2024
1 parent a9fb879 commit 7dc8528
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function checkReauthUsersService(
sessionId: string,
emailAddress: string,
sub: string,
sourceIp: string,
clientSessionId: string,
persistentSessionId: string,
req: Request
Expand All @@ -25,7 +24,6 @@ export function checkReauthUsersService(
const config = getInternalRequestConfigWithSecurityHeaders(
{
sessionId,
sourceIp,
validationStatuses: [
HTTP_STATUS_CODES.OK,
HTTP_STATUS_CODES.BAD_REQUEST,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("re-authentication service", () => {
statusText: "OK",
});
postStub.resolves(axiosResponse);
const { sessionId, email, ip, clientSessionId, diPersistentSessionId } =
const { sessionId, email, clientSessionId, diPersistentSessionId } =
commonVariables;
const req = createMockRequest(PATH_NAMES.ENTER_EMAIL_SIGN_IN, {
headers: requestHeadersWithIpAndAuditEncoded,
Expand All @@ -49,7 +49,6 @@ describe("re-authentication service", () => {
sessionId,
email,
SUBJECT,
ip,
clientSessionId,
diPersistentSessionId,
req
Expand Down
1 change: 0 additions & 1 deletion src/components/check-reauth-users/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export interface CheckReauthServiceInterface {
sessionId: string,
email: string,
sub: string,
sourceIp: string,
clientSessionId: string,
persistentSessionId: string,
req: Request
Expand Down
1 change: 0 additions & 1 deletion src/components/enter-email/enter-email-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ export function enterEmailPost(
sessionId,
email,
sub,
req.ip,
clientSessionId,
persistentSessionId,
req
Expand Down

0 comments on commit 7dc8528

Please sign in to comment.