'Is this provider being used for the specified pipeline?'

def is_active_for_pipeline(self, pipeline):

    try:
        return ((self.backend_name == pipeline['backend']) and (self.lti_consumer_key == pipeline['kwargs']['response'][LTI_PARAMS_KEY]['oauth_consumer_key']))
    except KeyError:
        return False
