是否有人试图使用php-opencloud库连接到软层对象存储?
当库试图进行身份验证时,我得到了400个错误的响应。
从我在php库中看到的情况来看,它使用了描述这里的身份验证方法,使用了v2/令牌和使用v1的软层对象存储。
基于相同openstack的softlayer对象存储不支持身份验证v2吗?
我可以使用sdk(softlayer- object php)连接到对象存储,它似乎使用了身份验证v1,问题是我使用的是Laravel5.1,它有内置的文件系统使用flysystem(thephpleague/flysystem),它具有使用php-ocencloud的openstack适配器。
这将是非常好的,并将节省我的时间,只是使用驱动程序,而不是我必须建立自定义驱动程序使用软件层sdk,并使我重新发明车轮。
Config /filystems.php中的config
'rackspace' => [
'driver' => 'rackspace',
'username' => '***username from softlayer***',
'key' => '***api key from softlayer**',
'container' => '***my test container***',
'endpoint' => 'https://sng01.objectstorage.softlayer.net/auth/v1',
'region' => 'sng01',
'url_type' => 'publicURL',
],我试着像这样连接:
Storage::disk('rackspace')->exists('test');错误是:
ClientErrorResponseException in BadResponseException.php line 43:
Client error response
[status code] 400
[reason phrase] Bad Request
[url] https://sng01.objectstorage.softlayer.net/auth/v1/tokens发布于 2015-12-07 14:36:12
Currenlty只有用于身份验证v1的端点,您可以在门户中看到有效的端点(单击查看凭据http://knowledgelayer.softlayer.com/procedure/how-do-i-access-object-storage-command-line)。
问候
https://stackoverflow.com/questions/34113190
复制相似问题