Hi,
I try to cache my openstack credentials with the code from the doc (https://github.com/rackspace/php-opencloud/blob/working/docs/userguide/caching-credentials.md).
It works as long as the token is valid, once the token has expired, an authentication request is made but with the header X-Auth-Token set with the expired token.
So the API returns a 401.
I have to add this before the authenticate to fix the problem.
$client->setDefaultOption('headers/X-Auth-Token', null);
Maybe the authenticate method in OpenCloud\OpenStack should delete the header before making the authentication request.