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
I am using OAuth2 Proxy with Microsoft Azure AD as the identity provider. After successfully logging in, the expected headers (e.g., Authorization or X-Forwarded-*) are not being forwarded from my React App (my upstream) to my backend service. This is causing issues where the backend cannot authenticate requests or retrieve user information.
If there’s an official tutorial or guide for configuring OAuth2 Proxy with Microsoft Azure AD in this scenario, it would be greatly appreciated.
OAuth2-Proxy Version
latest
Provider
azure
Current Behaviour of your Problem
I am using OAuth2 Proxy with Microsoft Azure AD as the identity provider. After successfully logging in, the expected headers (e.g., Authorization or X-Forwarded-*) are not being forwarded from my React App (my upstream) to my backend service. This is causing issues where the backend cannot authenticate requests or retrieve user information.
If there’s an official tutorial or guide for configuring OAuth2 Proxy with Microsoft Azure AD in this scenario, it would be greatly appreciated.
Configuration details or additional information
provider = "azure"
client_id = ""
client_secret = ""
cookie_secret = "***"
OIDC Issuer URL
oidc_issuer_url = "https://login.microsoftonline.com/***/v2.0"
redirect_url = "http://localhost:4180/oauth2/callback"
Allow all email domains for authentication
email_domains = ["*"]
Enable passing tokens and Authorization headers to upstream servers
pass_access_token = true
pass_authorization_header = true
Cookie settings
cookie_refresh = "1h"
cookie_name = "oauth2-proxy"
cookie_secure = false
Local address and port to bind OAuth2 Proxy
http_address = "0.0.0.0:4180"
Upstream application (react app)
upstreams = ["http://172.20.10.5:3000/"]
reverse_proxy="true"
Extra options for Azure provider
scope = "openid profile email https://graph.microsoft.com/.default"
Steps To Reproduce
No response
The text was updated successfully, but these errors were encountered: