Name: ims-lti
Owner: Poll Everywhere
Description: A Ruby library to help implement IMS LTI tool consumers and providers
Forked from: instructure/ims-lti
Created: 2017-04-24 16:05:42.0
Updated: 2017-04-24 16:05:43.0
Pushed: 2017-04-24 16:08:13.0
Size: 385
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
LTI ruby implementation
Add this line to your application's Gemfile:
gem 'ims-lti'
And then execute:
$ bundle
Or install it yourself as:
$ gem install lti
You can use the classes in the IMS::LTI::Models::Messages module to valdiate Launches
For example in a rails app you would do the following
enticator = IMS::LTI::Services::MessageAuthenticator.new(request.url, request.request_parameters, shared_secret)
ck if the signature is valid
rn false unless authenticator.valid_signature?
eck if `params['oauth_nonce']` has already been used
ck if the message is too old
rn false if DateTime.strptime(request.request_parameters['oauth_timestamp'],'%s') < 5.minutes.ago
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)