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.
The Token in Query String section addresses the case where
AddJwtBearer()is called directly:It does not cover the Identity Server case where
AddIdentityServerJwt()is used instead, which is the default for Blazor WebAssembly apps scaffolded with authentication.In this case, calling
AddJwtBearerafterAddIdentityServerJwtdoes not work:Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.