Connexion Auth Paths Extended
Small connexion extension to add authentication into spec routes
:param auth_all_paths: whether to authenticate not defined paths :type auth_all_paths: bool
And it can be used this way, during app initialization:
connexion_app = FlaskApp( __name__, specification_dir='.', auth_all_paths=True )
But the only routes added to the authentication are the
404 Error route (link) routes, but there are other routes that should also be treated:
The idea of this extension is to apply the default authentication on these routes, without changing the behavior of anything else.
pip install connexion-auth-paths-extd
from connexion.extended.auth_paths_extd import FlaskApp def create_app(): connexion_app = FlaskApp( __name__, specification_dir='.', auth_all_paths=True )
A better exemple is on examples folder.