C# Class OpenStack.Security.Authentication.PassThroughAuthenticationService

This class defines an IAuthenticationService which passes HTTP requests through unaltered.
Inheritance: IAuthenticationService
显示文件 Open project: crowdy/OpenStack-ConoHa

Public Methods

Method Description
AuthenticateRequestAsync ( HttpRequestMessage requestMessage, CancellationToken cancellationToken ) : Task This authentication service does not perform any authentication operations or modify the requestMessage.
GetBaseAddressAsync ( string serviceType, string serviceName, string region, bool internalAddress, CancellationToken cancellationToken ) : Task The base implementation for this authentication service simply returns BaseAddress.
PassThroughAuthenticationService ( Uri baseAddress ) : System

Initializes a new instance of the PassThroughAuthenticationService class with the specified fixed base address.

Method Details

AuthenticateRequestAsync() public method

This authentication service does not perform any authentication operations or modify the requestMessage.
public AuthenticateRequestAsync ( HttpRequestMessage requestMessage, CancellationToken cancellationToken ) : Task
requestMessage System.Net.Http.HttpRequestMessage
cancellationToken System.Threading.CancellationToken
return Task

GetBaseAddressAsync() public method

The base implementation for this authentication service simply returns BaseAddress.
public GetBaseAddressAsync ( string serviceType, string serviceName, string region, bool internalAddress, CancellationToken cancellationToken ) : Task
serviceType string
serviceName string
region string
internalAddress bool
cancellationToken System.Threading.CancellationToken
return Task

PassThroughAuthenticationService() public method

Initializes a new instance of the PassThroughAuthenticationService class with the specified fixed base address.
/// If is . ///
public PassThroughAuthenticationService ( Uri baseAddress ) : System
baseAddress System.Uri The base address to return from .
return System