/// <summary>
        /// Creates a new <see cref="AzureAuthority"/> with an optional authority host url.
        /// </summary>
        /// <param name="authorityHostUrl">Optional: sets a non-default authority host url.</param>
        public AzureAuthority(string authorityHostUrl = DefaultAuthorityHostUrl)
        {
            Debug.Assert(Uri.IsWellFormedUriString(authorityHostUrl, UriKind.Absolute), "The authorityHostUrl parameter is invalid.");

            AuthorityHostUrl = authorityHostUrl;
            _adalTokenCache = new VsoAdalTokenCache();
        }
Example #2
0
        /// <summary>
        /// Creates a new <see cref="AzureAuthority"/> with an optional authority host url.
        /// </summary>
        /// <param name="authorityHostUrl">Optional: sets a non-default authority host url.</param>
        public AzureAuthority(string authorityHostUrl = DefaultAuthorityHostUrl)
        {
            Debug.Assert(Uri.IsWellFormedUriString(authorityHostUrl, UriKind.Absolute), "The authorityHostUrl parameter is invalid.");

            AuthorityHostUrl = authorityHostUrl;
            _adalTokenCache  = new VsoAdalTokenCache();
        }