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
When running with Entra ID and Workload Identity refreshing/reedeming the refresh token doesn't work and fails:
[2025/04/11 13:36:16] [stored_session.go:193] Unable to refresh session:
error refreshing tokens: unable to redeem refresh token: failed to get token: oauth2: "invalid_client""AADSTS7000218:
The request body must contain the following parameter: 'client_assertion' or 'client_secret'.
Trace ID: 60110e49-47d5-46a6-bf85-a4249f3a0000
Correlation ID: fb527aa9-8f1d-48e5-a1e8-3daeb1e63835
Timestamp: 2025-04-11 11:36:03Z"
"https://login.microsoftonline.com/error?code=7000218"
Either upgrade OIDC to possibly get client assertion from ms-entra, or upgrade OIDC with support for any client assertion tool, so private_key_jwt or Federated Credentials with client assertion. (ref., #2909)
Replace OIDCProvider.GetClientSecret() string with a OIDCProvider.AuthenticateClient(oauth2.Config) oauth2.Config method
I would like to propose and make a initial bugfix to make workload identity work (I don't want to recreate our client secrets and maintenance scripts that I deleted :D), and look at the RFC above for a better long-term solution
OAuth2-Proxy Version
7.8.2
Provider
entra-id
Expected Behaviour
Transparent refreshing AccessToken when needed
Current Behaviour
When running with Entra ID and Workload Identity refreshing/reedeming the refresh token doesn't work and fails:
Steps To Reproduce
Run oauth2-proxy with
--cookie-refresh=120s
andPossible Solutions
Either upgrade OIDC to possibly get client assertion from ms-entra, or upgrade OIDC with support for any client assertion tool, so
private_key_jwt
or Federated Credentials with client assertion. (ref., #2909)Replace
OIDCProvider.GetClientSecret() string
with aOIDCProvider.AuthenticateClient(oauth2.Config) oauth2.Config
methodI would like to propose and make a initial bugfix to make workload identity work (I don't want to recreate our client secrets and maintenance scripts that I deleted :D), and look at the RFC above for a better long-term solution
Configuration details or additional information
Se #1979 for the initial implementation
The text was updated successfully, but these errors were encountered: