Метод | Описание | |
---|---|---|
AuthenticateRequestAsync ( |
The base implementation of this authentication client sets the |
|
GetBaseAddressAsync ( string serviceType, string serviceName, string region, bool internalAddress, |
The base implementation calls AuthenticateAsync to authenticate with the OpenStack Identity Service V2 if necessary, followed by calling GetBaseAddressImpl to locate a service endpoint within the user's service catalog. |
|
IdentityV2AuthenticationService ( IIdentityService identityService, |
Initializes a new instance of the IdentityV2AuthenticationService class with the specified OpenStack Identity Service V2 client and prepared authentication request.
|
Метод | Описание | |
---|---|---|
AuthenticateAsync ( |
Authenticates the credentials provided in AuthenticationRequest with the OpenStack Identity Service V2. This method caches the authentication result, and returns the cached result of a previous authentication request when possible to avoid unnecessary calls to the Identity API. If a cached authentication result is available but has either expired or will expire soon (see ExpirationOverlap), the cached result is discarded and the credentials are re-authenticated with the Identity Service. |
|
FilterBaseAddress ( |
This method allows an authentication service to adjust the raw URI provided as a base address in the service catalog prior to its use in resolving HTTP API calls. The default implementation ensures that if the base address is an absolute URI, then it includes a trailing |
|
GetBaseAddressImpl ( |
This method provides the core implementation of GetBaseAddressAsync after the OpenStack.Services.Identity.V2.Access details are obtained from the Identity Service.
|
|
GetEffectiveRegion ( |
Gets the effective region to use for locating services in the service catalog, for the specified OpenStack.Services.Identity.V2.Access information and preferred region. The default implementation simply returns region. Specific vendors may extend this functionality to provide a default value or other region selections as appropriate for their users and service offerings. |
protected AuthenticateAsync ( |
||
cancellationToken | The |
|
Результат | Task |
public AuthenticateRequestAsync ( |
||
requestMessage | ||
cancellationToken | ||
Результат | Task |
protected FilterBaseAddress ( |
||
baseAddress | The base address for a service as provided in the service catalog. | |
Результат |
public GetBaseAddressAsync ( string serviceType, string serviceName, string region, bool internalAddress, |
||
serviceType | string | |
serviceName | string | |
region | string | |
internalAddress | bool | |
cancellationToken | ||
Результат | Task |
protected GetBaseAddressImpl ( |
||
access | An |
|
serviceType | string | The service type to locate. |
serviceName | string | The preferred name of the service. |
region | string | The preferred region for the service. This method calls
/// |
internalAddress | bool |
/// |
Результат |
protected GetEffectiveRegion ( |
||
access | The |
|
region | string | The preferred region, as specified in the call to
/// |
Результат | string |
public IdentityV2AuthenticationService ( IIdentityService identityService, |
||
identityService | IIdentityService | The |
authenticationRequest | The authentication request, which contains the credentials to use for /// authenticating with the OpenStack Identity Service V2. | |
Результат | System |