falcon_auth2/backends/base.py
def authenticate(self, attributes: RequestAttributes) -> dict:
        "Authenticates the request and returns the authenticated user."
        is_async = attributes[4]
        if is_async and not self.getter.async_calls_sync_load:
            auth_data = await_(self.getter.load_async(attributes[0], challenges=self.challenges))
        else:
            auth_data = self.getter.load(attributes[0], challenges=self.challenges)
        result = {"user": self.load_user(attributes, auth_data)}
        if self.payload_key is not None:
            result[self.payload_key] = auth_data
        return result
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:
        is_async = attributes[4]
        if is_async and not self.getter.async_calls_sync_load:
            auth_data = await_(self.getter.load_async(attributes[0], challenges=self.challenges))
        else:
            auth_data = self.getter.load(attributes[0], challenges=self.challenges)
        result = {"user": self.load_user(attributes, auth_data)}
        if self.payload_key is not None:
            result[self.payload_key] = auth_data
        return result
def authenticate ( self , attributes : RequestAttributes ) -> dict : is_async = attributes [ 4 ] if is_async and not self . getter . async_calls_sync_load : auth_data = await_ ( self . getter . load_async ( attributes [ 0 ] , challenges = self . challenges ) ) else : auth_data = self . getter . load ( attributes [ 0 ] , challenges = self . challenges ) result = { "user" : self . load_user ( attributes , auth_data ) } if self . payload_key is not None : result [ self . payload_key ] = auth_data return result
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