Exemple #1
0
 def __init__(self,
              *,
              scheme_name: Optional[str] = None,
              auto_error: bool = True):
     self.model = HTTPBaseModel(scheme="digest")
     self.scheme_name = scheme_name or self.__class__.__name__
     self.auto_error = auto_error
Exemple #2
0
 def __init__(
     self, *, scheme_name: str = None, realm: str = None, auto_error: bool = True
 ):
     self.model = HTTPBaseModel(scheme="basic")
     self.scheme_name = scheme_name or self.__class__.__name__
     self.realm = realm
     self.auto_error = auto_error
Exemple #3
0
 def __init__(
     self,
     *,
     scheme: str,
     scheme_name: Optional[str] = None,
     description: Optional[str] = None,
     auto_error: bool = True,
 ):
     self.model = HTTPBaseModel(scheme=scheme, description=description)
     self.scheme_name = scheme_name or self.__class__.__name__
     self.auto_error = auto_error
Exemple #4
0
 def __init__(self, *, scheme: str, scheme_name: str = None):
     self.model = HTTPBaseModel(scheme=scheme)
     self.scheme_name = scheme_name or self.__class__.__name__
Exemple #5
0
 def __init__(self, *, scheme_name: str = None, realm: str = None):
     self.model = HTTPBaseModel(scheme="basic")
     self.scheme_name = scheme_name or self.__class__.__name__
     self.realm = realm