Click or drag to resize
CloudIdentityProvider Constructor (CloudIdentity)
Initializes a new instance of the CloudIdentityProvider class with the specified default identity, and the default base URL, REST service implementation, and token cache.

Namespace: net.openstack.Providers.Rackspace
Assembly: openstacknet (in openstacknet.dll) Version: 1.7.7+Branch.master.Sha.25d803f397c8693c2c13777ef6675f796f520f2c
Syntax
public CloudIdentityProvider(
	CloudIdentity defaultIdentity
)

Parameters

defaultIdentity
Type: net.openstack.Core.DomainCloudIdentity
The default identity to use for calls that do not explicitly specify an identity. If this value is , no default identity is available so all calls must specify an explicit identity.
Examples

The following example demonstrates the use of this method to create an identity provider that authenticates using username and API key credentials.

var identity = new CloudIdentity { Username = "{username}", APIKey = "{apiKey}" };
var provider = new CloudIdentityProvider(identity);

The following example demonstrates the use of this method to create an identity provider that authenticates using username and password credentials.

var identity = new CloudIdentity { Username = "{username}", Password = "{password}" };
var provider = new CloudIdentityProvider(identity);
Version Information

.NET Framework

Supported in: 4.5

openstack.net

Supported in: 1.6, 1.5, 1.4, 1.3.6
See Also