Modified HTTP auth for HttpListener class
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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; }
|
||||
|
||||
|
Reference in New Issue
Block a user