lti_provider_engine 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,7 @@ module LtiProvider
15
15
  session[:cookie_test] = true
16
16
  redirect_to cookie_test_path(nonce: launch.nonce)
17
17
  else
18
- return show_error "Unable to launch #{LtiProvider::XmlConfig.tool_name}. Please check your External Tools configuration and try again."
18
+ return show_error "Unable to launch #{LtiProvider::XmlConfig.tool_title}. Please check your External Tools configuration and try again."
19
19
  end
20
20
  end
21
21
 
@@ -1 +1,3 @@
1
- LtiProvider::Config = OpenStruct.new
1
+ module LtiProvider
2
+ Config = OpenStruct.new
3
+ end
@@ -1,3 +1,3 @@
1
1
  module LtiProvider
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1 +1,3 @@
1
- LtiProvider::XmlConfig = OpenStruct.new
1
+ module LtiProvider
2
+ XmlConfig = OpenStruct.new
3
+ end
@@ -3641,3 +3641,127 @@ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
3641
3641
   (0.0ms) rollback transaction
3642
3642
   (0.0ms) begin transaction
3643
3643
   (0.0ms) rollback transaction
3644
+ Initializing LTI key and secret using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti.yml
3645
+ Initializing LTI XML config using configuration in /Users/simonista/Instructure/lti_provider_engine/spec/dummy/config/lti_xml.yml
3646
+ Connecting to database specified by database.yml
3647
+  (0.4ms) begin transaction
3648
+ Processing by LtiProvider::LtiController#configure as XML
3649
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3650
+  (0.1ms) rollback transaction
3651
+  (0.1ms) begin transaction
3652
+  (0.0ms) SAVEPOINT active_record_1
3653
+ SQL (56.0ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
3654
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3655
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3656
+ Parameters: {"nonce"=>"invalid"}
3657
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'invalid' AND (created_at > '2013-11-13 18:12:38.709691') LIMIT 1
3658
+ Completed 200 OK in 35ms (Views: 30.4ms | ActiveRecord: 0.1ms)
3659
+  (0.8ms) rollback transaction
3660
+  (0.1ms) begin transaction
3661
+  (0.1ms) SAVEPOINT active_record_1
3662
+ SQL (0.5ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
3663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3664
+  (0.0ms) SAVEPOINT active_record_1
3665
+  (0.3ms) UPDATE "lti_provider_launches" SET "created_at" = '2013-11-13 18:07:38.755725', "updated_at" = '2013-11-13 18:17:38.756323', "provider_params" = '---
3666
+ custom_canvas_course_id: 1
3667
+ custom_canvas_user_id: 2
3668
+ tool_consumer_instance_guid: 123abc
3669
+ ' WHERE "lti_provider_launches"."id" = 1
3670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3671
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3672
+ Parameters: {"nonce"=>"abcd"}
3673
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-11-13 18:12:38.759918') LIMIT 1
3674
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
3675
+  (0.7ms) rollback transaction
3676
+  (0.0ms) begin transaction
3677
+  (0.0ms) SAVEPOINT active_record_1
3678
+ SQL (0.4ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
3679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3680
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3681
+ Parameters: {"nonce"=>"abcd"}
3682
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-11-13 18:12:38.769711') LIMIT 1
3683
+  (0.0ms) SAVEPOINT active_record_1
3684
+ SQL (0.3ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3686
+ Redirected to http://test.host/
3687
+ Completed 302 Found in 7ms (ActiveRecord: 0.4ms)
3688
+  (0.6ms) rollback transaction
3689
+  (0.0ms) begin transaction
3690
+  (0.0ms) SAVEPOINT active_record_1
3691
+ SQL (0.4ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
3692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3693
+ Processing by LtiProvider::LtiController#consume_launch as HTML
3694
+ Parameters: {"nonce"=>"abcd"}
3695
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE "lti_provider_launches"."nonce" = 'abcd' AND (created_at > '2013-11-13 18:12:38.785619') LIMIT 1
3696
+  (0.0ms) SAVEPOINT active_record_1
3697
+ SQL (0.2ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
3698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3699
+ Redirected to http://test.host/
3700
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
3701
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches" 
3702
+  (0.6ms) rollback transaction
3703
+  (0.0ms) begin transaction
3704
+ Processing by LtiProvider::LtiController#launch as HTML
3705
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"YMnk53DMGS2rNyfjP7NZYtiarSEoq0tFJCSi1hzQdfw", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"SUhQZCcg10WvX/jLxN5W0yowtfI="}
3706
+ Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.0ms)
3707
+  (0.1ms) rollback transaction
3708
+  (0.1ms) begin transaction
3709
+ Processing by LtiProvider::LtiController#launch as HTML
3710
+ Parameters: {"oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"RwOtU9a6iCxS388vT2ko5UK9A6nVA6K0Y6zzJyPfBE", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"Eb21ImcKHFaAUsTJxeNiYC4LHjw="}
3711
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
3712
+  (0.0ms) rollback transaction
3713
+  (0.0ms) begin transaction
3714
+ Processing by LtiProvider::LtiController#launch as HTML
3715
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"NIUhzyHbVAP9eFK3TTn2UOfppWg="}
3716
+  (0.0ms) SAVEPOINT active_record_1
3717
+ SQL (0.4ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs"], ["provider_params", "---\nlaunch_presentation_return_url: http://test.canvas\nlti_message_type: basic-lti-launch-request\nlti_version: LTI-1p0\noauth_consumer_key: '12345'\noauth_nonce: l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs\noauth_signature: NIUhzyHbVAP9eFK3TTn2UOfppWg=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1384366658'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
3718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3719
+ Redirected to http://test.host/cookie_test?nonce=l4Qxxzjd57DwxAv51CebEF3snqrulkMGmTRho2PMJhs
3720
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
3721
+  (0.7ms) rollback transaction
3722
+  (0.0ms) begin transaction
3723
+ Processing by LtiProvider::LtiController#launch as HTML
3724
+ Parameters: {"oauth_consumer_key"=>"12345", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1384366658", "oauth_nonce"=>"JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg", "oauth_version"=>"1.0", "custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_signature"=>"NdWVoj4uU8tf813Q49UMBuaxNvM="}
3725
+  (0.0ms) SAVEPOINT active_record_1
3726
+ SQL (0.4ms) INSERT INTO "lti_provider_launches" ("canvas_url", "created_at", "nonce", "provider_params", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["created_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00], ["nonce", "JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg"], ["provider_params", "---\nlaunch_presentation_return_url: http://test.canvas\nlti_message_type: basic-lti-launch-request\nlti_version: LTI-1p0\noauth_consumer_key: '12345'\noauth_nonce: JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg\noauth_signature: NdWVoj4uU8tf813Q49UMBuaxNvM=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1384366658'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["updated_at", Wed, 13 Nov 2013 18:17:38 UTC +00:00]]
3727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3728
+ Redirected to http://test.host/cookie_test?nonce=JEOf6mnOW8aGl4hCyTCkP82NYaUHILppos3OQlnIMMg
3729
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
3730
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" LIMIT 1
3731
+  (0.6ms) rollback transaction
3732
+  (0.0ms) begin transaction
3733
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3734
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
3735
+  (0.0ms) rollback transaction
3736
+  (0.0ms) begin transaction
3737
+ Processing by LtiProvider::LtiController#cookie_test as HTML
3738
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
3739
+  (0.0ms) rollback transaction
3740
+  (0.0ms) begin transaction
3741
+  (0.1ms) rollback transaction
3742
+  (0.0ms) begin transaction
3743
+  (0.0ms) rollback transaction
3744
+  (0.0ms) begin transaction
3745
+  (0.0ms) rollback transaction
3746
+  (0.0ms) begin transaction
3747
+  (0.0ms) rollback transaction
3748
+  (0.0ms) begin transaction
3749
+  (0.0ms) rollback transaction
3750
+  (0.0ms) begin transaction
3751
+  (0.1ms) rollback transaction
3752
+  (0.0ms) begin transaction
3753
+  (0.0ms) rollback transaction
3754
+  (0.0ms) begin transaction
3755
+  (0.0ms) rollback transaction
3756
+  (0.0ms) begin transaction
3757
+  (0.0ms) rollback transaction
3758
+  (0.0ms) begin transaction
3759
+  (0.0ms) rollback transaction
3760
+  (0.0ms) begin transaction
3761
+  (0.0ms) rollback transaction
3762
+  (0.0ms) begin transaction
3763
+  (0.0ms) rollback transaction
3764
+  (0.0ms) begin transaction
3765
+  (0.0ms) rollback transaction
3766
+  (0.0ms) begin transaction
3767
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lti_provider_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: