You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using gitlab provider along with oauth2 proxy and nginx.Authentication is successful but we are not able to get X-Auth-Request-Email and X-Auth-Request-User from response header.Oauth2-proxy is running in a docker container.
Here is the architecture.
user
|
v
nginx ----> oauth2-proxy
|
v
upstream
I have been trying to find the cause of the problem from previous issues, and have tried many times, but all failed.Thanks for your help!
For testing purposes, I added a few lines of code to the nginx configuration, but I can only see below in the response headers of /ide. X-Test1:test1 X-Test2:202
There is no X-User or X-Email.
This is part of the oauth2-proxy log. oauth2 | 10.70.21.120 - 1e4c975f-88c0-4ba4-a4c5-2202d690fe9b - [email protected] [2024/04/01 03:09:02] [AuthSuccess] Authenticated via OAuth2: Session{email:[email protected] user:12345678 PreferredUsername: token:true id_token:true created:2024-04-01 03:09:02.9017934 +0000 UTC m=+161.767625176 expires:2024-04-01 04:23:28.811716347 +0000 UTC m=+4627.677548123 refresh_token:true}
Steps To Reproduce
1.run oauth2-proxy
2.run nginx
3.open chrome and open https://www.mydomain.com/ide
4.click 'Sign in with GitLab' and redirect https://git.mydomain.com/users/sign_in
5.enter name and password and click Login
6 press F12,check"Network-->Name: ide/ -->Headers -->Response Headers"
The text was updated successfully, but these errors were encountered:
This issue has been inactive for 60 days. If the issue is still relevant please comment to re-activate the issue. If no action is taken within 7 days, the issue will be marked closed.
OAuth2-Proxy Version
7.6
Provider
gitlab
Current Behaviour of your Problem
We are using gitlab provider along with oauth2 proxy and nginx.Authentication is successful but we are not able to get X-Auth-Request-Email and X-Auth-Request-User from response header.Oauth2-proxy is running in a docker container.
Here is the architecture.
I have been trying to find the cause of the problem from previous issues, and have tried many times, but all failed.Thanks for your help!
Configuration details or additional information
docker-compose.yml
oauth2-proxy-nginx.cfg
nginx config
For testing purposes, I added a few lines of code to the nginx configuration, but I can only see below in the response headers of /ide.
X-Test1:test1 X-Test2:202
There is no X-User or X-Email.
This is part of the oauth2-proxy log.
oauth2 | 10.70.21.120 - 1e4c975f-88c0-4ba4-a4c5-2202d690fe9b - [email protected] [2024/04/01 03:09:02] [AuthSuccess] Authenticated via OAuth2: Session{email:[email protected] user:12345678 PreferredUsername: token:true id_token:true created:2024-04-01 03:09:02.9017934 +0000 UTC m=+161.767625176 expires:2024-04-01 04:23:28.811716347 +0000 UTC m=+4627.677548123 refresh_token:true}
Steps To Reproduce
1.run oauth2-proxy
2.run nginx
3.open chrome and open https://www.mydomain.com/ide
4.click 'Sign in with GitLab' and redirect https://git.mydomain.com/users/sign_in
5.enter name and password and click Login
6 press F12,check"Network-->Name: ide/ -->Headers -->Response Headers"
The text was updated successfully, but these errors were encountered: