-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi.
I have a SignalR client configured with UseDefaultCredentials:
var hubConnection = new HubConnectionBuilder()
.WithUrl(newHubUri, options =>
{
options.UseDefaultCredentials = true;
})
.Build();
The SignalR hub server is configured to use Windows authentication:
// other startup code
services.AddAuthentication(NegotiateDefaults.AuthenticationScheme)
.AddNegotiate();
// other startup code
app.UseAuthentication();
app.UseAuthorization();
app.MapHub<MyHub>("/my-hub");
app.UseSignalRHubSpecification();
app.UseSignalRHubDevelopmentUI();
await app.RunAsync();
The SignalR hub is also decorated with [Authorize].
When I use my client to call the SignalR hub, the SignalR hub can successfully retrieve the WindowsIdentity:
var httpContext = this.Context.GetHttpContext();
var windowsIdentity = (WindowsIdentity)httpContext.User.Identity;
However, TypedSignalR.Client.DevTools does not seem to support Windows authentication.
The UI correctly detects authorization is required.
However, it requires a JWT.
I expected to be able to use Windows authentication without having to supply a JWT.
Thank you.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels