Authentication Middlewares#

Authentication Middlewares.

class blacksmith.middleware._async.auth.AsyncHTTPAuthorizationMiddleware(scheme: str, value: str)#

Authentication Mechanism based on the header Authorization.

Parameters
  • scheme – the scheme of the mechanism.

  • value – the value that authenticate the user using the scheme.

__init__(scheme: str, value: str)#
headers: Dict[str, str]#
class blacksmith.middleware._async.auth.AsyncHTTPBearerMiddleware(bearer_token: str)#

Authentication Mechanism based on the header Authorization with the Bearer scheme.

Parameters

value – value of the bearer token.

__init__(bearer_token: str)#
headers: Dict[str, str]#