Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Front-end proxy: pass through auth header #2586

Merged
merged 3 commits into from
Oct 27, 2017

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 26, 2017

So that access-token-in-an-auth-header works.

Sometimes we need to pass headers into these methods
So that access-token-in-an-auth-header works.
@@ -114,19 +114,23 @@ def send_request():
raise e

@defer.inlineCallbacks
def post_urlencoded_get_json(self, uri, args={}):
def post_urlencoded_get_json(self, uri, args={}, headers=None):
# TODO: Do we ever want to log message contents?
Copy link
Member

Choose a reason for hiding this comment

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

No doc comment?

Copy link
Member Author

Choose a reason for hiding this comment

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

ugh I got bored of writing them for existing functions. Suppose I should toughen up.

Copy link
Member

Choose a reason for hiding this comment

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

Not that I'm in a position to complain, just wondered if it was accidental :)

@richvdh richvdh merged commit 8b56977 into develop Oct 27, 2017
@richvdh richvdh deleted the rav/frontend_proxy_auth_header branch October 27, 2017 10:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants