This repository has been archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
An /auth endpoint to support Nginx's auth_request #152
Comments
mbland
pushed a commit
to cloud-gov/oauth2_proxy
that referenced
this issue
Oct 8, 2015
Per #153, the implementation turned out to be even less complicated than I expected. Got to reuse the test fixture from the existing |
mbland
pushed a commit
to cloud-gov/oauth2_proxy
that referenced
this issue
Nov 9, 2015
stepanstipl
pushed a commit
to stepanstipl/oauth2_proxy
that referenced
this issue
Jan 16, 2016
eelcocramer
added a commit
to servicelab/oauth2_proxy
that referenced
this issue
Jan 20, 2016
Updates readme and help Adds azure to the providers. Fixes race condition Sometimes, during tests, a race condition occurs. Using `break` instead of `return` fixes this for me. Tries to read mail address Tries to read mail address from the Graph API. Currently this has not been tested properly. Adds resource parameter Uses to gain access to protected resources when redeeming the token. Gets the mail address from the graph *: rename Url to URL everywhere Go coding style says that acronyms should be all lower or all upper. Fix Url to URL. oauthproxy: rename Uri to URI Be consistent with Go coding style for acroynyms. *: rename Oauth to OAuth Be consistent with Go capitalization styling and use a single way of spelling this across the tree. Add /auth endpoint to support Nginx's auth_request Closes bitly#152. Extract Authenticate for Proxy, AuthenticateOnly Add nginx auth_request config to README Sign Upstream requests with HMAC. closes bitly#147 Renames var ending on Url to URL Simplifies configuration for brevity
ruta-goomba
pushed a commit
to ruta-goomba/oauth2_proxy
that referenced
this issue
Jan 21, 2016
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I recently discovered the Nginx
auth_request
directive, which allows a setup like this:Would you be open to having me add an
/auth
endpoint or similar to the oauth2_proxy?It'd basically involve splitting the authentication logic from
func (p *OauthProxy) Proxy(rw http.ResponseWriter, req *http.Request)
into a newAuthenticateRequest()
function, adding a thinAuthenticateOnly()
handler, and registering that withfunc (p *OauthProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)
(and adding the requisite options, of course).The text was updated successfully, but these errors were encountered: