khellang / Middleware

Various ASP.NET Core middleware
MIT License
811 stars 112 forks source link

Add .NET 8 support for Authentication.JwtBearer.Google #201

Open anssiv opened 12 months ago

anssiv commented 12 months ago

In .NET 8 there is a breaking change that the Authentication.JwtBearer.Google is affected by.

At the very least, you should include documentation specifying that UseSecurityTokenValidators=true is now a required configuration.

.AddJwtBearer(options => 
{
    options.UseSecurityTokenValidators = true;
    options.UseGoogle("...");
});
khellang commented 12 months ago

Ah, thanks for the heads up! I'll push a new version as soon as possible. Wanna send a PR? 😇