SumoLogic / sumologic-cloudfoundry-nozzle

A cloudfoundry nozzle that outputs to Sumologic
Apache License 2.0
3 stars 3 forks source link

Issue 17 - Reset cfClient #19

Closed mikehosinski closed 5 years ago

mikehosinski commented 5 years ago

This addresses https://github.com/SumoLogic/sumologic-cloudfoundry-nozzle/issues/17, which causes the nozzle to fail when the refresh token of the client expires. In the event of such a failure, we instantiate a new cfClient for the nozzle, allowing us to obtain a new refresh token.

The refresh token expiration is dictated by the refresh_token_validity property on the cf client with a default value of 2592000 seconds (30 days). This property is configurable via the uaac CLI.