mit-teaching-systems-lab / discourse-edx-lti

Discourse plugin for using Discourse as a discussion forum in EdX courses
http://tsl.mit.edu
MIT License
22 stars 6 forks source link

Change from setting omniauth.origin to action_dispatch.cookies #6

Closed kevinrobinson closed 7 years ago

kevinrobinson commented 7 years ago

The Discourse code in omniauth_callbacks_controller#complete checks for the origin, but if a :destination_url cookie is set, it will use that instead. Here we set that cookie directly to ensure that after successful LTI authentication we redirect to the page the course author intended.

kevinrobinson commented 7 years ago

selfie