Skip to content

Instantly share code, notes, and snippets.

@btucker
Last active December 10, 2015 23:08
Show Gist options
  • Save btucker/4506704 to your computer and use it in GitHub Desktop.
Save btucker/4506704 to your computer and use it in GitHub Desktop.
dscourse <-> CANLEAD LTI
<form action='http://example.com/shiva/lti/receive.php' encType='application/x-www-form-urlencoded'>
<input name="oauth_consumer_key" type="hidden" value="key" />
<input name="oauth_signature_method" type="hidden" value="HMAC-SHA1" />
<input name="oauth_timestamp" type="hidden" value="1357860362" />
<input name="oauth_nonce" type="hidden" value="bwXOUxuuT2FV2VZ8EIbPqu7TwVetdgXigF30JmoPXrs" />
<input name="oauth_version" type="hidden" value="1.0" />
<input name="context_id" type="hidden" value="13" />
<input name="context_title" type="hidden" value=" Middle School Math (Master)" />
<input name="launch_presentation_return_url" type="hidden" value="http://uva-canlead.dev/modules/13" />
<input name="lis_person_contact_email_primary" type="hidden" value="ben@btucker.net" />
<input name="lis_person_name_family" type="hidden" value="Adams" />
<input name="lis_person_name_given" type="hidden" value="John" />
<input name="custom_person_image_url" type="hidden" value="http://example.com/images.png" />
<input name="lti_message_type" type="hidden" value="basic-lti-launch-request" />
<input name="lti_version" type="hidden" value="LTI-1.0" />
<input name="resource_link_id" type="hidden" value="http://uva-canlead.dev/modules/13" />
<input name="roles" type="hidden" value="learner" />
<input name="tool_consumer_info_product_family_code" type="hidden" value="CANLEAD" />
<input name="user_id" type="hidden" value="ben@example.com" />
<input name="oauth_signature" type="hidden" value="jcSe+NMP9vLYVlACvCcql8vN2rs=" />
<input name="commit" type="submit" value="Launch" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment