示例#1
0
        /// <summary>
        /// Get the initial client token for server
        /// using credentials of user running the proxy server process
        /// </summary>
        /// <param name="serverHostname"></param>
        /// <param name="authScheme"></param>
        /// <param name="requestId"></param>
        /// <returns></returns>
        public static string GetInitialAuthToken(string serverHostname,
                                                 string authScheme, Guid requestId)
        {
            var tokenBytes = WinAuthEndPoint.AcquireInitialSecurityToken(serverHostname, authScheme, requestId);

            return(string.Concat(" ", Convert.ToBase64String(tokenBytes)));
        }
示例#2
0
        /// <summary>
        ///     Get the initial client token for server
        ///     using credentials of user running the proxy server process
        /// </summary>
        /// <param name="serverHostname"></param>
        /// <param name="authScheme"></param>
        /// <param name="data"></param>
        /// <returns></returns>
        public static string GetInitialAuthToken(string serverHostname, string authScheme, InternalDataStore data)
        {
            var tokenBytes = WinAuthEndPoint.AcquireInitialSecurityToken(serverHostname, authScheme, data);

            return(string.Concat(" ", Convert.ToBase64String(tokenBytes)));
        }