-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Bug]: ms-entra and workload identity doesn't use federated credentials when refreshing token #3028
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
Labels
Comments
This would be a Quickfix until Go resolves this golang/oauth2#745 / golang/oauth2#744 |
This was referenced Apr 14, 2025
1 task
1 task
1 task
1 task
Open
1 task
1 task
This was referenced Apr 28, 2025
This was referenced Apr 28, 2025
Merged
1 task
1 task
nilsgstrabo
added a commit
to equinor/radix-flux
that referenced
this issue
May 2, 2025
…g entra ID and workload identity v7.9.0 fixes Refresh Token bug with Entra ID and Workload Identity, ref oauth2-proxy/oauth2-proxy#3028
Richard87
pushed a commit
to equinor/radix-flux
that referenced
this issue
May 2, 2025
…g entra ID and workload identity (#2749) v7.9.0 fixes Refresh Token bug with Entra ID and Workload Identity, ref oauth2-proxy/oauth2-proxy#3028
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: