kogosoftwarellc / open-api

A Monorepo of various packages to power OpenAPI in node
MIT License
895 stars 237 forks source link

[express-openapi] - request authorisation #667

Open j-zimnowoda opened 4 years ago

j-zimnowoda commented 4 years ago

Hi,

The express-openapi is a great framework that I am using a lot these days.

I am wondering how do you implement request authorisation?

Here are the solutions that I came up so far:

authorization as x-express-openapi-additional-middleware

pros:

cons:

authorization as securityHandler

pros:

cons:

Non mentioned approach fully satisfies me. I am wondering if you have ever faced this issue and if you have some guideline.

Regards