Rackspace Authentication |
This page describes the process for authenticating against the Rackspace Public Cloud.
The default authentication provider used by this SDK performs authentication using an instance of CloudIdentityProvider, which uses the OpenStack Identity Service v2.0 API and supports both username/password and username/API key credentials.
To authenticate a client against the Rackspace Public Cloud, start by creating an instance of CloudIdentity or RackspaceCloudIdentity and initializing its properties with the desired authentication credentials. The credentials may then be passed to service provider instances, such as CloudFilesProvider or CloudQueuesProvider, using either of the following methods.
When creating a service provider instance pass the initialized credentials for the CloudIdentity parameter and null as the IIdentityProvider parameter.
Create an instance of CloudIdentityProvider, and pass the previously created credentials to the constructor. Then, when creating a service provider instance pass null for the CloudIdentity parameter and the identity provider instance as the IIdentityProvider parameter.
The CloudIdentityProvider used for Rackspace authentication does not support CloudIdentityWithProject credentials, so the tenantName and tenantId properties described in the OpenStack documentation cannot be included with authentication requests.