falcon_auth2/backends/meta.py
def authenticate(self, attributes: RequestAttributes) -> dict:
        "Authenticates the request and returns the authenticated user."
        try:
            results = self.backend.authenticate(attributes)
            results.setdefault("backend", self.backend)
            if self.on_success:
                _, self.on_success_is_async = call_maybe_async(
                    attributes[4],
                    self.on_success_is_async,
                    "on success",
                    self.on_success,
                    attributes,
                    self.backend,
                    results,
                )
            return results
        except Exception as e:
            if self.on_failure:
                _, self.on_failure_is_async = call_maybe_async(
                    attributes[4],
                    self.on_failure_is_async,
                    "on failure",
                    self.on_failure,
                    attributes,
                    self.backend,
                    e,
                )
            raise
Authenticates the request and returns the authenticated user.
Authenticates the request and returns the authenticated user.
Authenticates the request and returns the authenticated user .
def authenticate(self, attributes: RequestAttributes) -> dict:
        try:
            results = self.backend.authenticate(attributes)
            results.setdefault("backend", self.backend)
            if self.on_success:
                _, self.on_success_is_async = call_maybe_async(
                    attributes[4],
                    self.on_success_is_async,
                    "on success",
                    self.on_success,
                    attributes,
                    self.backend,
                    results,
                )
            return results
        except Exception as e:
            if self.on_failure:
                _, self.on_failure_is_async = call_maybe_async(
                    attributes[4],
                    self.on_failure_is_async,
                    "on failure",
                    self.on_failure,
                    attributes,
                    self.backend,
                    e,
                )
            raise
def authenticate ( self , attributes : RequestAttributes ) -> dict : try : results = self . backend . authenticate ( attributes ) results . setdefault ( "backend" , self . backend ) if self . on_success : _ , self . on_success_is_async = call_maybe_async ( attributes [ 4 ] , self . on_success_is_async , "on success" , self . on_success , attributes , self . backend , results , ) return results except Exception as e : if self . on_failure : _ , self . on_failure_is_async = call_maybe_async ( attributes [ 4 ] , self . on_failure_is_async , "on failure" , self . on_failure , attributes , self . backend , e , ) raise
Authenticates the request and returns the authenticated user.
Authenticates the request and returns the authenticated user .
"Authenticates the request and returns the authenticated user."
self
attributes
RequestAttributes