factset / quart-openapi

Module for Quart to add Flask-RESTPlus like functionality
https://factset.github.io/quart-openapi/
Other
82 stars 22 forks source link

the ability to configure the /openapi.json endpoint adding security to it #21

Closed tjtaill closed 5 years ago

tjtaill commented 5 years ago

For /openapi.json endpoint is there a mechanism to add security to it via something like @jwt_required not sure if that is possible now if so how ?

zeroshade commented 5 years ago

There is not currently a way to do so, but there are a couple ways that it could be modified to allow it. In your opinion, do you think it would be better to have a constructor variable that you could pass a list of decorators for the route, or provide a var that disables automatic creation of the route and have the consumer create the route manually themselves if they want to add stuff to it?

Sorry for the delay in response, I've been sick with the flu for the past week.

tjtaill commented 5 years ago

or provide a var that disables automatic creation of the route and have the consumer create the route manually themselves if they want to add stuff to it? I like this option it is simple low risk and allows people to just return app.__schema__ themselves how they want too. Sorry also for my delayed response was stuggling with azure not a cold

tjtaill commented 5 years ago

Nice work thanks