Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

allow github enterprise endpoints with api uris not on root url #248

Closed
wants to merge 2 commits into from

Conversation

rremer
Copy link
Contributor

@rremer rremer commented May 12, 2016

#144 Fixed the problem where you couldn't specific 'api.mydomain.com' for a github enterprise (ghe) installation, but the default ghe api endpoint is normally mydomain.com/api/$version (e.g. 'v3).

In the existing implementation, oauth2_proxy will incorrectly validate against the configured validation url without the configured uri, so:
mydomain.com/api/v3 becomes mydomain.com/user/emails

This pull requests honors the full configured url as a base path, so:
mydomain.com/api/v3 becomes mydomain.com/api/v3/user/emails

Additionally, I reduced the logging on success for validation so we don't printy the entire response body and just log that we got a 200 (like we do for all other requests where we were able to successful unmarshal responses).

@rremer
Copy link
Contributor Author

rremer commented Jun 11, 2016

@jehiah Thanks for fixing the travis build, I almost forgot that this was the original bug I had intended to fix (Just updated from upstream).

@jehiah
Copy link
Member

jehiah commented Jun 20, 2016

fixed in #269

@jehiah jehiah closed this Jun 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants