Skip to content

SignalR Core Auth - Token in Query String section does not address AddIdentityServerJwt() #17751

@caleblloyd

Description

@caleblloyd

The Token in Query String section addresses the case where AddJwtBearer() is called directly:

 services.AddAuthentication()
        .AddJwtBearer(options =>//options from documentation);

It does not cover the Identity Server case where AddIdentityServerJwt() is used instead, which is the default for Blazor WebAssembly apps scaffolded with authentication.

 services.AddAuthentication()
        .AddIdentityServerJwt();

In this case, calling AddJwtBearer after AddIdentityServerJwt does not work:

// this does not work
services.AddAuthentication()
                .AddIdentityServerJwt()
                .AddJwtBearer(options =>//options from documentation);

Document Details

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

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions