oauth2_proxy icon indicating copy to clipboard operation
oauth2_proxy copied to clipboard

Access token forwarding through nginx auth request

Open patrickfuller opened this issue 7 years ago • 7 comments

Related to #420.

This enables expected behavior when using:

set_xauthrequest = true
pass_access_token = true

If both of these are set, the access token will be included in an X-Auth-Request-Access-Token header, following the X-Auth-Request-* pattern used for User and Email.

The access token allows for further validation by upstream services. In my case, I use the token to get more user information, which is then used to set read-only / read-write / admin permissions on internal software.

patrickfuller avatar Jul 16 '17 21:07 patrickfuller

Looks good to me.

ploxiln avatar Jul 16 '17 21:07 ploxiln

Is this going to be merged any time soon? This would be really useful for me

JoelSpeed avatar Sep 27 '17 14:09 JoelSpeed

Agreed, this would be useful for me as well.

kincl avatar Dec 20 '17 13:12 kincl

Hi, can we have this merged soon, please? I've seen many issues related to this, and as this doesn't have any merge conflicts, it's just one-click-of-a-button ahead :) Thanks in advance

jonassvatos avatar Aug 29 '18 14:08 jonassvatos

Agree with Isde. This should be merged. Running into same issue where I would like to have token be usable in nginx that is in front of oauth2_proxy. Please merge.

devcomb avatar Aug 31 '18 15:08 devcomb

Any update on merging this? will be super helpful

jayzeng avatar Nov 29 '18 00:11 jayzeng

There will be no more merges or releases for this repository - see https://github.com/bitly/oauth2_proxy/issues/628#issuecomment-417121636 and read down to see discussion of a maintained fork.

I've started my own fork, and made a v2.3 release which includes this change, see https://github.com/ploxiln/oauth2_proxy/releases

ploxiln avatar Nov 29 '18 00:11 ploxiln