Friday, February 28, 2014

Week 7: OAuth Library is Overdue

We left off last week trying to use an OAuth library for signature verification in order to continue working through the Canvas LTI modules. This proved a more complicated task than we anticipated.

There are libraries in every language, and so many of the resources online give tutorials on how to build your own library, which the modules do not suggest and seems far beyond our abilities. We decided to find an OAuth library in Ruby so we get more familiar with parsing that language in Canvas.

Starting in the Canvas forum, we found a plethora of "helpful" resources, but there were so many in so many different languages that it quickly became difficult to sort through them all. Some of the more useful sites for Ruby OAuth libraries were linked from here and here, and the one we're currently working through right now is here.

In trying to install oauth I got an error that oauth-instructure was interfering with the install (a question I posted here). But for some reason I was able to install oauth-simple without any trouble and so proceeded with that version.

With it we started writing our own ruby test code.

Using this...

...we wrote this.

Since we're still not super familiar with Ruby, implementing the proper code is proving challenging as we get seemingly simple errors like: 


that we're not sure how to fix yet.  By the end, I'm sure we'll know more about Ruby and OAuth libraries than we ever thought we wanted to....

Goals for next week:
  1. Learn to use Ruby's OAuth Library for signature verification
  2. Complete Canvas LTI modules


No comments:

Post a Comment