We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AuthenticateResult
IAuthenticateResultFeature
null
1 parent fb60e1c commit fa15318Copy full SHA for fa15318
src/Microsoft.Azure.SignalR/HubHost/NegotiateHandler.cs
@@ -138,7 +138,7 @@ private IEnumerable<Claim> BuildClaims(HttpContext context)
138
#if NET6_0_OR_GREATER
139
closeOnAuthenticationExpiration = _dispatcherOptions.CloseOnAuthenticationExpiration;
140
var authResultFeature = context.Features.Get<IAuthenticateResultFeature>();
141
- if (authResultFeature != null && authResultFeature.AuthenticateResult.Succeeded)
+ if (authResultFeature != null && authResultFeature.AuthenticateResult != null && authResultFeature.AuthenticateResult.Succeeded)
142
{
143
authenticationExpiresOn = authResultFeature.AuthenticateResult.Properties.ExpiresUtc;
144
}
0 commit comments