Microsoft.Alm.Authentication.VstsAadAuthentication.VstsAadAuthentication C# (CSharp) Method

VstsAadAuthentication() public method

public VstsAadAuthentication ( System.Guid tenantId, VstsTokenScope tokenScope, ICredentialStore personalAccessTokenStore ) : System
tenantId System.Guid /// The unique identifier for the responsible Azure tenant. /// Use /// to detect the tenant identity and create the authentication object. ///
tokenScope VstsTokenScope The scope of all access tokens acquired by the authority.
personalAccessTokenStore ICredentialStore The secure secret store for storing any personal /// access tokens acquired.
return System
        public VstsAadAuthentication(
            Guid tenantId,
            VstsTokenScope tokenScope,
            ICredentialStore personalAccessTokenStore)
            : base(tokenScope, personalAccessTokenStore)
        {
            if (tenantId == Guid.Empty)
            {
                this.VstsAuthority = new VstsAzureAuthority(AzureAuthority.DefaultAuthorityHostUrl);
            }
            else
            {
                // create an authority host URL in the format of https://login.microsoft.com/12345678-9ABC-DEF0-1234-56789ABCDEF0
                string authorityHost = AzureAuthority.GetAuthorityUrl(tenantId);
                this.VstsAuthority = new VstsAzureAuthority(authorityHost);
            }
        }

Same methods

VstsAadAuthentication::VstsAadAuthentication ( ICredentialStore personalAccessTokenStore, ITokenStore vstsIdeTokenCache, IVstsAuthority vstsAuthority ) : System