falcon_auth2/getter.py
def load(self, req: Request, *, challenges: Optional[Iterable[str]] = None) -> str:
        """Loads the cookie from the provided request"""
        cookie_value = req.get_cookie_values(self.cookie_name)
        if not cookie_value:
            raise BackendNotApplicable(
                description=f"Missing {self.cookie_name} cookie", challenges=challenges
            )
        if len(cookie_value) > 1:
            raise BackendNotApplicable(
                description=f"Invalid {self.cookie_name} cookie: Multiple value passed",
                challenges=challenges,
            )

        return cookie_value[0]
Loads the cookie from the provided request
Loads the cookie from the provided request
Loads the cookie from the provided request
def load(self, req: Request, *, challenges: Optional[Iterable[str]] = None) -> str:
        cookie_value = req.get_cookie_values(self.cookie_name)
        if not cookie_value:
            raise BackendNotApplicable(
                description=f"Missing {self.cookie_name} cookie", challenges=challenges
            )
        if len(cookie_value) > 1:
            raise BackendNotApplicable(
                description=f"Invalid {self.cookie_name} cookie: Multiple value passed",
                challenges=challenges,
            )
        return cookie_value[0]
def load ( self , req : Request , * , challenges : Optional [ Iterable [ str ] ] = None ) -> str : cookie_value = req . get_cookie_values ( self . cookie_name ) if not cookie_value : raise BackendNotApplicable ( description = f"Missing {self.cookie_name} cookie" , challenges = challenges ) if len ( cookie_value ) > 1 : raise BackendNotApplicable ( description = f"Invalid {self.cookie_name} cookie: Multiple value passed" , challenges = challenges , ) return cookie_value [ 0 ]
Loads the cookie from the provided request
Loads the cookie from the provided request
"""Loads the cookie from the provided request"""
self
req
Request
challenges
Optional[Iterable[str]]