コード例 #1
0
ファイル: Server.cs プロジェクト: RainsSoft/HttpWebServer
 /// <summary>
 /// Requests authentication from the user.
 /// </summary>
 /// <param name="realm">Host/domain name that the server hosts.</param>
 /// <remarks>
 /// Used when calculating hashes in Digest authentication.
 /// </remarks>
 /// <seealso cref="DigestAuthentication"/>
 /// <seealso cref="DigestAuthentication.GetHA1"/>
 protected virtual void RequestAuthentication(string realm)
 {
     AuthenticationProvider.CreateChallenge(HttpContext.Current.Response, realm);
 }