Modified HTTP auth for HttpListener class

This commit is contained in:
sta
2014-11-23 11:23:06 +09:00
parent 533ef2090a
commit 5003c10e0c
4 changed files with 18 additions and 24 deletions

View File

@@ -114,7 +114,7 @@ namespace WebSocketSharp.Net.WebSockets
/// </value>
public override bool IsAuthenticated {
get {
return _context.Request.IsAuthenticated;
return _context.User != null;
}
}
@@ -257,7 +257,7 @@ namespace WebSocketSharp.Net.WebSockets
/// Gets the client information (identity, authentication, and security roles).
/// </summary>
/// <value>
/// A <see cref="IPrincipal"/> that represents the client information.
/// A <see cref="IPrincipal"/> instance that represents the client information.
/// </value>
public override IPrincipal User {
get {

View File

@@ -182,7 +182,7 @@ namespace WebSocketSharp.Net.WebSockets
/// Gets the client information (identity, authentication, and security roles).
/// </summary>
/// <value>
/// A <see cref="IPrincipal"/> that represents the client information.
/// A <see cref="IPrincipal"/> instance that represents the client information.
/// </value>
public abstract IPrincipal User { get; }