rackspace / gophercloud

A Go SDK for OpenStack. IN FEATURE FREEZE. See Issue #592
http://gophercloud.io
Other
456 stars 181 forks source link

Reauth Header Problem #583

Closed reaperhulk closed 8 years ago

reaperhulk commented 8 years ago

When defining a ReauthFunc (or using the one provided by AllowReauth) the request that actually triggers the reauth never succeeds. For example, if you call Download with an expired token it will do the following:

jrperritt commented 8 years ago

Ah, those AuthenticatedHeaders calls in the requests.go files were all supposed to be removed in favor of the one in provider_client.go. Will fix today.

reaperhulk commented 8 years ago

Thanks for the quick response @jrperritt, I look forward to the fix :)

jrperritt commented 8 years ago

@reaperhulk You can go get -u github.com/rackspace/gophercloud to get the fix that was just pushed. I'll leave this open until we can confirm that it's been resolved.

reaperhulk commented 8 years ago

Yep, this fixes my issue. A quick grep of the codebase looks like you might have missed one last AuthenticatedHeaders call though: rackspace/objectstorage/v1/cdncontainers/requests.go

jrperritt commented 8 years ago

quite right: #585