fictive.auth0.ext.werkzeug module¶
A middleware for injecting a bearer token to the Authorizatioin header
Classes
injects a bearer token to the Authorizatioin header |
-
class
fictive.auth0.ext.werkzeug.TokenInjectionMiddleware(app: Callable, key: str, secret_key: str)[source]¶ Bases:
objectinjects a bearer token to the Authorizatioin header
looks for a token in a secure cookie or the query parameters and if found, sets the Authorization header before further processing the request