[Modify] Polish it
This commit is contained in:
parent
f4d76318f6
commit
2a72bef65d
@ -484,13 +484,13 @@ namespace WebSocketSharp.Server
|
||||
/// authenticate a client.
|
||||
/// </summary>
|
||||
/// <value>
|
||||
/// A <c>Func<<see cref="IIdentity"/>, <see cref="NetworkCredential"/>></c> delegate that
|
||||
/// references the method(s) used to find the credentials. The default value is a function that
|
||||
/// only returns <see langword="null"/>.
|
||||
/// A <c>Func<<see cref="IIdentity"/>, <see cref="NetworkCredential"/>></c> delegate
|
||||
/// that references the method(s) used to find the credentials. The default value is
|
||||
/// <see langword="null"/>.
|
||||
/// </value>
|
||||
public Func<IIdentity, NetworkCredential> UserCredentialsFinder {
|
||||
get {
|
||||
return _credFinder ?? (_credFinder = identity => null);
|
||||
return _credFinder;
|
||||
}
|
||||
|
||||
set {
|
||||
@ -620,7 +620,7 @@ namespace WebSocketSharp.Server
|
||||
state => {
|
||||
try {
|
||||
var ctx = cl.GetWebSocketContext (null, _secure, _sslConfig, _logger);
|
||||
if (!ctx.Authenticate (_authSchemes, getRealm (), UserCredentialsFinder))
|
||||
if (!ctx.Authenticate (_authSchemes, getRealm (), _credFinder))
|
||||
return;
|
||||
|
||||
processRequest (ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user