RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.61k stars 1.22k forks source link

AspNetCoreOperationSecurityScopeProcessor doesn't work #4908

Open Leon99 opened 4 weeks ago

Leon99 commented 4 weeks ago

.NET 8, NSwag 14.0.7. Tried to follow https://github.com/RicoSuter/NSwag/wiki/AspNetCore-Middleware#add-oauth2-authentication-openapi-3 but couldn't make Swagger UI to pass the authorization header. It started to work after switching to OperationSecurityScopeProcessor instead AspNetCoreOperationSecurityScopeProcessor. Not sure if there's a problem with AspNetCoreOperationSecurityScopeProcessor or a documentation change is needed.