Identity should be tenameName:accessKey

tenantId is something else.  Tested against hpcloud.
This commit is contained in:
Andrew Gaul 2012-05-11 13:38:30 -07:00 committed by Andrew Gaul
parent 27c07a507d
commit 191a4e7341
4 changed files with 4 additions and 4 deletions

View File

@ -88,7 +88,7 @@ public class NovaApiMetadata extends BaseRestApiMetadata {
super(NovaClient.class, NovaAsyncClient.class);
id("openstack-nova")
.name("OpenStack Nova Diablo+ API")
.identityName("tenantId:user")
.identityName("tenantName:accessKey")
.credentialName("password")
.documentation(URI.create("http://api.openstack.org/"))
.version("1.1")

View File

@ -41,7 +41,7 @@ public class AuthenticateApiAccessKeyCredentials implements Function<Credentials
@Override
public Access apply(Credentials input) {
if (input.identity.indexOf(':') == -1) {
throw new AuthorizationException(String.format("Identity %s does not match format tenantId:accesskey",
throw new AuthorizationException(String.format("Identity %s does not match format tenantName:accessKey",
input.identity), null);
}

View File

@ -79,7 +79,7 @@ public class HPCloudComputeProviderMetadata extends BaseProviderMetadata {
id("hpcloud-compute")
.name("HP Cloud Compute Services")
.apiMetadata(new NovaApiMetadata().toBuilder()
.identityName("tenantId:accessKey")
.identityName("tenantName:accessKey")
.credentialName("secretKey")
.defaultModules(ImmutableSet.<Class<? extends Module>>of(NovaRestClientModule.class, HPCloudComputeServiceContextModule.class))
.build())

View File

@ -83,7 +83,7 @@ public class HPCloudObjectStorageApiMetadata extends BaseRestApiMetadata {
super(HPCloudObjectStorageClient.class, HPCloudObjectStorageAsyncClient.class);
id("hpcloud-objectstorage")
.name("HP Cloud Services Object Storage API")
.identityName("tenantId:accessKey")
.identityName("tenantName:accessKey")
.credentialName("secretKey")
.version("1.0")
.documentation(URI.create("https://build.hpcloud.com/object-storage/api"))