C# 클래스 Microsoft.Alm.Authentication.GitHubAuthentication

Facilitates GitHub simple and two-factor authentication
상속: BaseAuthentication, IGitHubAuthentication
파일 보기 프로젝트 열기: Microsoft/Git-Credential-Manager-for-Windows 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
TokenScope GitHubTokenScope

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
DeleteCredentials ( TargetUri targetUri ) : void

Deletes a Credential from the storage used by the authentication object.

GetAuthentication ( TargetUri targetUri, GitHubTokenScope tokenScope, ICredentialStore personalAccessTokenStore, AcquireCredentialsDelegate acquireCredentialsCallback, AcquireAuthenticationCodeDelegate acquireAuthenticationCodeCallback, AuthenticationResultDelegate authenticationResultCallback ) : BaseAuthentication

Gets a configured authentication object for 'github.com'.

GetCredentials ( TargetUri targetUri ) : Credential

Gets a Credential from the storage used by the authentication object.

GitHubAuthentication ( GitHubTokenScope tokenScope, ICredentialStore personalAccessTokenStore, AcquireCredentialsDelegate acquireCredentialsCallback, AcquireAuthenticationCodeDelegate acquireAuthenticationCodeCallback, AuthenticationResultDelegate authenticationResultCallback ) : System

InteractiveLogon ( TargetUri targetUri ) : Task

Tokens acquired are stored in the secure secret store provided during initialization.

NoninteractiveLogonWithCredentials ( TargetUri targetUri, string username, string password, string authenticationCode = null ) : Task

Tokens acquired are stored in the secure secret store provided during initialization.

SetCredentials ( TargetUri targetUri, Credential credentials ) : void

Sets a Credential in the storage used by the authentication object.

ValidateCredentials ( TargetUri targetUri, Credential credentials ) : Task

Validates that a set of credentials grants access to the target resource.

메소드 상세

DeleteCredentials() 공개 메소드

Deletes a Credential from the storage used by the authentication object.
public DeleteCredentials ( TargetUri targetUri ) : void
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
리턴 void

GetAuthentication() 공개 정적인 메소드

Gets a configured authentication object for 'github.com'.
public static GetAuthentication ( TargetUri targetUri, GitHubTokenScope tokenScope, ICredentialStore personalAccessTokenStore, AcquireCredentialsDelegate acquireCredentialsCallback, AcquireAuthenticationCodeDelegate acquireAuthenticationCodeCallback, AuthenticationResultDelegate authenticationResultCallback ) : BaseAuthentication
targetUri TargetUri The uniform resource indicator of the resource which requires /// authentication.
tokenScope GitHubTokenScope The desired scope of any personal access tokens acquired.
personalAccessTokenStore ICredentialStore A secure secret store for any personal access /// tokens acquired.
acquireCredentialsCallback AcquireCredentialsDelegate
acquireAuthenticationCodeCallback AcquireAuthenticationCodeDelegate
authenticationResultCallback AuthenticationResultDelegate
리턴 BaseAuthentication

GetCredentials() 공개 메소드

Gets a Credential from the storage used by the authentication object.
public GetCredentials ( TargetUri targetUri ) : Credential
targetUri TargetUri /// The uniform resource indicator used to uniquely identity the credentials. ///
리턴 Credential

GitHubAuthentication() 공개 메소드

public GitHubAuthentication ( GitHubTokenScope tokenScope, ICredentialStore personalAccessTokenStore, AcquireCredentialsDelegate acquireCredentialsCallback, AcquireAuthenticationCodeDelegate acquireAuthenticationCodeCallback, AuthenticationResultDelegate authenticationResultCallback ) : System
tokenScope GitHubTokenScope
personalAccessTokenStore ICredentialStore
acquireCredentialsCallback AcquireCredentialsDelegate
acquireAuthenticationCodeCallback AcquireAuthenticationCodeDelegate
authenticationResultCallback AuthenticationResultDelegate
리턴 System

InteractiveLogon() 공개 메소드

Tokens acquired are stored in the secure secret store provided during initialization.

public InteractiveLogon ( TargetUri targetUri ) : Task
targetUri TargetUri The unique identifier for the resource for which access is to /// be acquired.
리턴 Task

NoninteractiveLogonWithCredentials() 공개 메소드

Tokens acquired are stored in the secure secret store provided during initialization.

public NoninteractiveLogonWithCredentials ( TargetUri targetUri, string username, string password, string authenticationCode = null ) : Task
targetUri TargetUri The unique identifier for the resource for which access is to /// be acquired.
username string The username of the account for which access is to be acquired.
password string The password of the account for which access is to be acquired.
authenticationCode string The two-factor authentication code for use in access acquisition.
리턴 Task

SetCredentials() 공개 메소드

Sets a Credential in the storage used by the authentication object.
public SetCredentials ( TargetUri targetUri, Credential credentials ) : void
targetUri TargetUri /// The uniform resource indicator used to uniquely identify the credentials. ///
credentials Credential The value to be stored.
리턴 void

ValidateCredentials() 공개 메소드

Validates that a set of credentials grants access to the target resource.
public ValidateCredentials ( TargetUri targetUri, Credential credentials ) : Task
targetUri TargetUri The unique identifier for the resource for which credentials /// are being validated against.
credentials Credential The credentials to validate.
리턴 Task

프로퍼티 상세

TokenScope 공개적으로 프로퍼티

The desired scope of the authentication token to be requested.
public GitHubTokenScope,Microsoft.Alm.Authentication TokenScope
리턴 GitHubTokenScope