Skip to content

Commit

Permalink
AUT-2578: Remove ip reword me
Browse files Browse the repository at this point in the history
  • Loading branch information
BeckaL committed May 17, 2024
1 parent 993c2f2 commit 2f51cf8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/components/authorize/authorize-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export function authorizeGet(
const startAuthResponse = await authService.start(
sessionId,
clientSessionId,
req.ip,
persistentSessionId,
req,
claims.reauthenticate
Expand Down
2 changes: 0 additions & 2 deletions src/components/authorize/authorize-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export function authorizeService(
const start = async function (
sessionId: string,
clientSessionId: string,
sourceIp: string,
persistentSessionId: string,
req: Request,
reauthenticate?: string
Expand All @@ -31,7 +30,6 @@ export function authorizeService(
{
sessionId: sessionId,
clientSessionId: clientSessionId,
sourceIp: sourceIp,
persistentSessionId: persistentSessionId,
reauthenticate: reauthenticateOption,
},
Expand Down
4 changes: 1 addition & 3 deletions src/components/authorize/tests/authorize-service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ describe("authorize service", () => {
service.start(
sessionId,
clientSessionId,
ip,
persistentSessionId,
req,
"123456"
Expand All @@ -69,7 +68,6 @@ describe("authorize service", () => {
service.start(
sessionId,
clientSessionId,
ip,
persistentSessionId,
req,
"123456"
Expand All @@ -85,7 +83,7 @@ describe("authorize service", () => {

it("sends a request without a reauth header when reauth is not requested", () => {
process.env.SUPPORT_REAUTHENTICATION = "1";
service.start(sessionId, clientSessionId, ip, persistentSessionId, req);
service.start(sessionId, clientSessionId, persistentSessionId, req);

expect(
getStub.calledWithMatch(API_ENDPOINTS.START, {
Expand Down
1 change: 0 additions & 1 deletion src/components/authorize/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export interface AuthorizeServiceInterface {
start: (
sessionId: string,
clientSessionId: string,
sourceIp: string,
persistentSessionId: string,
req: Request,
reauthenticate?: string
Expand Down

0 comments on commit 2f51cf8

Please sign in to comment.