lti_provider_engine 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5b32544e8eef1965d188a4ed7f6d466d2efc43cc
4
- data.tar.gz: d077e4dc576aeff7b41b6f6fb0dcf02cde987930
2
+ SHA256:
3
+ metadata.gz: 8d8496603692f7ba7219cf44f5ab72d3f4088b233dad480a6c6e758ef8598137
4
+ data.tar.gz: 9ce4cb383d05b7c8bacb081d2a0d20eb9af9f59182a3904c16d6cc0dca4aaf3e
5
5
  SHA512:
6
- metadata.gz: 7fe750a9488808b47dcdc798f774dd3e25187b81c5280f543310d5c72ce959b57ea8c2a4d84153e20435b918d7b74c62dc212c93c499b95bf52634c592514cb4
7
- data.tar.gz: a0ba4575f570189bc86c4fb7574caf1445f8d2c11aee2c8c9c21c67fcb8dfd21816ff308bffcc85af66b4aca31b475c26fd81fe933e65db257b454977b253852
6
+ metadata.gz: 9678432c03e73b2965dcdfb5b77b3b3847959b4ddf800edaad6de4d42977f3e981eebdd9a8c942667c6c4ba6948dddb17689900e5d1db87e8421f8dc2b714757
7
+ data.tar.gz: aa8218bae7ee4f34a741318df877db63aabe534adcbc004728b81cdb0cd591b852ee436f67871984bea81485bc332f6b2750f5351d626a7ef8115fa6e6eb4aff
@@ -1,3 +1,3 @@
1
1
  module LtiProvider
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -141,7 +141,7 @@ describe LtiProvider::LtiController do
141
141
  describe "configure.xml" do
142
142
  it "succeeds" do
143
143
  get :configure, format: :xml
144
- expect(response).to be_success
144
+ expect(response).to be_successful
145
145
  end
146
146
  end
147
147
  end
@@ -43,6 +43,8 @@ module Dummy
43
43
  # like if you have constraints or database-specific column types
44
44
  # config.active_record.schema_format = :sql
45
45
 
46
+ config.active_record.sqlite3.represent_boolean_as_integer = true
47
+
46
48
  # Enable the asset pipeline
47
49
  config.assets.enabled = true
48
50
 
@@ -4,5 +4,4 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '8f96a1f3e47ab183a6d3c4c5ac4c1ae9f1b271effdba9e1e9ebfbb7cba9bf0fad6182c716dc62c604cbaaae6d86e93c26b867262a04ef0ad770ece90161ede0e'
8
7
  Dummy::Application.config.secret_key_base = '2a505b354d477f5afeb132e5fa73bd13d118cf0a5b0faa3f7f14dc1dcb6c518d5d0a01ad8dd8c9ea3f46052723fc0a7ef04d22e80bd52109986458d64fe372c5'
@@ -7471,3 +7471,237 @@ Completed 302 Found in 10ms (ActiveRecord: 0.4ms)
7471
7471
   (0.0ms) rollback transaction
7472
7472
   (0.0ms) begin transaction
7473
7473
   (0.0ms) rollback transaction
7474
+ Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
7475
+ Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
7476
+  (0.0ms) begin transaction
7477
+  (0.0ms) rollback transaction
7478
+  (0.0ms) begin transaction
7479
+  (0.0ms) rollback transaction
7480
+  (0.0ms) begin transaction
7481
+  (0.1ms) rollback transaction
7482
+  (0.0ms) begin transaction
7483
+  (0.0ms) rollback transaction
7484
+  (0.0ms) begin transaction
7485
+  (0.0ms) rollback transaction
7486
+  (0.0ms) begin transaction
7487
+  (0.1ms) rollback transaction
7488
+  (0.0ms) begin transaction
7489
+ Processing by LtiProvider::LtiController#launch as HTML
7490
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"uVXB75f6y17bwDBcjzxJFnE8QKgP37XOmJc89x2Q8", "oauth_signature"=>"/JNhxSqH+0snOy/FSNK+5dLrVvY=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
7491
+ Rendering text template
7492
+ Rendered text template (0.0ms)
7493
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
7494
+  (0.0ms) rollback transaction
7495
+  (0.0ms) begin transaction
7496
+ Processing by LtiProvider::LtiController#launch as HTML
7497
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc", "oauth_signature"=>"VpgFGV20K9Swds1Iwjt0FuP9L64=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
7498
+  (0.1ms) SAVEPOINT active_record_1
7499
+ LtiProvider::Launch Create (0.7ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["nonce", "sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc"], ["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: sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc\noauth_signature: VpgFGV20K9Swds1Iwjt0FuP9L64=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878063'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:03.041767"], ["updated_at", "2018-05-09 15:01:03.041767"]]
7500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7501
+ Redirected to http://test.host/cookie_test?nonce=sdx1ZuouQjPpAasPkcRso0agCSKNwkXjO8nDOYxrc
7502
+ Completed 302 Found in 14ms (ActiveRecord: 0.9ms)
7503
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ? [["LIMIT", 1]]
7504
+  (0.4ms) rollback transaction
7505
+  (0.1ms) begin transaction
7506
+ Processing by LtiProvider::LtiController#launch as HTML
7507
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc", "oauth_signature"=>"6gazGW173bKh9cDleqz+sS/jp64=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
7508
+  (0.1ms) SAVEPOINT active_record_1
7509
+ LtiProvider::Launch Create (0.5ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["nonce", "8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc"], ["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: 8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc\noauth_signature: 6gazGW173bKh9cDleqz+sS/jp64=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878063'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:03.062058"], ["updated_at", "2018-05-09 15:01:03.062058"]]
7510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7511
+ Redirected to http://test.host/cookie_test?nonce=8JRUWEfjT9d1qZyOqwHzjS9npEhv1Dxafi1lA5nZc
7512
+ Completed 302 Found in 5ms (ActiveRecord: 0.6ms)
7513
+ LtiProvider::Launch Load (0.0ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ? [["LIMIT", 1]]
7514
+  (0.4ms) rollback transaction
7515
+  (0.0ms) begin transaction
7516
+ Processing by LtiProvider::LtiController#launch as HTML
7517
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"wCnHHfuf9k9twrkNFIqbq4y1uT3q16G9ewEDEmMETs", "oauth_signature"=>"SBVyITDeyeLkDtvd7tlR+do4rxc=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878063", "oauth_version"=>"1.0"}
7518
+ Rendering text template
7519
+ Rendered text template (0.0ms)
7520
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 0.0ms)
7521
+  (0.0ms) rollback transaction
7522
+  (0.0ms) begin transaction
7523
+  (0.1ms) SAVEPOINT active_record_1
7524
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.073881"], ["updated_at", "2018-05-09 15:01:03.073881"]]
7525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7526
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7527
+ Parameters: {"nonce"=>"abcd"}
7528
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.076201') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "abcd"], ["LIMIT", 1]]
7529
+  (0.1ms) SAVEPOINT active_record_1
7530
+ LtiProvider::Launch Destroy (0.1ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
7531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7532
+ Redirected to http://test.host/
7533
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
7534
+  (0.1ms) SELECT COUNT(*) FROM "lti_provider_launches"
7535
+  (0.4ms) rollback transaction
7536
+  (0.0ms) begin transaction
7537
+  (0.0ms) SAVEPOINT active_record_1
7538
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.084360"], ["updated_at", "2018-05-09 15:01:03.084360"]]
7539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7540
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7541
+ Parameters: {"nonce"=>"abcd"}
7542
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.086710') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "abcd"], ["LIMIT", 1]]
7543
+  (0.0ms) SAVEPOINT active_record_1
7544
+ LtiProvider::Launch Destroy (0.1ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
7545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7546
+ Redirected to http://test.host/
7547
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
7548
+  (0.4ms) rollback transaction
7549
+  (0.0ms) begin transaction
7550
+  (0.1ms) SAVEPOINT active_record_1
7551
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.090553"], ["updated_at", "2018-05-09 15:01:03.090553"]]
7552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7553
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7554
+ Parameters: {"nonce"=>"invalid"}
7555
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.092750') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "invalid"], ["LIMIT", 1]]
7556
+ Rendering text template
7557
+ Rendered text template (0.0ms)
7558
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7559
+  (0.4ms) rollback transaction
7560
+  (0.0ms) begin transaction
7561
+  (0.0ms) SAVEPOINT active_record_1
7562
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:03.095958"], ["updated_at", "2018-05-09 15:01:03.095958"]]
7563
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7564
+  (0.0ms) SAVEPOINT active_record_1
7565
+ LtiProvider::Launch Update (0.1ms) UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ? [["created_at", "2018-05-09 14:51:03.097258"], ["updated_at", "2018-05-09 15:01:03.097523"], ["id", 1]]
7566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7567
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7568
+ Parameters: {"nonce"=>"abcd"}
7569
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:03.099422') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "abcd"], ["LIMIT", 1]]
7570
+ Rendering text template
7571
+ Rendered text template (0.0ms)
7572
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)
7573
+  (0.3ms) rollback transaction
7574
+  (0.0ms) begin transaction
7575
+ Processing by LtiProvider::LtiController#configure as XML
7576
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
7577
+  (0.0ms) rollback transaction
7578
+  (0.0ms) begin transaction
7579
+ Processing by LtiProvider::LtiController#cookie_test as HTML
7580
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
7581
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
7582
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.5ms)
7583
+ Completed 200 OK in 16ms (Views: 15.5ms | ActiveRecord: 0.0ms)
7584
+  (0.0ms) rollback transaction
7585
+  (0.0ms) begin transaction
7586
+ Processing by LtiProvider::LtiController#cookie_test as HTML
7587
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
7588
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
7589
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
7590
+  (0.0ms) rollback transaction
7591
+ Initializing LTI key and secret using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti.yml
7592
+ Initializing LTI XML config using configuration in /Users/simon/Instructure/projects/lti_provider_engine/spec/dummy/config/lti_xml.yml
7593
+  (0.0ms) begin transaction
7594
+  (0.0ms) rollback transaction
7595
+  (0.0ms) begin transaction
7596
+  (0.1ms) rollback transaction
7597
+  (0.0ms) begin transaction
7598
+  (0.0ms) rollback transaction
7599
+  (0.0ms) begin transaction
7600
+  (0.0ms) rollback transaction
7601
+  (0.1ms) begin transaction
7602
+  (0.0ms) rollback transaction
7603
+  (0.0ms) begin transaction
7604
+  (0.1ms) rollback transaction
7605
+  (0.0ms) begin transaction
7606
+ Processing by LtiProvider::LtiController#launch as HTML
7607
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"Fy5uBxdmNvbpxQEpWwFht0KfMNRK6MQ0gjHKtBbS4", "oauth_signature"=>"H+RoOxseTfWr5kgCM2HXtvDIE+4=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
7608
+ Rendering text template
7609
+ Rendered text template (0.0ms)
7610
+ Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
7611
+  (0.0ms) rollback transaction
7612
+  (0.0ms) begin transaction
7613
+ Processing by LtiProvider::LtiController#launch as HTML
7614
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY", "oauth_signature"=>"Cas9zaHJzc4FCKUznYgjFeR67bE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
7615
+  (0.1ms) SAVEPOINT active_record_1
7616
+ LtiProvider::Launch Create (0.5ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["nonce", "NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY"], ["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: NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY\noauth_signature: Cas9zaHJzc4FCKUznYgjFeR67bE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878094'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:34.619635"], ["updated_at", "2018-05-09 15:01:34.619635"]]
7617
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7618
+ Redirected to http://test.host/cookie_test?nonce=NRVC3POPF9rVHWIcNvWpp43DSPB1mYNNWEIeIrnEY
7619
+ Completed 302 Found in 11ms (ActiveRecord: 0.6ms)
7620
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ? [["LIMIT", 1]]
7621
+  (0.4ms) rollback transaction
7622
+  (0.0ms) begin transaction
7623
+ Processing by LtiProvider::LtiController#launch as HTML
7624
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_consumer_key"=>"12345", "oauth_nonce"=>"O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs", "oauth_signature"=>"OGIWO5e25ljJkfs19pPGAhAyEXE=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
7625
+  (0.0ms) SAVEPOINT active_record_1
7626
+ LtiProvider::Launch Create (0.2ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://test.canvas"], ["nonce", "O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs"], ["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: O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs\noauth_signature: OGIWO5e25ljJkfs19pPGAhAyEXE=\noauth_signature_method: HMAC-SHA1\noauth_timestamp: '1525878094'\noauth_version: '1.0'\ncustom_canvas_user_id: '1'\n"], ["created_at", "2018-05-09 15:01:34.634287"], ["updated_at", "2018-05-09 15:01:34.634287"]]
7627
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7628
+ Redirected to http://test.host/cookie_test?nonce=O52lCR1Bry7NNuU3qtnJv8priW1G4GUecpydsaaIkQs
7629
+ Completed 302 Found in 3ms (ActiveRecord: 0.3ms)
7630
+ LtiProvider::Launch Load (0.0ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" ORDER BY "lti_provider_launches"."id" ASC LIMIT ? [["LIMIT", 1]]
7631
+  (0.3ms) rollback transaction
7632
+  (0.0ms) begin transaction
7633
+ Processing by LtiProvider::LtiController#launch as HTML
7634
+ Parameters: {"custom_canvas_user_id"=>"1", "launch_presentation_return_url"=>"http://test.canvas", "launch_url"=>"http://test.host/launch", "lti_message_type"=>"basic-lti-launch-request", "lti_version"=>"LTI-1p0", "oauth_nonce"=>"wato9XSjtDr65qOOj9JdWjNG41X2e9VIzzs06dC87tA", "oauth_signature"=>"hDLsvQ+Sb0l7joj5EEYV6QYn3Uw=", "oauth_signature_method"=>"HMAC-SHA1", "oauth_timestamp"=>"1525878094", "oauth_version"=>"1.0"}
7635
+ Rendering text template
7636
+ Rendered text template (0.0ms)
7637
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.0ms)
7638
+  (0.0ms) rollback transaction
7639
+  (0.0ms) begin transaction
7640
+  (0.0ms) SAVEPOINT active_record_1
7641
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.643387"], ["updated_at", "2018-05-09 15:01:34.643387"]]
7642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7643
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7644
+ Parameters: {"nonce"=>"abcd"}
7645
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.648273') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "abcd"], ["LIMIT", 1]]
7646
+  (0.0ms) SAVEPOINT active_record_1
7647
+ LtiProvider::Launch Destroy (0.1ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
7648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7649
+ Redirected to http://test.host/
7650
+ Completed 302 Found in 7ms (ActiveRecord: 0.3ms)
7651
+  (0.3ms) rollback transaction
7652
+  (0.1ms) begin transaction
7653
+  (0.0ms) SAVEPOINT active_record_1
7654
+ LtiProvider::Launch Create (0.2ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.654399"], ["updated_at", "2018-05-09 15:01:34.654399"]]
7655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7656
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7657
+ Parameters: {"nonce"=>"abcd"}
7658
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.656115') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "abcd"], ["LIMIT", 1]]
7659
+  (0.0ms) SAVEPOINT active_record_1
7660
+ LtiProvider::Launch Destroy (0.0ms) DELETE FROM "lti_provider_launches" WHERE "lti_provider_launches"."id" = ? [["id", 1]]
7661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7662
+ Redirected to http://test.host/
7663
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
7664
+  (0.0ms) SELECT COUNT(*) FROM "lti_provider_launches"
7665
+  (0.4ms) rollback transaction
7666
+  (0.0ms) begin transaction
7667
+  (0.0ms) SAVEPOINT active_record_1
7668
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.660009"], ["updated_at", "2018-05-09 15:01:34.660009"]]
7669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7670
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7671
+ Parameters: {"nonce"=>"invalid"}
7672
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.661874') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "invalid"], ["LIMIT", 1]]
7673
+ Rendering text template
7674
+ Rendered text template (0.0ms)
7675
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7676
+  (0.4ms) rollback transaction
7677
+  (0.0ms) begin transaction
7678
+  (0.0ms) SAVEPOINT active_record_1
7679
+ LtiProvider::Launch Create (0.3ms) INSERT INTO "lti_provider_launches" ("canvas_url", "nonce", "provider_params", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?) [["canvas_url", "http://canvas"], ["nonce", "abcd"], ["provider_params", "---\ncustom_canvas_course_id: 1\ncustom_canvas_user_id: 2\ntool_consumer_instance_guid: 123abc\next_roles: student\n"], ["created_at", "2018-05-09 15:01:34.664977"], ["updated_at", "2018-05-09 15:01:34.664977"]]
7680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7681
+  (0.1ms) SAVEPOINT active_record_1
7682
+ LtiProvider::Launch Update (0.1ms) UPDATE "lti_provider_launches" SET "created_at" = ?, "updated_at" = ? WHERE "lti_provider_launches"."id" = ? [["created_at", "2018-05-09 14:51:34.666227"], ["updated_at", "2018-05-09 15:01:34.666543"], ["id", 1]]
7683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
7684
+ Processing by LtiProvider::LtiController#consume_launch as HTML
7685
+ Parameters: {"nonce"=>"abcd"}
7686
+ LtiProvider::Launch Load (0.1ms) SELECT "lti_provider_launches".* FROM "lti_provider_launches" WHERE (created_at > '2018-05-09 14:56:34.668294') AND "lti_provider_launches"."nonce" = ? LIMIT ? [["nonce", "abcd"], ["LIMIT", 1]]
7687
+ Rendering text template
7688
+ Rendered text template (0.0ms)
7689
+ Completed 200 OK in 1ms (Views: 0.2ms | ActiveRecord: 0.1ms)
7690
+  (0.3ms) rollback transaction
7691
+  (0.0ms) begin transaction
7692
+ Processing by LtiProvider::LtiController#configure as XML
7693
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
7694
+  (0.0ms) rollback transaction
7695
+  (0.0ms) begin transaction
7696
+ Processing by LtiProvider::LtiController#cookie_test as HTML
7697
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
7698
+ Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
7699
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.2ms)
7700
+ Completed 200 OK in 9ms (Views: 8.7ms | ActiveRecord: 0.0ms)
7701
+  (0.0ms) rollback transaction
7702
+  (0.0ms) begin transaction
7703
+ Processing by LtiProvider::LtiController#cookie_test as HTML
7704
+ Rendering /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb
7705
+ Rendered /Users/simon/Instructure/projects/lti_provider_engine/app/views/lti_provider/lti/cookie_test.html.erb (0.0ms)
7706
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
7707
+  (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: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Donahue
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-04 00:00:00.000000000 Z
13
+ date: 2018-05-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '4.2'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '5.2'
24
+ version: '5.3'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '4.2'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '5.2'
34
+ version: '5.3'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: ims-lti
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -270,44 +270,44 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.6.12
273
+ rubygems_version: 2.7.6
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: LtiProvider is a mountable engine for handling the LTI launch and exposing
277
277
  LTI parameters in your rails app.
278
278
  test_files:
279
- - spec/controllers/lti_provider/lti_controller_spec.rb
279
+ - spec/spec_helper.rb
280
280
  - spec/dummy/app/controllers/application_controller.rb
281
281
  - spec/dummy/app/controllers/welcome_controller.rb
282
- - spec/dummy/config/application.rb
283
- - spec/dummy/config/boot.rb
284
282
  - spec/dummy/config/cucumber.yml
285
- - spec/dummy/config/database.yml
286
- - spec/dummy/config/environment.rb
287
- - spec/dummy/config/environments/development.rb
283
+ - spec/dummy/config/routes.rb
284
+ - spec/dummy/config/locales/en.yml
285
+ - spec/dummy/config/lti.yml
288
286
  - spec/dummy/config/environments/production.rb
287
+ - spec/dummy/config/environments/development.rb
289
288
  - spec/dummy/config/environments/test.rb
289
+ - spec/dummy/config/environment.rb
290
+ - spec/dummy/config/application.rb
291
+ - spec/dummy/config/database.yml
292
+ - spec/dummy/config/boot.rb
293
+ - spec/dummy/config/lti_xml.yml
290
294
  - spec/dummy/config/initializers/backtrace_silencers.rb
291
- - spec/dummy/config/initializers/inflections.rb
292
295
  - spec/dummy/config/initializers/mime_types.rb
293
- - spec/dummy/config/initializers/secret_token.rb
294
296
  - spec/dummy/config/initializers/session_store.rb
295
297
  - spec/dummy/config/initializers/wrap_parameters.rb
296
- - spec/dummy/config/locales/en.yml
297
- - spec/dummy/config/lti.yml
298
- - spec/dummy/config/lti_xml.yml
299
- - spec/dummy/config/routes.rb
298
+ - spec/dummy/config/initializers/secret_token.rb
299
+ - spec/dummy/config/initializers/inflections.rb
300
300
  - spec/dummy/config.ru
301
- - spec/dummy/db/migrate/20130319050206_create_lti_provider_launches.lti_provider.rb
302
- - spec/dummy/db/schema.rb
303
- - spec/dummy/db/test.sqlite3
304
- - spec/dummy/log/test.log
305
- - spec/dummy/public/404.html
301
+ - spec/dummy/script/rails
302
+ - spec/dummy/Rakefile
303
+ - spec/dummy/public/favicon.ico
306
304
  - spec/dummy/public/422.html
307
305
  - spec/dummy/public/500.html
308
- - spec/dummy/public/favicon.ico
306
+ - spec/dummy/public/404.html
309
307
  - spec/dummy/public/robots.txt
310
- - spec/dummy/Rakefile
311
- - spec/dummy/script/rails
308
+ - spec/dummy/db/schema.rb
309
+ - spec/dummy/db/test.sqlite3
310
+ - spec/dummy/db/migrate/20130319050206_create_lti_provider_launches.lti_provider.rb
311
+ - spec/dummy/log/test.log
312
312
  - spec/models/lti_provider/launch_spec.rb
313
- - spec/spec_helper.rb
313
+ - spec/controllers/lti_provider/lti_controller_spec.rb