Skip to content

Commit

Permalink
BAU: Remove source ip from prove identity callback 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 fd60171 commit d295f68
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 @@ -20,7 +20,6 @@ export function proveIdentityCallbackGet(

const response = await service.processIdentity(
email,
req.ip,
sessionId,
clientSessionId,
persistentSessionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function proveIdentityCallbackService(
): ProveIdentityCallbackServiceInterface {
const identityProcessed = async function (
email: string,
sourceIp: string,
sessionId: string,
clientSessionId: string,
persistentSessionId: string,
Expand All @@ -28,7 +27,6 @@ export function proveIdentityCallbackService(
{ email: email },
getInternalRequestConfigWithSecurityHeaders(
{
sourceIp: sourceIp,
sessionId: sessionId,
clientSessionId: clientSessionId,
persistentSessionId: persistentSessionId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe("prove identity callback service", () => {
statusText: "OK",
});
postStub.resolves(axiosResponse);
const { email, sessionId, clientSessionId, ip, diPersistentSessionId } =
const { email, sessionId, clientSessionId, diPersistentSessionId } =
commonVariables;
const req = createMockRequest(PATH_NAMES.PROVE_IDENTITY, {
headers: requestHeadersWithIpAndAuditEncoded,
Expand All @@ -55,7 +55,6 @@ describe("prove identity callback service", () => {

const result = await service.processIdentity(
email,
ip,
sessionId,
clientSessionId,
diPersistentSessionId,
Expand Down
1 change: 0 additions & 1 deletion src/components/prove-identity-callback/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Request } from "express";
export interface ProveIdentityCallbackServiceInterface {
processIdentity: (
email: string,
sourceIp: string,
sessionId: string,
clientSessionId: string,
persistentSessionId: string,
Expand Down

0 comments on commit d295f68

Please sign in to comment.