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

Accept additional HTTP headers in create calls #114

Merged
merged 1 commit into from Nov 4, 2019

Conversation

jonprindiville
Copy link
Member

Similar to what we do for get calls: 77ae9e0

Basically, I'm after this functionality because I want to do some
testing of the auth ratelimiting of Trip Editor. The idea is that
gapi-layer passes the X-Forwarded-For header along to TE and TE can use
it to derive the actual client IP (to use in ratelimiting counts). The
TE auth endpoint gets hit when we attempt to create an oauth token.

I think that some system somewhere along the path is messing with that
header, though. Having the ability to inject my own X-Forwarded-For
header may help figure out what's happening.

Similar to what we do for `get` calls:
    77ae9e0

Basically, I'm after this functionality because I want to do some
testing of the auth ratelimiting of Trip Editor. The idea is that
gapi-layer passes the X-Forwarded-For header along to TE and TE can use
it to derive the actual client IP (to use in ratelimiting counts). The
TE auth endpoint gets hit when we attempt to *create* an oauth token.

I think that some system somewhere along the path is messing with that
header, though. Having the ability to inject my own X-Forwarded-For
header may help figure out what's happening.
Copy link
Contributor

@marz619 marz619 left a comment

Choose a reason for hiding this comment

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

LGTM! 👍

@marz619 marz619 merged commit 3be9411 into master Nov 4, 2019
@marz619 marz619 deleted the allow-extra-headers-on-create branch November 4, 2019 21:41
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.

None yet

2 participants