dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.61k stars 25.3k forks source link

SignalR authentication doesn't explain how to use both jwt and cookie authentication. #15093

Open DanielRBowen opened 5 years ago

DanielRBowen commented 5 years ago

Issue description

It took me a while to figure out how to do cookie website authentication and jwt bearer client authentication at the same time so that both web and .net SignalR client can connect. The least amount the docs can do is change the documentation to explain adding both authentication schemes on the SignalR hub:

 [Authorize(AuthenticationSchemes = "Bearer, Identity.Application")]

The best the docs can do is fix the example SignalR Authentication project to be similar to this

Software versions

.NET Core 3.0


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Brunoporto2702 commented 3 years ago

Hi!

Do you have any updateon this issue?

Cheers