def setUp(self): super().setUp() self.lti_launch_url = 'lti_launch_url' self.oauth_key = 'fake_consumer_key' self.oauth_secret = 'fake_signature' self.lti_consumer = LtiConsumer1p1(self.lti_launch_url, self.oauth_key, self.oauth_secret)
def _get_lti_1p1_consumer(self): """ Return a class of LTI 1.1 consumer. """ # If LTI configuration is stored in the XBlock. if self.config_store == self.CONFIG_ON_XBLOCK: key, secret = self.block.lti_provider_key_secret return LtiConsumer1p1(self.block.launch_url, key, secret) # There's no configuration stored locally, so throw # NotImplemented. raise NotImplementedError
def _get_lti_1p1_consumer(self): """ Return a class of LTI 1.1 consumer. """ # If LTI configuration is stored in the XBlock. if self.config_store == self.CONFIG_ON_XBLOCK: key, secret = self.block.lti_provider_key_secret launch_url = self.block.launch_url else: key = self.lti_1p1_client_key secret = self.lti_1p1_client_secret launch_url = self.lti_1p1_launch_url return LtiConsumer1p1(launch_url, key, secret)