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
{{ message }}
Repository navigation
Do not try an validate Oauth tokens that are known to be invalid #15890
customer-reportedDO NOT USE. Instead, add to the project and fill in "Customer".need-backendIssues that need backend works2Broken use cases or features (with a workaround). Only humans may set this.securityArea: security
At present, every time a request for an external auth token is made, ValidateToken is called. If the jwt is not expired, but revoked on the IdP side, then Coder will consistently retry to use the token.
This can cause excessive IdP requests, and hit rate limits.
Failed refreshes were fixed such that they are not retried here: #15608
Solution
Do not reuse invalid tokens, caching the invalid error and preventing them from causing duplicate failed requests.
Notes
Is it enough to see a 401 or 403 on the validate_url? If hit, deleting the external auth link would prevent reuse, or caching the error in the database.
customer-reportedDO NOT USE. Instead, add to the project and fill in "Customer".need-backendIssues that need backend works2Broken use cases or features (with a workaround). Only humans may set this.securityArea: security
Activity
bpmct commentedon Jan 4, 2025
Moving this as a candidate for the next sprint, as it's related to several tickets.
zenithwolf1000 commentedon Nov 16, 2026
Closing due to inactivity.