C# Class Rackspace.Security.Authentication.RackspaceAuthenticationService

This class extends the OpenStack IdentityV2AuthenticationService with support for the Rackspace-specific service catalog and default region supported by Cloud Identity accounts.

The default region for an authenticated user is only considered when a region is not explicitly specified in the construction of a service client.

Inheritance: OpenStack.Security.Authentication.IdentityV2AuthenticationService
显示文件 Open project: crowdy/OpenStack-ConoHa Class Usage Examples

Public Methods

Method Description
RackspaceAuthenticationService ( IIdentityService identityService, AuthenticationRequest authenticationRequest ) : System

Initializes a new instance of the RackspaceAuthenticationService class with the specified identity service and prepared authentication request.

Protected Methods

Method Description
GetBaseAddressImpl ( Access access, string serviceType, string serviceName, string region, bool internalAddress ) : Uri This method updates the serviceType and/or serviceName values for cases where "vanilla" OpenStack values were specified but Rackspace exposes the compatible services under different names in the service catalog.
GetEffectiveRegion ( Access access, string region ) : string This implementation returns region if it is non-. If region is , the default region for the specified Access is returned if available; otherwise, this method returns .

Method Details

GetBaseAddressImpl() protected method

This method updates the serviceType and/or serviceName values for cases where "vanilla" OpenStack values were specified but Rackspace exposes the compatible services under different names in the service catalog.
protected GetBaseAddressImpl ( Access access, string serviceType, string serviceName, string region, bool internalAddress ) : Uri
access OpenStack.Services.Identity.V2.Access
serviceType string
serviceName string
region string
internalAddress bool
return System.Uri

GetEffectiveRegion() protected method

This implementation returns region if it is non-. If region is , the default region for the specified Access is returned if available; otherwise, this method returns .
protected GetEffectiveRegion ( Access access, string region ) : string
access OpenStack.Services.Identity.V2.Access
region string
return string

RackspaceAuthenticationService() public method

Initializes a new instance of the RackspaceAuthenticationService class with the specified identity service and prepared authentication request.
/// If is . /// -or- /// If is . ///
public RackspaceAuthenticationService ( IIdentityService identityService, AuthenticationRequest authenticationRequest ) : System
identityService IIdentityService /// The instance to use for authentication purposes. ///
authenticationRequest OpenStack.Services.Identity.V2.AuthenticationRequest The authentication request, which contains the credentials to use for /// authenticating with Rackspace Cloud Identity.
return System