def __call__(self, request, server):
        """
        Checks if the incoming request can be handled by the
        ResourceOwnerGrantHandler and returns an instance of it.
        """
        if request.post_param("grant_type") != self.grant_type:
            return None

        return ResourceOwnerGrantHandler(
            access_token_store=server.access_token_store,
            client_authenticator=server.client_authenticator,
            scope_handler=self._create_scope_handler(),
            site_adapter=self.site_adapter,
            token_generator=server.token_generator,
            unique_token=self.unique_token)
def __call__ ( self , request , server ) : if request . post_param ( "grant_type" ) != self . grant_type : return None return ResourceOwnerGrantHandler ( access_token_store = server . access_token_store , client_authenticator = server . client_authenticator , scope_handler = self . _create_scope_handler ( ) , site_adapter = self . site_adapter , token_generator = server . token_generator , unique_token = self . unique_token )
Checks if the incoming request can be handled by the
        ResourceOwnerGrantHandler and returns an instance of it.