Skip to content

Commit

Permalink
Merge pull request #2533 from dglance/dglance-piazza
Browse files Browse the repository at this point in the history
Fixes for LTI Interface with Piazza
  • Loading branch information
jbau committed May 13, 2013
2 parents 47596a4 + 6603b66 commit 09d2c20
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 10 additions & 2 deletions main/courses/forums/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ class PiazzaAuthForm(forms.Form):
# User Info
user_id = forms.CharField()
lis_person_contact_email_primary = forms.CharField()
lis_person_name_given = forms.CharField()
lis_person_name_family = forms.CharField()
#lis_person_name_given = forms.CharField()
#lis_person_name_family = forms.CharField()
lis_person_name_full = forms.CharField()
lis_person_sourcedid = forms.CharField()
roles = forms.CharField()
resource_link_id = forms.CharField()
resource_link_title = forms.CharField()
resource_link_description = forms.CharField()
tool_consumer_instance_guid = forms.CharField()
tool_consumer_instance_description = forms.CharField()

ext_submit = forms.CharField()

# Class Info
context_id = forms.CharField()
Expand Down
7 changes: 7 additions & 0 deletions main/courses/forums/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ def view(request, course_prefix, course_suffix):
lti_params = {
"lti_message_type": "basic-lti-launch-request",
"lti_version": "LTI-1p0",
"lis_person_sourcedid": "class2go:user",
"resource_link_id": "class2go-forum",
"resource_link_title": "Class2Go",
"resource_link_description": "Class2Go Forum",
"tool_consumer_instance_guid": "class2go guid",
"tool_consumer_instance_description": "Class2Go",
"oauth_callback": "about:blank",
"ext_submit": "Press To Launch"
}
lti_params['user_id'] = request.user.id

Expand Down

0 comments on commit 09d2c20

Please sign in to comment.