private IEnumerable <Claim> BuildClaims(HttpContext context) { // Make sticky mode required if detect using blazor var mode = _blazorDetector.IsBlazor(_hubName) ? ServerStickyMode.Required : _mode; var userId = _userIdProvider.GetUserId(new ServiceHubConnectionContext(context)); return(ClaimsUtility.BuildJwtClaims(context.User, userId, GetClaimsProvider(context), _serverName, mode, _enableDetailedErrors, _endpointsCount, _maxPollInterval, IsDiagnosticClient(context), _customHandshakeTimeout).ToList()); }
private IEnumerable <Claim> BuildClaims(HttpContext context) { var userId = _userIdProvider.GetUserId(new ServiceHubConnectionContext(context)); return(ClaimsUtility.BuildJwtClaims(context.User, userId, GetClaimsProvider(context), _serverName, _mode, _enableDetailedErrors, _endpointsCount).ToList()); }
private IEnumerable <Claim> BuildClaims(HttpContext context) { var userId = _userIdProvider.GetUserId(new ServiceHubConnectionContext(context)); return(ClaimsUtility.BuildJwtClaims(context.User, userId, GetClaimsProvider(context)).ToList()); }