C# Class Tailspin.Surveys.Web.Security.ClientCredentialService

Creates and caches an instance of Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential.
Inheritance: ICredentialService
显示文件 Open project: Azure-Samples/guidance-identity-management-for-multitenant-apps

Public Methods

Method Description
ClientCredentialService ( IOptions options ) : System.Threading.Tasks

Initializes a new instance of the Tailspin.Surveys.Web.Security.ClientCredentialService.

GetCredentialsAsync ( ) : Task

Returns the cached instance of Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential.

Method Details

ClientCredentialService() public method

Initializes a new instance of the Tailspin.Surveys.Web.Security.ClientCredentialService.
public ClientCredentialService ( IOptions options ) : System.Threading.Tasks
options IOptions The current application configuration options.
return System.Threading.Tasks

GetCredentialsAsync() public method

Returns the cached instance of Microsoft.IdentityModel.Clients.ActiveDirectory.ClientCredential.
public GetCredentialsAsync ( ) : Task
return Task