File: AuthorizedHub.cs | Web Access |
Project: src\src\SignalR\clients\ts\FunctionalTests\SignalR.Client.FunctionalTestApp.csproj (SignalR.Client.FunctionalTestApp) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; namespace FunctionalTests; [Authorize(JwtBearerDefaults.AuthenticationScheme)] public class HubWithAuthorization : Hub { public string Echo(string message) => message; } |