ECSTeam / cloudfoundry-top-plugin

Cloud Foundry CF cli plugin - show top stats
Apache License 2.0
73 stars 21 forks source link

UAA gets lots of failed token requests #20

Open forbushbl opened 4 years ago

forbushbl commented 4 years ago

Summary

When a user leaves cf top running for a long period of time, their UAA refresh token will expire, however we've noticed that it keeps on trying to get a new token. When this occurs we see ~600 requests per minute to UAA's /oauth/token endpoint until the offending user kills their cf top process.

Steps to reproduce the issue

  1. Login to Cloud Foundry cf login
  2. Run cf top
  3. Wait until the refresh token expires Result: You will see lots of errors being printed to UAA's logs with the message "Handling error: InvalidTokenException, Invalid refresh token expired at..."

Environment