Skip to content
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

Feature Request: add username header #22

Open
gfrankliu opened this issue Jul 26, 2021 · 2 comments
Open

Feature Request: add username header #22

gfrankliu opened this issue Jul 26, 2021 · 2 comments

Comments

@gfrankliu
Copy link

n proxy mode we can specify a header that will be filled with the validated email address from the JWT token. The value will only contain the email address, eg: [email protected]:

gcp-iap-auth --audiences=YOUR_AUDIENCE --backend=http://localhost:8080 --email-header=X-WEBAUTH-USER

Can we have another header just to provide username? eg: name from [email protected] using --name-header=X-WEBAUTH-NAME

@gfrankliu
Copy link
Author

Something like this but with a different header name.

@gfrankliu
Copy link
Author

A better feature request would be to have the injected headers customizable using JMESPath like Grafana did in its jwt auth. This will make injected response headers (when running gcp-iap-auth in server mode for nginx auth_request) and request headers (when running in reverse proxy mode) use anything from the jwt token as value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant