[Modify] Add it

This commit is contained in:
sta 2021-05-16 15:36:47 +09:00
parent 7c86f7635a
commit db2659bd4b

View File

@ -565,6 +565,23 @@ namespace WebSocketSharp.Net
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
#region Internal Methods