'Retrieves LTI consumer details from database'

@classmethod
def load_lti_consumer(cls, lti_consumer_key):

    from .models import LTIProviderConfig
    provider_config = LTIProviderConfig.current(lti_consumer_key)
    if (provider_config and provider_config.enabled_for_current_site):
        return (provider_config.enabled_for_current_site, provider_config.get_lti_consumer_secret(), provider_config.lti_max_timestamp_age)
    else:
        return (False, '', (-1))
