diff --git a/src/Tests/Middleware/AuthorizationTests.cs b/src/Tests/Middleware/AuthorizationTests.cs index 6cece03..d94036e 100644 --- a/src/Tests/Middleware/AuthorizationTests.cs +++ b/src/Tests/Middleware/AuthorizationTests.cs @@ -29,6 +29,7 @@ private TestServer CreateServer(Action? configureServices = .AddAutoSchema() .AddErrorInfoProvider(new CustomErrorInfoProvider(this)) .AddSystemTextJson()); + services.AddRouting(); services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme) .AddJwtBearer(options => { options.TokenValidationParameters.ValidateIssuerSigningKey = false;