[Modify] Add it
This commit is contained in:
parent
7c86f7635a
commit
db2659bd4b
@ -565,6 +565,23 @@ namespace WebSocketSharp.Net
|
|||||||
return realm != null && realm.Length > 0 ? realm : _defaultRealm;
|
return realm != null && realm.Length > 0 ? realm : _defaultRealm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private AuthenticationSchemes selectAuthenticationScheme (
|
||||||
|
HttpListenerRequest request
|
||||||
|
)
|
||||||
|
{
|
||||||
|
var selector = _authSchemeSelector;
|
||||||
|
|
||||||
|
if (selector == null)
|
||||||
|
return _authSchemes;
|
||||||
|
|
||||||
|
try {
|
||||||
|
return selector (request);
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
return AuthenticationSchemes.None;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Internal Methods
|
#region Internal Methods
|
||||||
|
Loading…
Reference in New Issue
Block a user