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

Base functionality for performing authentication operations against Visual Studio Online.
상속: BaseAuthentication
파일 보기 프로젝트 열기: Microsoft/Git-Credential-Manager-for-Windows

공개 프로퍼티들

프로퍼티 타입 설명
ClientId string
Resource string
TokenScope VstsTokenScope

Private Properties

프로퍼티 타입 설명
BaseVstsAuthentication System

공개 메소드들

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

Deletes a set of stored credentials by their target resource.

DetectAuthority ( TargetUri targetUri, System.Guid &tenantId ) : bool

Detects the backing authority of the end-point.

GetAuthentication ( TargetUri targetUri, VstsTokenScope scope, ICredentialStore personalAccessTokenStore ) : BaseAuthentication

Creates a new authentication broker based for the specified resource.

GetCredentials ( TargetUri targetUri ) : Credential

Attempts to get a set of credentials from storage by their target resource.

ValidateCredentials ( TargetUri targetUri, Credential credentials ) : Task

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

보호된 메소드들

메소드 설명
BaseVstsAuthentication ( VstsTokenScope tokenScope, ICredentialStore personalAccessTokenStore ) : System
GeneratePersonalAccessToken ( TargetUri targetUri, Token accessToken, bool requestCompactToken ) : Task

Generates a "personal access token" or service specific, usage resticted access token.

비공개 메소드들

메소드 설명
BaseVstsAuthentication ( ICredentialStore personalAccessTokenStore, ITokenStore vstsIdeTokenCache, IVstsAuthority vstsAuthority ) : System

메소드 상세

BaseVstsAuthentication() 보호된 메소드

protected BaseVstsAuthentication ( VstsTokenScope tokenScope, ICredentialStore personalAccessTokenStore ) : System
tokenScope VstsTokenScope
personalAccessTokenStore ICredentialStore
리턴 System

DeleteCredentials() 공개 메소드

Deletes a set of stored credentials by their target resource.
public DeleteCredentials ( TargetUri targetUri ) : void
targetUri TargetUri The 'key' by which to identify credentials.
리턴 void

DetectAuthority() 공개 정적인 메소드

Detects the backing authority of the end-point.
public static DetectAuthority ( TargetUri targetUri, System.Guid &tenantId ) : bool
targetUri TargetUri The resource which the authority protects.
tenantId System.Guid The identity of the authority tenant; otherwise.
리턴 bool

GeneratePersonalAccessToken() 보호된 메소드

Generates a "personal access token" or service specific, usage resticted access token.
protected GeneratePersonalAccessToken ( TargetUri targetUri, Token accessToken, bool requestCompactToken ) : Task
targetUri TargetUri The target resource for which to acquire the personal access /// token for.
accessToken Token Azure Directory access token with privileges to grant access /// to the target resource.
requestCompactToken bool Generates a compact token if ; /// generates a self describing token if .
리턴 Task

GetAuthentication() 공개 정적인 메소드

Creates a new authentication broker based for the specified resource.
public static GetAuthentication ( TargetUri targetUri, VstsTokenScope scope, ICredentialStore personalAccessTokenStore ) : BaseAuthentication
targetUri TargetUri The resource for which authentication is being requested.
scope VstsTokenScope The scope of the access being requested.
personalAccessTokenStore ICredentialStore Storage container for personal access token secrets.
리턴 BaseAuthentication

GetCredentials() 공개 메소드

Attempts to get a set of credentials from storage by their target resource.
public GetCredentials ( TargetUri targetUri ) : Credential
targetUri TargetUri The 'key' by which to identify credentials.
리턴 Credential

ValidateCredentials() 공개 메소드

Validates that a set of credentials grants access to the target resource.
public ValidateCredentials ( TargetUri targetUri, Credential credentials ) : Task
targetUri TargetUri The target resource to validate against.
credentials Credential The credentials to validate.
리턴 Task

프로퍼티 상세

ClientId 공개적으로 프로퍼티

The application client identity by which access will be requested.
public string ClientId
리턴 string

Resource 공개적으로 프로퍼티

The Azure resource for which access will be requested.
public string Resource
리턴 string

TokenScope 공개적으로 프로퍼티

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