.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.
.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
insteadAspNetCoreOperationSecurityScopeProcessor
. Not sure if there's a problem withAspNetCoreOperationSecurityScopeProcessor
or a documentation change is needed.