C# Class Microsoft.Alm.Authentication.VstsMsaAuthentication

Inheritance: BaseVstsAuthentication, IVstsMsaAuthentication
ファイルを表示 Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Public Methods

Method Description
InteractiveLogon ( TargetUri targetUri, bool requireCompactToken ) : Task

Opens an interactive logon prompt to acquire acquire an authentication token from the Microsoft Live authentication and identity service.

SetCredentials ( TargetUri targetUri, Credential credentials ) : void

Sets credentials for future use with this authentication object.

Not supported.

VstsMsaAuthentication ( VstsTokenScope tokenScope, ICredentialStore personalAccessTokenStore ) : System

Private Methods

Method Description
VstsMsaAuthentication ( ICredentialStore personalAccessTokenStore, ITokenStore vstsIdeTokenCache, IVstsAuthority liveAuthority ) : System

Test constructor which allows for using fake credential stores

Method Details

InteractiveLogon() public method

Opens an interactive logon prompt to acquire acquire an authentication token from the Microsoft Live authentication and identity service.
public InteractiveLogon ( TargetUri targetUri, bool requireCompactToken ) : Task
targetUri TargetUri /// The uniform resource indicator of the resource access tokens are being requested for. ///
requireCompactToken bool /// True if a compact access token is required; false if a standard token is acceptable. ///
return Task

SetCredentials() public method

Sets credentials for future use with this authentication object.
Not supported.
public SetCredentials ( TargetUri targetUri, Credential credentials ) : void
targetUri TargetUri /// The uniform resource indicator of the resource access tokens are being set for. ///
credentials Credential The credentials being set.
return void

VstsMsaAuthentication() public method

public VstsMsaAuthentication ( VstsTokenScope tokenScope, ICredentialStore personalAccessTokenStore ) : System
tokenScope VstsTokenScope
personalAccessTokenStore ICredentialStore
return System