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

Auth methods #43

Closed kev11moreno closed 3 years ago

kev11moreno commented 4 years ago

Hi, it's me again, sorry but I'm making experiments with your lib, my question now it's if you have a example for auth methods and at same time expose this to the json and then swagger could read it.

Sorry for my english, it'sn't my first lenguage.

zeroshade commented 4 years ago

I don't currently have any examples for exposing the auth methods to the swagger. But you can utilize the quart before_request hook in order to implement authentication. There are also several examples on there for doing so such as using the https://gitlab.com/pgjones/quart-auth plugin.