Name: ims-lti
Owner: Instructure, Inc.
Description: A Ruby library to help implement IMS LTI tool consumers and providers
Created: 2012-03-06 18:58:45.0
Updated: 2018-01-10 13:26:50.0
Pushed: 2018-01-02 17:22:37.0
Size: 405
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
)