You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(question) Isn't there some way for the documentation generated to understand that all routes, except for some informed ones, are protected by authentication? For example, in my application I am using a middleware.
app.wsgi_app = AuthMiddleware(app.wsgi_app)
Therefore, the documentation does not understand that the routes are protected by authentication. I would have to put the @authenticate() annotation on all routes. Isn't there any way to recognize the middleware?
The text was updated successfully, but these errors were encountered:
No, there is currently no way to add authentication to all routes. Normally this isn't what you want, there is always routes that are exempt, so if this feature was added you would need to have an exempt list.
Another option you may consider is creating an "authenticated_route" decorator that combines Flask's route with APIFairy's authenticate.
(question) Isn't there some way for the documentation generated to understand that all routes, except for some informed ones, are protected by authentication? For example, in my application I am using a middleware.
app.wsgi_app = AuthMiddleware(app.wsgi_app)
Therefore, the documentation does not understand that the routes are protected by authentication. I would have to put the
@authenticate()
annotation on all routes. Isn't there any way to recognize the middleware?The text was updated successfully, but these errors were encountered: