Skip to content

Caching credentials and X-Auth-Token header #483

@notFloran

Description

@notFloran

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions