Closed
Description
Some authentication mechanisms (Kubernetes, PCF) require file resources to read and post these as part of the login process. Right now, these mechanisms use a cached variant of the resource to avoid blocking File I/O which is unfortunate if the resources rotate. We have already AuthenticationSteps.fromSupplier(…)
that accepts a supplier. If the supplier is an instance of CredentialSupplier
, we should use DataBufferUtils
to read the resource (assuming it's a file resource).
All other resource types could be read by using a scheduler.
See also: