falcon_auth2/middleware.py
def _get_auth_settings(self, resource: Any) -> Tuple[bool, frozenset, AuthBackend]:
        "Returns a tuple with the configuration to use for this resource."
        auth_settings = getattr(resource, "auth", None)
        if auth_settings:
            return (
                auth_settings.get("auth_disabled", False),
                auth_settings.get("exempt_methods", self.exempt_methods),
                auth_settings.get("backend", self.backend),
            )
        return False, self.exempt_methods, self.backend
Returns a tuple with the configuration to use for this resource.
Returns a tuple with the configuration to use for this resource.
Returns a tuple with the configuration to use for this resource .
def _get_auth_settings(self, resource: Any) -> Tuple[bool, frozenset, AuthBackend]:
        auth_settings = getattr(resource, "auth", None)
        if auth_settings:
            return (
                auth_settings.get("auth_disabled", False),
                auth_settings.get("exempt_methods", self.exempt_methods),
                auth_settings.get("backend", self.backend),
            )
        return False, self.exempt_methods, self.backend
def _get_auth_settings ( self , resource : Any ) -> Tuple [ bool , frozenset , AuthBackend ] : auth_settings = getattr ( resource , "auth" , None ) if auth_settings : return ( auth_settings . get ( "auth_disabled" , False ) , auth_settings . get ( "exempt_methods" , self . exempt_methods ) , auth_settings . get ( "backend" , self . backend ) , ) return False , self . exempt_methods , self . backend
Returns a tuple with the configuration to use for this resource.
Returns a tuple with the configuration to use for this resource .
"Returns a tuple with the configuration to use for this resource."
self
resource
Any