Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenStack::importCredentials does not set X-Auth-Token #236

Closed
nickjenkin opened this issue Dec 3, 2013 · 1 comment
Closed

OpenStack::importCredentials does not set X-Auth-Token #236

nickjenkin opened this issue Dec 3, 2013 · 1 comment
Assignees

Comments

@nickjenkin
Copy link
Contributor

Currently OpenStack::authenticate sets X-Auth-Token via:

 $this->setDefaultOption('headers/X-Auth-Token', (string) $this->getToken());

OpenStack::importCredentials does not replicate this behaviour so authentication fails when using exported credentials.

I changed importCreditials as so:

if (!empty($values['token'])) {
            $this->setToken($values['token']);
            $this->setDefaultOption('headers/X-Auth-Token', (string) $this->getToken());
}

And authentication is working...

@pr1m07
Copy link

pr1m07 commented Dec 4, 2013

I can confirm this... I had the same problem and I solved it by setting default token header....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants