Skip to content

Commit

Permalink
fix ip address to pull from event and not context
Browse files Browse the repository at this point in the history
  • Loading branch information
pearl-truss committed Feb 1, 2024
1 parent 4aacf40 commit 69ddc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/app-api/src/handlers/apollo_gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function contextForRequestForFetcher(userFetcher: userFromAuthProvider): ({
const requestSpan = anyContext[requestSpanKey]
const authProvider =
event.requestContext.identity.cognitoAuthenticationProvider
const ipAddress = context.requestContext.identity.sourceIp
const ipAddress = event.requestContext.identity.sourceIp
// This handler is shared with the third_party_API_authorizer
// when called from the 3rd party authorizer the cognito auth provider
// is not valid for instead the authorizer returns a user ID
Expand Down

0 comments on commit 69ddc55

Please sign in to comment.