-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$auth_resp_x_vouch_user
is not set
#587
Comments
You could use 'vouch.whitelist'... vouch-proxy/config/config.yml_example Line 68 in 012b2fd
Happy New Year. I won't be looking at VP till next week but can offer better advice then |
Happy new year! Thanks for the tip, unfortunately that wont quite work for me since I'd like to allow different set of users for different sites, but using a single VP instance. |
Hello,
|
@nana4rider where did you put this? In my gist I have
under
is under |
@freva If this doesn't work for you, I'm not sure what the issue could be. 😢
|
If I remove it from
Full config:
|
Describe the problem
I'm using Google IdP, the login seems to work: I am redirected to Google, I select my email, I get redirect back to my site and the private content is being served. The issue I'm having is that I want to limit showing the content to only certain emails, not anyone who logged in with Google. To do that I'm trying to write an expression in nginx on
X-Vouch-User
/$auth_resp_x_vouch_user
: https://gist.github.com/freva/fe6c8058070e7ed477a9f2b52b1ee492It seems like
$auth_resp_x_vouch_user
is not set, so the "default" behavior in themap
is always invoked.Additional context
nginx version: 1.27.3
When I curl the vouch proxy, it does return
X-Vouch-User
:If I log in as another user, it doesn't work. I've tried debugging this quite a bit, including the
X-Meta
header in the gist, which returnsx-meta: | | OK
The text was updated successfully, but these errors were encountered: