Skip to content

Conversation

@Kehrlann
Copy link
Contributor

@Kehrlann Kehrlann commented Apr 17, 2025

If the UAA returns an HTTP 500 on refresh tokens because it is not valid anymore, the refresh token is not invalidated, stays in cache and is never "cleaned up".

This invalidates the refresh token, regardless of the UAA error.

@Kehrlann Kehrlann marked this pull request as draft April 17, 2025 12:37
@Kehrlann Kehrlann force-pushed the dgarnier/uaa-fix-failed-token branch from a1f68a3 to 4d92cb4 Compare April 17, 2025 12:44
- When the UAA throws an error other than HTTP 401, the refresh token
  flow fails, and can lead to irrecoverable errors where there
  application needs to be restarted. This changes ensure we are
  resilitent to all UAA errors. The downside is that we may not retry
  using a refresh token when it fails for an unrelated reason (eg HTTP
  503), requesting access tokens more frequently. The impact should be
  extremely marginal.

Signed-off-by: Daniel Garnier-Moiroux <[email protected]>
@Kehrlann Kehrlann force-pushed the dgarnier/uaa-fix-failed-token branch from 4d92cb4 to aa18da5 Compare April 29, 2025 20:33
@Kehrlann Kehrlann marked this pull request as ready for review April 29, 2025 20:35
@Kehrlann Kehrlann merged commit 3b475f9 into cloudfoundry:main Apr 30, 2025
3 checks passed
@Kehrlann Kehrlann deleted the dgarnier/uaa-fix-failed-token branch April 30, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants