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

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