In documentation present good sample of authorization middleware. But this sample don't work in Swagger UI because `Authorization` header not used. Internet research says It must be defined as a [security scheme](https://github.com/swagger-api/swagger-core/wiki/Swagger-2.X---Annotations#security-annotations), not a header parameter.
In documentation present good sample of authorization middleware.
But this sample don't work in Swagger UI because
Authorizationheader not used.Internet research says It must be defined as a security scheme, not a header parameter.