mit-teaching-systems-lab / discourse-edx-lti Goto Github PK
View Code? Open in Web Editor NEWDiscourse plugin for using Discourse as a discussion forum in EdX courses
Home Page: http://tsl.mit.edu
License: MIT License
Discourse plugin for using Discourse as a discussion forum in EdX courses
Home Page: http://tsl.mit.edu
License: MIT License
Hi,
I am looking to adapt what you have created here and build a more generic LTI tool to make it available from other LMS tools. I can get the launch to work, but get the "oops this page does not exist" errors.
What I am trying to figure out from the code is how the omniauth is triggered and on what side? Is that triggered from edX or from discourse and would discourse therefore need omniauth plugin installed as a requirement?
Dan
To turn off this plugin, each & every I have to remove it from my app.yml
and rebuild.
Please add a plugin setting to enable/disable the whole plugin.
Hello!
I tried to set up discourse as edx forum and faced next problem: while oauth goes well and right page is returned from discourse in response, it is not rendered in lms with error "Load denied by X-Frame-Options: ... does not permit cross-origin framing."
As I see in edx course, Discourse is not intended to be rendered into IFrame, moreover, it is not supported by Discourse itself.
Could this error be due the wrong version lti-consumer? I use eucalyptus.1 edx instance with 1.0.9 lti-consumer.
Could you specify which edx release and lti-consumer are required/ were tested?
If an user changes his username or email associated with their edx account, then he cannot access Discourse because of this.
Wouldn't it be possible to update his account instead of throwing an error ?
Hey,
This looks great! Do you have any reports from past/current courses about how using Discourse went?
We were chatting about the next run of our MOOC and said "I wonder if we could use Discourse...", so I'm pleased to see MIT has already solved the problem, as usual! :)
Hi,
Since Discourse updated to v2.4.0, the custom url parameter to redirect users after login doesn't seems to work anymore.
Here's the POST request parameters :
resource_link_id=e09c86b8406648b2bc87dc611ff7e8f1
[email protected]
user_id=88c71f99e4a0e0474b5b130359f680ea
roles=Instructor
oauth_nonce=40036430943264592951584955216
oauth_timestamp=1584955216
lis_result_sourcedid=course-b2bc87dc611ff7e8f1:88c71f99e4a0e0474b5b130359f680ea
context_id=course-v1
oauth_consumer_key=6f045120e1d051a592233ae4f6018ae2a5b81e650ba2d037e693e8b3f4c2aa
lti_version=LTI-1p0
oauth_signature_method=HMAC-SHA1
custom_url=https://my-forum.com/mooc/c/module-1-category
oauth_version=1.0
launch_presentation_return_url
oauth_signature=lLUu3C9m3KTIj/AGeRddKkZdys8=
lis_person_sourcedid=brospars
lti_message_type=basic-lti-launch-request
oauth_callback=about:blank
The response is a 302 and contains location=https://my-forum.com/
instead of the expected location=https://my-forum.com/mooc/c/module-1-category
I downgraded to v2.3.0 and everything works as expected. I've searched in the changelog but no luck. Any ideas ?
There is a “400 bad request” error when opening Discourse page from LIT component in my course that run within my Open edX site.
Version of Discourse: Open edx version: Ginkgo ,Discourse version: v1.9.0.beta14
3 relevant details are as following:
Detail 1/3: Screenshot of the error
Detail 2/3: the code line where I think the program stopped
Detail 3/3: The problematic request.params is printed as following
{"resource_link_id"=>"pd.lh4cs.org-acb63f37ee1945b3b32d5a8127696039", "lis_person_contact_email_primary"=>"[email protected]", "user_id"=>"8c7c5a3defcc8df089b41bfd3ad1d695", "roles"=>"Student", "oauth_nonce"=>"88971414880083225381511140253", "oauth_timestamp"=>"1511140253", "lis_result_sourcedid"=>"course-v1%3AUVa%2Blh4cs01%2B2018_T1:pd.lh4cs.org-acb63f37ee1945b3b32d5a8127696039:8c7c5a3defcc8df089b41bfd3ad1d695", "context_id"=>"course-v1:UVa+lh4cs01+2018_T1", "oauth_consumer_key"=>"x123456-d87f-3838-cop.lh4cs.org", "lti_version"=>"LTI-1p0", "oauth_signature_method"=>"HMAC-SHA1", "oauth_version"=>"1.0", "launch_presentation_return_url"=>"", "custom_["=>"https://cop.lh4cs.org/c/lighthouse-cc", "oauth_signature"=>"o3eSM/f0+6BmFvcN/C5/SYpcrP0=", "lis_person_sourcedid"=>"aihua", "lti_message_type"=>"basic-lti-launch-request", "oauth_callback"=>"about:blank"}
--End--
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.