vouch / vouch-proxy

an SSO and OAuth / OIDC login solution for Nginx using the auth_request module
MIT License
2.88k stars 326 forks source link

How to pass OAuth2 ADFS token to server application? #526

Closed konachan700 closed 1 year ago

konachan700 commented 1 year ago

How to pass OAuth2 ADFS token to server application? I did in config.yml:

headers:
  idtoken: mytoken
  claimheader: ""
  claims:
    - idtoken

I did in nginx locations /validate and /: auth_request_set $auth_resp_mytoken $upstream_http_mytoken;

And $auth_resp_mytoken is empty. All other variables, for example $upstream_http_x_vouch_user, contain correct values. If I use default headers names, I obtain an empty idtoken too. I see this token in vouch logs...

What am I doing wrong?

bnfinet commented 1 year ago

@konachan700 Please consult the README and supply the items listed there in the manner requested.

bnfinet commented 1 year ago

@konachan700 I'm going to close this, if you need support still, please chime in