dce_lti 0.5.2 → 0.5.3

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
2
  SHA1:
3
- metadata.gz: 3930cee9e421d3aa8cf64b11aa2f6782fab8d703
4
- data.tar.gz: dbfb4f7fa924454954704e5bd5545f6639a2cfc1
3
+ metadata.gz: 54ea4de8fa450d23dcaa8fcc296cac30da709366
4
+ data.tar.gz: 108816502fc95232dacc4032fe05ae4e4b14a217
5
5
  SHA512:
6
- metadata.gz: d1f7cbd6874b9f559c9a134b98e09a7afa6c8c33e4dbe271ce967945a3c35f1b98af60422d8aa4e43a4bd6a8422e3755b62bf3e6db7f828e2ebf5a4293ee0127
7
- data.tar.gz: 6d470b951ecda2849b1a824bef7f7ecad8a89d19b5eea7fe1d265043a35290e009a38d4129f0c80f21da093314d2bb36bf15210ad34d79c1e1be035155136a3d
6
+ metadata.gz: 225ebd50ea6a5aa9d04ab35cc272e82c27d3b416634ac5e81ba58ae76c452a7c40a112ac6d118f6915a93fdf74e3a9e3a7323251fb9e9eec831c7ab09d687764
7
+ data.tar.gz: c7daaf1ea27972e6431da428870f3e2ed400fc83faa932310c31c7b55786d30dfc2427551c10cb2d29de159fe6c851c61377bb4a8f41631ba33377072f79cd72
@@ -1,6 +1,6 @@
1
1
  module DceLti
2
2
  module RedirectToHelper
3
- def redirect_to(options)
3
+ def redirect_to(options, response_status = {})
4
4
  session_key_name = Rails.application.config.session_options[:key]
5
5
  if request.env.fetch('HTTP_COOKIE', '').match(/shimmed_cookie/) &&
6
6
  (::DceLti::Engine.config.enable_cookieless_sessions)
@@ -19,7 +19,7 @@ module DceLti
19
19
  end
20
20
  end
21
21
  end
22
- super(options)
22
+ super(options, response_status)
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module DceLti
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.3"
3
3
  end
@@ -13,10 +13,21 @@ describe PostsController do
13
13
  allow(DceLti::User).to receive(:find_by).and_return(user)
14
14
  end
15
15
 
16
- it 'is successful' do
17
- get :index
16
+ context 'index' do
17
+ it 'is successful' do
18
+ get :index
19
+
20
+ expect(response).to be_successful
21
+ end
22
+ end
23
+
24
+ context 'redirect_with_response_status' do
25
+ it 'does not error and uses custom status' do
26
+ get :redirect_with_response_status
18
27
 
19
- expect(response).to be_successful
28
+ expect(response).to redirect_to(root_path)
29
+ expect(response.status).to be 301
30
+ end
20
31
  end
21
32
  end
22
33
  end
@@ -3,4 +3,8 @@ class PostsController < ApplicationController
3
3
  def index
4
4
  render text: 'Foo'
5
5
  end
6
+
7
+ def redirect_with_response_status
8
+ redirect_to root_path, status: :moved_permanently
9
+ end
6
10
  end
@@ -1,7 +1,11 @@
1
1
  Rails.application.routes.draw do
2
2
  mount DceLti::Engine => "/dce_lti"
3
3
 
4
- resources :posts, only: [:index]
4
+ resources :posts, only: [:index] do
5
+ collection do
6
+ get :redirect_with_response_status
7
+ end
8
+ end
5
9
 
6
10
  root to: 'posts#index'
7
11
  end
@@ -3119,3 +3119,36 @@ Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)
3119
3119
   (0.3ms) SELECT version FROM "schema_migrations"
3120
3120
   (2.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20141008172001')
3121
3121
   (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141003180140')
3122
+  (104.2ms) DROP DATABASE IF EXISTS "dce_lti_dummy_test"
3123
+  (233.3ms) CREATE DATABASE "dce_lti_dummy_test" ENCODING = 'utf8'
3124
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
3125
+  (6.5ms) CREATE TABLE "dce_lti_nonces" ("id" serial primary key, "nonce" character varying(255), "created_at" timestamp, "updated_at" timestamp)
3126
+  (3.6ms) CREATE UNIQUE INDEX "index_dce_lti_nonces_on_nonce" ON "dce_lti_nonces" USING btree ("nonce")
3127
+  (7.7ms) CREATE TABLE "dce_lti_users" ("id" serial primary key, "lti_user_id" character varying(255), "lis_person_contact_email_primary" character varying(255), "lis_person_name_family" character varying(255), "lis_person_name_full" character varying(255), "lis_person_name_given" character varying(255), "lis_person_sourcedid" character varying(255), "user_image" character varying(255), "roles" character varying(255)[] DEFAULT '{}', "created_at" timestamp, "updated_at" timestamp)
3128
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
3129
+  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3130
+  (0.2ms) SELECT version FROM "schema_migrations"
3131
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141008172001')
3132
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20141003180140')
3133
+  (107.2ms) DROP DATABASE IF EXISTS "dce_lti_dummy_test"
3134
+  (284.7ms) CREATE DATABASE "dce_lti_dummy_test" ENCODING = 'utf8'
3135
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
3136
+  (14.1ms) CREATE TABLE "dce_lti_nonces" ("id" serial primary key, "nonce" character varying(255), "created_at" timestamp, "updated_at" timestamp)
3137
+  (7.5ms) CREATE UNIQUE INDEX "index_dce_lti_nonces_on_nonce" ON "dce_lti_nonces" USING btree ("nonce")
3138
+  (13.3ms) CREATE TABLE "dce_lti_users" ("id" serial primary key, "lti_user_id" character varying(255), "lis_person_contact_email_primary" character varying(255), "lis_person_name_family" character varying(255), "lis_person_name_full" character varying(255), "lis_person_name_given" character varying(255), "lis_person_sourcedid" character varying(255), "user_image" character varying(255), "roles" character varying(255)[] DEFAULT '{}', "created_at" timestamp, "updated_at" timestamp)
3139
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
3140
+  (7.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3141
+  (0.3ms) SELECT version FROM "schema_migrations"
3142
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141008172001')
3143
+  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20141003180140')
3144
+  (105.9ms) DROP DATABASE IF EXISTS "dce_lti_dummy_test"
3145
+  (227.9ms) CREATE DATABASE "dce_lti_dummy_test" ENCODING = 'utf8'
3146
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
3147
+  (6.0ms) CREATE TABLE "dce_lti_nonces" ("id" serial primary key, "nonce" character varying(255), "created_at" timestamp, "updated_at" timestamp)
3148
+  (3.4ms) CREATE UNIQUE INDEX "index_dce_lti_nonces_on_nonce" ON "dce_lti_nonces" USING btree ("nonce")
3149
+  (11.4ms) CREATE TABLE "dce_lti_users" ("id" serial primary key, "lti_user_id" character varying(255), "lis_person_contact_email_primary" character varying(255), "lis_person_name_family" character varying(255), "lis_person_name_full" character varying(255), "lis_person_name_given" character varying(255), "lis_person_sourcedid" character varying(255), "user_image" character varying(255), "roles" character varying(255)[] DEFAULT '{}', "created_at" timestamp, "updated_at" timestamp)
3150
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
3151
+  (7.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3152
+  (0.3ms) SELECT version FROM "schema_migrations"
3153
+  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20141008172001')
3154
+  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20141003180140')
@@ -135716,3 +135716,3667 @@ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
135716
135716
  DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
135717
135717
  DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
135718
135718
   (0.1ms) ROLLBACK
135719
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135720
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135721
+  (0.2ms) DELETE FROM "dce_lti_nonces";
135722
+  (0.1ms) DELETE FROM "dce_lti_users";
135723
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135724
+  (0.1ms) BEGIN
135725
+  (0.1ms) COMMIT
135726
+  (0.1ms) BEGIN
135727
+  (0.1ms) ROLLBACK
135728
+  (0.1ms) BEGIN
135729
+  (0.1ms) COMMIT
135730
+  (0.0ms) BEGIN
135731
+ Processing by PostsController#index as HTML
135732
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
135733
+  (0.1ms) ROLLBACK
135734
+  (0.1ms) BEGIN
135735
+  (0.0ms) COMMIT
135736
+  (0.0ms) BEGIN
135737
+ Processing by PostsController#index as HTML
135738
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
135739
+ Redirected to http://test.host/dce_lti/sessions/invalid
135740
+ Filter chain halted as :authenticate_via_lti rendered or redirected
135741
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
135742
+  (0.1ms) ROLLBACK
135743
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135744
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135745
+  (0.2ms) DELETE FROM "dce_lti_nonces";
135746
+  (0.1ms) DELETE FROM "dce_lti_users";
135747
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135748
+  (0.1ms) BEGIN
135749
+  (0.1ms) COMMIT
135750
+  (0.1ms) BEGIN
135751
+ Processing by PostsController#index as HTML
135752
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
135753
+ Redirected to http://test.host/dce_lti/sessions/invalid
135754
+ Filter chain halted as :authenticate_via_lti rendered or redirected
135755
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
135756
+  (0.1ms) ROLLBACK
135757
+  (0.0ms) BEGIN
135758
+  (0.0ms) COMMIT
135759
+  (0.0ms) BEGIN
135760
+ Processing by PostsController#index as HTML
135761
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
135762
+  (0.1ms) ROLLBACK
135763
+  (0.1ms) BEGIN
135764
+  (0.0ms) COMMIT
135765
+  (0.0ms) BEGIN
135766
+  (0.1ms) ROLLBACK
135767
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135768
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135769
+  (0.2ms) DELETE FROM "dce_lti_nonces";
135770
+  (0.1ms) DELETE FROM "dce_lti_users";
135771
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135772
+  (0.1ms) BEGIN
135773
+  (0.0ms) COMMIT
135774
+  (0.0ms) BEGIN
135775
+  (0.1ms) ROLLBACK
135776
+  (0.1ms) BEGIN
135777
+  (0.0ms) COMMIT
135778
+  (0.0ms) BEGIN
135779
+ Processing by PostsController#index as HTML
135780
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
135781
+  (0.1ms) ROLLBACK
135782
+  (0.2ms) BEGIN
135783
+  (0.1ms) COMMIT
135784
+  (0.0ms) BEGIN
135785
+ Processing by PostsController#index as HTML
135786
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
135787
+ Redirected to http://test.host/dce_lti/sessions/invalid
135788
+ Filter chain halted as :authenticate_via_lti rendered or redirected
135789
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
135790
+  (0.1ms) ROLLBACK
135791
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135792
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135793
+  (0.3ms) DELETE FROM "dce_lti_nonces";
135794
+  (0.1ms) DELETE FROM "dce_lti_users";
135795
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135796
+  (0.0ms) BEGIN
135797
+  (0.0ms) COMMIT
135798
+  (0.0ms) BEGIN
135799
+  (0.1ms) ROLLBACK
135800
+  (0.0ms) BEGIN
135801
+  (0.0ms) COMMIT
135802
+  (0.0ms) BEGIN
135803
+ Processing by PostsController#index as HTML
135804
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
135805
+  (0.1ms) ROLLBACK
135806
+  (0.0ms) BEGIN
135807
+  (0.0ms) COMMIT
135808
+  (0.0ms) BEGIN
135809
+ Processing by PostsController#index as HTML
135810
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
135811
+ Redirected to http://test.host/dce_lti/sessions/invalid
135812
+ Filter chain halted as :authenticate_via_lti rendered or redirected
135813
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
135814
+  (0.1ms) ROLLBACK
135815
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135816
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135817
+  (0.2ms) DELETE FROM "dce_lti_nonces";
135818
+  (0.1ms) DELETE FROM "dce_lti_users";
135819
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135820
+  (0.1ms) BEGIN
135821
+  (0.0ms) COMMIT
135822
+  (0.0ms) BEGIN
135823
+  (0.1ms) ROLLBACK
135824
+  (0.1ms) BEGIN
135825
+  (0.0ms) COMMIT
135826
+  (0.0ms) BEGIN
135827
+ Processing by PostsController#index as HTML
135828
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
135829
+  (0.1ms) ROLLBACK
135830
+  (0.1ms) BEGIN
135831
+  (0.0ms) COMMIT
135832
+  (0.0ms) BEGIN
135833
+ Processing by PostsController#index as HTML
135834
+ DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
135835
+ Redirected to http://test.host/dce_lti/sessions/invalid
135836
+ Filter chain halted as :authenticate_via_lti rendered or redirected
135837
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
135838
+  (0.1ms) ROLLBACK
135839
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135840
+  (1.2ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135841
+  (0.2ms) DELETE FROM "dce_lti_nonces";
135842
+  (0.2ms) DELETE FROM "dce_lti_users";
135843
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135844
+  (0.1ms) BEGIN
135845
+  (0.0ms) COMMIT
135846
+  (0.0ms) BEGIN
135847
+ Processing by PostsController#redirect_with_response_status as HTML
135848
+ Completed 500 Internal Server Error in 4ms
135849
+  (0.1ms) ROLLBACK
135850
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
135851
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
135852
+  (0.2ms) DELETE FROM "dce_lti_nonces";
135853
+  (0.1ms) DELETE FROM "dce_lti_users";
135854
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
135855
+  (0.0ms) BEGIN
135856
+  (0.0ms) COMMIT
135857
+  (0.0ms) BEGIN
135858
+  (0.1ms) ROLLBACK
135859
+  (0.0ms) BEGIN
135860
+  (0.0ms) COMMIT
135861
+  (0.0ms) BEGIN
135862
+  (0.0ms) ROLLBACK
135863
+  (0.0ms) BEGIN
135864
+  (0.0ms) COMMIT
135865
+  (0.0ms) BEGIN
135866
+  (0.0ms) ROLLBACK
135867
+  (0.0ms) BEGIN
135868
+  (0.0ms) COMMIT
135869
+  (0.0ms) BEGIN
135870
+ Processing by DceLti::SessionsController#create as HTML
135871
+ Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms)
135872
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
135873
+  (0.1ms) ROLLBACK
135874
+  (0.0ms) BEGIN
135875
+  (0.0ms) COMMIT
135876
+  (0.0ms) BEGIN
135877
+ Processing by DceLti::SessionsController#create as HTML
135878
+ Parameters: {"oauth_consumer_key"=>"a key"}
135879
+  (0.1ms) SAVEPOINT active_record_1
135880
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.712368"], ["nonce", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.712368"]]
135881
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135882
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135883
+  (0.1ms) SAVEPOINT active_record_1
135884
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135885
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.729646"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:01:54.729646"]]
135886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135887
+  (0.0ms) SAVEPOINT active_record_1
135888
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 11) LIMIT 1
135889
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 11 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.732143"], ["user_image", #<RSpec::Mocks::Double:0x3fd49dee3890 @name="Tool Provider">]]
135890
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135891
+ Redirected to http://test.host/?_dummy_session=8c2acc85f33aafb769307365045db81d
135892
+ Completed 302 Found in 29ms (ActiveRecord: 5.7ms)
135893
+  (0.1ms) ROLLBACK
135894
+  (0.0ms) BEGIN
135895
+  (0.0ms) COMMIT
135896
+  (0.0ms) BEGIN
135897
+ Processing by DceLti::SessionsController#create as HTML
135898
+  (0.0ms) SAVEPOINT active_record_1
135899
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.736904"], ["nonce", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.736904"]]
135900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135901
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135902
+  (0.0ms) SAVEPOINT active_record_1
135903
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135904
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.738720"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:01:54.738720"]]
135905
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135906
+  (0.0ms) SAVEPOINT active_record_1
135907
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 12) LIMIT 1
135908
+ SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 12 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.739902"], ["user_image", #<RSpec::Mocks::Double:0x3fd49de33300 @name="Tool Provider">]]
135909
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135910
+ Redirected to http://test.host/?_dummy_session=70c1716a13f26c607107fee4e12d331b
135911
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
135912
+  (0.1ms) ROLLBACK
135913
+  (0.0ms) BEGIN
135914
+  (0.0ms) COMMIT
135915
+  (0.0ms) BEGIN
135916
+ Processing by DceLti::SessionsController#create as HTML
135917
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
135918
+  (0.1ms) SAVEPOINT active_record_1
135919
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.743839"], ["nonce", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.743839"]]
135920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135921
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135922
+  (0.0ms) SAVEPOINT active_record_1
135923
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135924
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.745660"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:01:54.745660"]]
135925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135926
+  (0.0ms) SAVEPOINT active_record_1
135927
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 13) LIMIT 1
135928
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 13 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.746767"], ["user_image", #<RSpec::Mocks::Double:0x3fd49ed857e0 @name="Tool Provider">]]
135929
+  (0.0ms) RELEASE SAVEPOINT active_record_1
135930
+ Redirected to http://test.host/?_dummy_session=155fe322952a21a80eaf96e3682a709c
135931
+ Completed 302 Found in 4ms (ActiveRecord: 1.1ms)
135932
+  (0.1ms) ROLLBACK
135933
+  (0.0ms) BEGIN
135934
+  (0.0ms) COMMIT
135935
+  (0.0ms) BEGIN
135936
+ Processing by DceLti::SessionsController#create as HTML
135937
+  (0.0ms) SAVEPOINT active_record_1
135938
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.750256"], ["nonce", #<RSpec::Mocks::Double:0x3fd49ddfabf4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.750256"]]
135939
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135940
+ Redirected to http://test.host/?_dummy_session=4ab075be0185373493abb053d52128e2
135941
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
135942
+  (0.1ms) ROLLBACK
135943
+  (0.1ms) BEGIN
135944
+  (0.1ms) COMMIT
135945
+  (0.0ms) BEGIN
135946
+ Processing by DceLti::SessionsController#create as HTML
135947
+  (0.1ms) SAVEPOINT active_record_1
135948
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.755334"], ["nonce", #<RSpec::Mocks::Double:0x3fd49edb36b8 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.755334"]]
135949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135950
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.3ms)
135951
+  (0.1ms) ROLLBACK
135952
+  (0.1ms) BEGIN
135953
+  (0.0ms) COMMIT
135954
+  (0.0ms) BEGIN
135955
+ Processing by DceLti::SessionsController#create as HTML
135956
+ Parameters: {"user_id"=>"oauth_id"}
135957
+  (0.1ms) SAVEPOINT active_record_1
135958
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.760592"], ["nonce", #<RSpec::Mocks::Double:0x3fd49edc80a4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.760592"]]
135959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135960
+ Redirected to http://test.host/?_dummy_session=94922c6eed292d72e32834ef12a35172
135961
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
135962
+  (0.1ms) ROLLBACK
135963
+  (0.1ms) BEGIN
135964
+  (0.1ms) COMMIT
135965
+  (0.0ms) BEGIN
135966
+ Processing by DceLti::SessionsController#create as HTML
135967
+  (0.1ms) SAVEPOINT active_record_1
135968
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.765578"], ["nonce", #<RSpec::Mocks::Double:0x3fd49edde304 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.765578"]]
135969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135970
+ Redirected to http://test.host/?_dummy_session=6e5d53990eb1b077ad1b8ba48fa5edf8
135971
+ Completed 302 Found in 2ms (ActiveRecord: 0.4ms)
135972
+  (0.1ms) ROLLBACK
135973
+  (0.0ms) BEGIN
135974
+  (0.0ms) COMMIT
135975
+  (0.0ms) BEGIN
135976
+ Processing by DceLti::SessionsController#create as HTML
135977
+  (0.2ms) SAVEPOINT active_record_1
135978
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.770585"], ["nonce", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.770585"]]
135979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135980
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135981
+  (0.1ms) SAVEPOINT active_record_1
135982
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
135983
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.772830"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:01:54.772830"]]
135984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135985
+  (0.0ms) SAVEPOINT active_record_1
135986
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 14) LIMIT 1
135987
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 14 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.774248"], ["user_image", #<RSpec::Mocks::Double:0x3fd49ddadc78 @name="Tool Provider">]]
135988
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135989
+ Redirected to http://test.host/sessions/create
135990
+ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
135991
+  (0.1ms) ROLLBACK
135992
+  (0.0ms) BEGIN
135993
+  (0.0ms) COMMIT
135994
+  (0.0ms) BEGIN
135995
+ Processing by DceLti::SessionsController#create as HTML
135996
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
135997
+  (0.1ms) SAVEPOINT active_record_1
135998
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.778475"], ["nonce", #<RSpec::Mocks::Double:0x3fd49ee22608 @name="Tool Provider">], ["updated_at", "2015-05-26 14:01:54.778475"]]
135999
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136000
+ Redirected to http://test.host/?_dummy_session=3adc840b072d2085c8028fdff9c5ae2a
136001
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136002
+  (0.1ms) ROLLBACK
136003
+  (0.0ms) BEGIN
136004
+  (0.0ms) COMMIT
136005
+  (0.0ms) BEGIN
136006
+ Processing by DceLti::SessionsController#create as HTML
136007
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
136008
+  (0.1ms) ROLLBACK
136009
+  (0.0ms) BEGIN
136010
+  (0.0ms) COMMIT
136011
+  (0.0ms) BEGIN
136012
+ Processing by DceLti::SessionsController#create as HTML
136013
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
136014
+  (0.1ms) ROLLBACK
136015
+  (0.0ms) BEGIN
136016
+  (0.0ms) COMMIT
136017
+  (0.0ms) BEGIN
136018
+ Processing by DceLti::SessionsController#create as HTML
136019
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
136020
+  (0.1ms) ROLLBACK
136021
+  (0.0ms) BEGIN
136022
+  (0.0ms) COMMIT
136023
+  (0.0ms) BEGIN
136024
+ Started GET "/" for 127.0.0.1 at 2015-05-26 10:01:54 -0400
136025
+ Processing by PostsController#index as HTML
136026
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136027
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
136028
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136029
+ Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
136030
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 10:01:54 -0400
136031
+ Processing by DceLti::SessionsController#invalid as HTML
136032
+ Completed 200 OK in 86ms (Views: 85.4ms | ActiveRecord: 0.0ms)
136033
+  (0.1ms) ROLLBACK
136034
+  (0.0ms) BEGIN
136035
+  (0.0ms) COMMIT
136036
+  (0.0ms) BEGIN
136037
+  (0.0ms) ROLLBACK
136038
+  (0.0ms) BEGIN
136039
+  (0.0ms) COMMIT
136040
+  (0.0ms) BEGIN
136041
+  (0.0ms) ROLLBACK
136042
+  (0.0ms) BEGIN
136043
+  (0.0ms) COMMIT
136044
+  (0.0ms) BEGIN
136045
+ Processing by PostsController#redirect_with_response_status as HTML
136046
+ Completed 500 Internal Server Error in 2ms
136047
+  (0.1ms) ROLLBACK
136048
+  (0.0ms) BEGIN
136049
+  (0.0ms) COMMIT
136050
+  (0.0ms) BEGIN
136051
+ Processing by PostsController#index as HTML
136052
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
136053
+  (0.1ms) ROLLBACK
136054
+  (0.0ms) BEGIN
136055
+  (0.0ms) COMMIT
136056
+  (0.0ms) BEGIN
136057
+ Processing by PostsController#index as HTML
136058
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136059
+ Redirected to http://test.host/dce_lti/sessions/invalid
136060
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136061
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136062
+  (0.1ms) ROLLBACK
136063
+  (0.1ms) BEGIN
136064
+  (0.1ms) COMMIT
136065
+  (0.0ms) BEGIN
136066
+  (0.1ms) ROLLBACK
136067
+  (0.0ms) BEGIN
136068
+  (0.0ms) COMMIT
136069
+  (0.0ms) BEGIN
136070
+  (0.1ms) ROLLBACK
136071
+  (0.0ms) BEGIN
136072
+  (0.0ms) COMMIT
136073
+  (0.0ms) BEGIN
136074
+  (0.0ms) ROLLBACK
136075
+  (0.0ms) BEGIN
136076
+  (0.0ms) COMMIT
136077
+  (0.0ms) BEGIN
136078
+  (0.0ms) ROLLBACK
136079
+  (0.0ms) BEGIN
136080
+  (0.0ms) COMMIT
136081
+  (0.0ms) BEGIN
136082
+  (0.1ms) SAVEPOINT active_record_1
136083
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.917433"], ["nonce", "100"], ["updated_at", "2015-05-26 14:01:54.917433"]]
136084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136085
+  (0.0ms) SAVEPOINT active_record_1
136086
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.918648"], ["nonce", "100"], ["updated_at", "2015-05-26 14:01:54.918648"]]
136087
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
136088
+ DETAIL: Key (nonce)=(100) already exists.
136089
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
136090
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
136091
+ Creating nonce failed: "100"
136092
+  (0.0ms) ROLLBACK
136093
+  (0.0ms) BEGIN
136094
+  (0.0ms) COMMIT
136095
+  (0.0ms) BEGIN
136096
+  (0.0ms) SAVEPOINT active_record_1
136097
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.920936"], ["nonce", "100"], ["updated_at", "2015-05-26 14:01:54.920936"]]
136098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136099
+  (0.0ms) ROLLBACK
136100
+  (0.0ms) BEGIN
136101
+  (0.0ms) COMMIT
136102
+  (0.0ms) BEGIN
136103
+  (0.0ms) ROLLBACK
136104
+  (0.0ms) BEGIN
136105
+  (0.0ms) COMMIT
136106
+  (0.0ms) BEGIN
136107
+ Processing by PostsController#index as HTML
136108
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136109
+ Redirected to http://test.host/dce_lti/sessions/invalid
136110
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136111
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136112
+  (0.1ms) ROLLBACK
136113
+  (0.0ms) BEGIN
136114
+  (0.0ms) COMMIT
136115
+  (0.0ms) BEGIN
136116
+ Processing by DceLti::ConfigsController#index as XML
136117
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136118
+  (0.1ms) ROLLBACK
136119
+  (0.1ms) BEGIN
136120
+  (0.1ms) COMMIT
136121
+  (0.0ms) BEGIN
136122
+ Processing by DceLti::ConfigsController#index as XML
136123
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136124
+  (0.1ms) ROLLBACK
136125
+  (0.0ms) BEGIN
136126
+  (0.0ms) COMMIT
136127
+  (0.0ms) BEGIN
136128
+ Processing by DceLti::ConfigsController#index as XML
136129
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
136130
+  (0.1ms) ROLLBACK
136131
+  (0.0ms) BEGIN
136132
+  (0.0ms) COMMIT
136133
+  (0.0ms) BEGIN
136134
+ Processing by DceLti::ConfigsController#index as XML
136135
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
136136
+  (0.1ms) ROLLBACK
136137
+  (0.1ms) BEGIN
136138
+  (0.0ms) COMMIT
136139
+  (0.0ms) BEGIN
136140
+ Processing by DceLti::ConfigsController#index as XML
136141
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136142
+  (0.1ms) ROLLBACK
136143
+  (0.0ms) BEGIN
136144
+  (0.0ms) COMMIT
136145
+  (0.0ms) BEGIN
136146
+  (0.0ms) SAVEPOINT active_record_1
136147
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136148
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
136149
+  (0.1ms) ROLLBACK
136150
+  (0.0ms) BEGIN
136151
+  (0.0ms) COMMIT
136152
+  (0.0ms) BEGIN
136153
+  (0.1ms) ROLLBACK
136154
+  (0.1ms) BEGIN
136155
+  (0.0ms) COMMIT
136156
+  (0.0ms) BEGIN
136157
+  (0.0ms) ROLLBACK
136158
+  (0.0ms) BEGIN
136159
+  (0.0ms) COMMIT
136160
+  (0.0ms) BEGIN
136161
+  (0.0ms) SAVEPOINT active_record_1
136162
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
136163
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:01:54.967665"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 14:01:54.967665"]]
136164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136165
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 15]]
136166
+  (0.1ms) ROLLBACK
136167
+  (0.0ms) BEGIN
136168
+  (0.0ms) COMMIT
136169
+  (0.0ms) BEGIN
136170
+  (0.0ms) SAVEPOINT active_record_1
136171
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
136172
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:01:54.972373"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 14:01:54.972373"]]
136173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136174
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 16]]
136175
+  (0.1ms) ROLLBACK
136176
+  (0.0ms) BEGIN
136177
+  (0.0ms) COMMIT
136178
+  (0.0ms) BEGIN
136179
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
136180
+  (0.1ms) SAVEPOINT active_record_1
136181
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:01:54.978587"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 14:01:54.978587"]]
136182
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136183
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
136184
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
136185
+  (0.1ms) ROLLBACK
136186
+  (0.1ms) BEGIN
136187
+  (0.1ms) COMMIT
136188
+  (0.1ms) BEGIN
136189
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136190
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136191
+  (0.1ms) ROLLBACK
136192
+  (0.0ms) BEGIN
136193
+  (0.0ms) COMMIT
136194
+  (0.1ms) BEGIN
136195
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136196
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136197
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136198
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136199
+  (0.1ms) ROLLBACK
136200
+  (0.1ms) BEGIN
136201
+  (0.1ms) COMMIT
136202
+  (0.1ms) BEGIN
136203
+  (0.1ms) SAVEPOINT active_record_1
136204
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1
136205
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:01:54.996446"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:01:54.996446"]]
136206
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136207
+  (0.1ms) ROLLBACK
136208
+  (0.0ms) BEGIN
136209
+  (0.0ms) COMMIT
136210
+  (0.0ms) BEGIN
136211
+  (0.0ms) SAVEPOINT active_record_1
136212
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1
136213
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:01:55.000168"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:01:55.000168"]]
136214
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136215
+  (0.0ms) ROLLBACK
136216
+  (0.0ms) BEGIN
136217
+  (0.0ms) COMMIT
136218
+  (0.1ms) BEGIN
136219
+  (0.1ms) ROLLBACK
136220
+  (0.0ms) BEGIN
136221
+  (0.0ms) COMMIT
136222
+  (0.0ms) BEGIN
136223
+  (0.0ms) SAVEPOINT active_record_1
136224
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1
136225
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:01:55.003916"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:01:55.003916"]]
136226
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136227
+  (0.1ms) ROLLBACK
136228
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136229
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136230
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136231
+  (0.1ms) DELETE FROM "dce_lti_users";
136232
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136233
+  (0.0ms) BEGIN
136234
+  (0.0ms) COMMIT
136235
+  (0.0ms) BEGIN
136236
+ Processing by PostsController#redirect_with_response_status as HTML
136237
+ Completed 500 Internal Server Error in 0ms
136238
+  (0.1ms) ROLLBACK
136239
+  (0.0ms) BEGIN
136240
+  (0.0ms) COMMIT
136241
+  (0.0ms) BEGIN
136242
+ Processing by PostsController#index as HTML
136243
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
136244
+  (0.1ms) ROLLBACK
136245
+  (0.1ms) BEGIN
136246
+  (0.0ms) COMMIT
136247
+  (0.0ms) BEGIN
136248
+ Processing by PostsController#index as HTML
136249
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136250
+ Redirected to http://test.host/dce_lti/sessions/invalid
136251
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136252
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
136253
+  (0.1ms) ROLLBACK
136254
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136255
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136256
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136257
+  (0.1ms) DELETE FROM "dce_lti_users";
136258
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136259
+  (0.1ms) BEGIN
136260
+  (0.1ms) COMMIT
136261
+  (0.1ms) BEGIN
136262
+ Processing by PostsController#index as HTML
136263
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136264
+ Redirected to http://test.host/dce_lti/sessions/invalid
136265
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136266
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
136267
+  (0.1ms) ROLLBACK
136268
+  (0.0ms) BEGIN
136269
+  (0.1ms) COMMIT
136270
+  (0.1ms) BEGIN
136271
+  (0.1ms) ROLLBACK
136272
+  (0.1ms) BEGIN
136273
+  (0.1ms) COMMIT
136274
+  (0.0ms) BEGIN
136275
+  (0.1ms) SAVEPOINT active_record_1
136276
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1
136277
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:04:39.449487"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 14:04:39.449487"]]
136278
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136279
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 21]]
136280
+  (0.1ms) ROLLBACK
136281
+  (0.1ms) BEGIN
136282
+  (0.0ms) COMMIT
136283
+  (0.0ms) BEGIN
136284
+  (0.0ms) SAVEPOINT active_record_1
136285
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1
136286
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:04:39.454669"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 14:04:39.454669"]]
136287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136288
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 22]]
136289
+  (0.1ms) ROLLBACK
136290
+  (0.1ms) BEGIN
136291
+  (0.1ms) COMMIT
136292
+  (0.1ms) BEGIN
136293
+  (0.0ms) SAVEPOINT active_record_1
136294
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1
136295
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:04:39.457865"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:04:39.457865"]]
136296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136297
+  (0.1ms) ROLLBACK
136298
+  (0.0ms) BEGIN
136299
+  (0.1ms) COMMIT
136300
+  (0.0ms) BEGIN
136301
+  (0.0ms) SAVEPOINT active_record_1
136302
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
136303
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:04:39.461443"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:04:39.461443"]]
136304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136305
+  (0.1ms) ROLLBACK
136306
+  (0.0ms) BEGIN
136307
+  (0.0ms) COMMIT
136308
+  (0.0ms) BEGIN
136309
+  (0.0ms) SAVEPOINT active_record_1
136310
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
136311
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:04:39.464017"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:04:39.464017"]]
136312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136313
+  (0.0ms) ROLLBACK
136314
+  (0.0ms) BEGIN
136315
+  (0.0ms) COMMIT
136316
+  (0.0ms) BEGIN
136317
+  (0.0ms) ROLLBACK
136318
+  (0.0ms) BEGIN
136319
+  (0.0ms) COMMIT
136320
+  (0.0ms) BEGIN
136321
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
136322
+  (0.1ms) SAVEPOINT active_record_1
136323
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.471170"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 14:04:39.471170"]]
136324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136325
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
136326
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
136327
+  (0.1ms) ROLLBACK
136328
+  (0.1ms) BEGIN
136329
+  (0.0ms) COMMIT
136330
+  (0.0ms) BEGIN
136331
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136332
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136333
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136334
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136335
+  (0.0ms) ROLLBACK
136336
+  (0.0ms) BEGIN
136337
+  (0.1ms) COMMIT
136338
+  (0.0ms) BEGIN
136339
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136340
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136341
+  (0.1ms) ROLLBACK
136342
+  (0.1ms) BEGIN
136343
+  (0.1ms) COMMIT
136344
+  (0.0ms) BEGIN
136345
+  (0.1ms) ROLLBACK
136346
+  (0.0ms) BEGIN
136347
+  (0.0ms) COMMIT
136348
+  (0.0ms) BEGIN
136349
+  (0.0ms) ROLLBACK
136350
+  (0.0ms) BEGIN
136351
+  (0.0ms) COMMIT
136352
+  (0.0ms) BEGIN
136353
+ Processing by DceLti::ConfigsController#index as XML
136354
+ Completed 200 OK in 5ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136355
+  (0.1ms) ROLLBACK
136356
+  (0.0ms) BEGIN
136357
+  (0.0ms) COMMIT
136358
+  (0.0ms) BEGIN
136359
+ Processing by DceLti::ConfigsController#index as XML
136360
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136361
+  (0.1ms) ROLLBACK
136362
+  (0.0ms) BEGIN
136363
+  (0.0ms) COMMIT
136364
+  (0.0ms) BEGIN
136365
+ Processing by DceLti::ConfigsController#index as XML
136366
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
136367
+  (0.1ms) ROLLBACK
136368
+  (0.0ms) BEGIN
136369
+  (0.0ms) COMMIT
136370
+  (0.0ms) BEGIN
136371
+ Processing by DceLti::ConfigsController#index as XML
136372
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136373
+  (0.1ms) ROLLBACK
136374
+  (0.0ms) BEGIN
136375
+  (0.0ms) COMMIT
136376
+  (0.0ms) BEGIN
136377
+ Processing by DceLti::ConfigsController#index as XML
136378
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
136379
+  (0.0ms) ROLLBACK
136380
+  (0.0ms) BEGIN
136381
+  (0.0ms) COMMIT
136382
+  (0.0ms) BEGIN
136383
+  (0.0ms) ROLLBACK
136384
+  (0.0ms) BEGIN
136385
+  (0.0ms) COMMIT
136386
+  (0.0ms) BEGIN
136387
+  (0.0ms) ROLLBACK
136388
+  (0.0ms) BEGIN
136389
+  (0.0ms) COMMIT
136390
+  (0.0ms) BEGIN
136391
+  (0.0ms) ROLLBACK
136392
+  (0.0ms) BEGIN
136393
+  (0.0ms) COMMIT
136394
+  (0.0ms) BEGIN
136395
+  (0.1ms) SAVEPOINT active_record_1
136396
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.523026"], ["nonce", "100"], ["updated_at", "2015-05-26 14:04:39.523026"]]
136397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136398
+  (0.0ms) SAVEPOINT active_record_1
136399
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.524913"], ["nonce", "100"], ["updated_at", "2015-05-26 14:04:39.524913"]]
136400
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
136401
+ DETAIL: Key (nonce)=(100) already exists.
136402
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
136403
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
136404
+ Creating nonce failed: "100"
136405
+  (0.1ms) ROLLBACK
136406
+  (0.1ms) BEGIN
136407
+  (0.1ms) COMMIT
136408
+  (0.0ms) BEGIN
136409
+  (0.1ms) SAVEPOINT active_record_1
136410
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.527079"], ["nonce", "100"], ["updated_at", "2015-05-26 14:04:39.527079"]]
136411
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136412
+  (0.1ms) ROLLBACK
136413
+  (0.0ms) BEGIN
136414
+  (0.0ms) COMMIT
136415
+  (0.0ms) BEGIN
136416
+ Processing by PostsController#redirect_with_response_status as HTML
136417
+ Redirected to http://test.host/
136418
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136419
+  (0.0ms) ROLLBACK
136420
+  (0.0ms) BEGIN
136421
+  (0.0ms) COMMIT
136422
+  (0.0ms) BEGIN
136423
+ Processing by PostsController#index as HTML
136424
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
136425
+  (0.1ms) ROLLBACK
136426
+  (0.0ms) BEGIN
136427
+  (0.0ms) COMMIT
136428
+  (0.0ms) BEGIN
136429
+ Processing by PostsController#index as HTML
136430
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136431
+ Redirected to http://test.host/dce_lti/sessions/invalid
136432
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136433
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136434
+  (0.1ms) ROLLBACK
136435
+  (0.0ms) BEGIN
136436
+  (0.0ms) COMMIT
136437
+  (0.0ms) BEGIN
136438
+ Processing by DceLti::SessionsController#create as HTML
136439
+  (0.0ms) SAVEPOINT active_record_1
136440
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.540649"], ["nonce", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.540649"]]
136441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136442
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136443
+  (0.1ms) SAVEPOINT active_record_1
136444
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136445
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.542873"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:04:39.542873"]]
136446
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136447
+  (0.1ms) SAVEPOINT active_record_1
136448
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 27) LIMIT 1
136449
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 27 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.544682"], ["user_image", #<RSpec::Mocks::Double:0x3fae208ae8ec @name="Tool Provider">]]
136450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136451
+ Redirected to http://test.host/?_dummy_session=d6c1b55d9cc9abcd56b9306ee23fd6a4
136452
+ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
136453
+  (0.1ms) ROLLBACK
136454
+  (0.0ms) BEGIN
136455
+  (0.0ms) COMMIT
136456
+  (0.0ms) BEGIN
136457
+ Processing by DceLti::SessionsController#create as HTML
136458
+ Parameters: {"oauth_consumer_key"=>"a key"}
136459
+  (0.0ms) SAVEPOINT active_record_1
136460
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.548999"], ["nonce", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.548999"]]
136461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136462
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136463
+  (0.0ms) SAVEPOINT active_record_1
136464
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136465
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.550846"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:04:39.550846"]]
136466
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136467
+  (0.0ms) SAVEPOINT active_record_1
136468
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 28) LIMIT 1
136469
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 28 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.552066"], ["user_image", #<RSpec::Mocks::Double:0x3fae208cc860 @name="Tool Provider">]]
136470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136471
+ Redirected to http://test.host/?_dummy_session=fec2cabc42eeee833c552ba039160ed5
136472
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
136473
+  (0.1ms) ROLLBACK
136474
+  (0.0ms) BEGIN
136475
+  (0.0ms) COMMIT
136476
+  (0.0ms) BEGIN
136477
+ Processing by DceLti::SessionsController#create as HTML
136478
+ Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms)
136479
+  (0.1ms) ROLLBACK
136480
+  (0.1ms) BEGIN
136481
+  (0.0ms) COMMIT
136482
+  (0.0ms) BEGIN
136483
+ Processing by DceLti::SessionsController#create as HTML
136484
+  (0.0ms) SAVEPOINT active_record_1
136485
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.560622"], ["nonce", #<RSpec::Mocks::Double:0x3fae2090050c @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.560622"]]
136486
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136487
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
136488
+  (0.1ms) ROLLBACK
136489
+  (0.1ms) BEGIN
136490
+  (0.0ms) COMMIT
136491
+  (0.0ms) BEGIN
136492
+ Processing by DceLti::SessionsController#create as HTML
136493
+  (0.0ms) SAVEPOINT active_record_1
136494
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.564760"], ["nonce", #<RSpec::Mocks::Double:0x3fae2091b780 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.564760"]]
136495
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136496
+ Redirected to http://test.host/?_dummy_session=33209f3c5a00a506040ad4452b93ba82
136497
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136498
+  (0.1ms) ROLLBACK
136499
+  (0.0ms) BEGIN
136500
+  (0.0ms) COMMIT
136501
+  (0.0ms) BEGIN
136502
+ Processing by DceLti::SessionsController#create as HTML
136503
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
136504
+  (0.0ms) SAVEPOINT active_record_1
136505
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.568108"], ["nonce", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.568108"]]
136506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136507
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136508
+  (0.1ms) SAVEPOINT active_record_1
136509
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136510
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.569975"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:04:39.569975"]]
136511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136512
+  (0.0ms) SAVEPOINT active_record_1
136513
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 29) LIMIT 1
136514
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 29 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.571226"], ["user_image", #<RSpec::Mocks::Double:0x3fae2092a104 @name="Tool Provider">]]
136515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136516
+ Redirected to http://test.host/?_dummy_session=f5288e10f3bbd848ac65fb25efc6021f
136517
+ Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
136518
+  (0.0ms) ROLLBACK
136519
+  (0.1ms) BEGIN
136520
+  (0.1ms) COMMIT
136521
+  (0.1ms) BEGIN
136522
+ Processing by DceLti::SessionsController#create as HTML
136523
+ Parameters: {"user_id"=>"oauth_id"}
136524
+  (0.1ms) SAVEPOINT active_record_1
136525
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.575896"], ["nonce", #<RSpec::Mocks::Double:0x3fae1f75dc3c @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.575896"]]
136526
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136527
+ Redirected to http://test.host/?_dummy_session=80d74c0a295020274d2694ed4c3d284c
136528
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
136529
+  (0.1ms) ROLLBACK
136530
+  (0.0ms) BEGIN
136531
+  (0.0ms) COMMIT
136532
+  (0.0ms) BEGIN
136533
+ Processing by DceLti::SessionsController#create as HTML
136534
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
136535
+  (0.0ms) SAVEPOINT active_record_1
136536
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.580249"], ["nonce", #<RSpec::Mocks::Double:0x3fae2095a50c @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.580249"]]
136537
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136538
+ Redirected to http://test.host/?_dummy_session=accbfc69effa89c522d6a669d68adac8
136539
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136540
+  (0.0ms) ROLLBACK
136541
+  (0.0ms) BEGIN
136542
+  (0.0ms) COMMIT
136543
+  (0.0ms) BEGIN
136544
+ Processing by DceLti::SessionsController#create as HTML
136545
+  (0.0ms) SAVEPOINT active_record_1
136546
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.584530"], ["nonce", #<RSpec::Mocks::Double:0x3fae20973f20 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.584530"]]
136547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136548
+ Redirected to http://test.host/?_dummy_session=52eb99a81334e5381769e073829fc5f0
136549
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
136550
+  (0.1ms) ROLLBACK
136551
+  (0.1ms) BEGIN
136552
+  (0.0ms) COMMIT
136553
+  (0.0ms) BEGIN
136554
+ Processing by DceLti::SessionsController#create as HTML
136555
+  (0.0ms) SAVEPOINT active_record_1
136556
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.588222"], ["nonce", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.588222"]]
136557
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136558
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136559
+  (0.0ms) SAVEPOINT active_record_1
136560
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136561
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:04:39.590274"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:04:39.590274"]]
136562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136563
+  (0.0ms) SAVEPOINT active_record_1
136564
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 30) LIMIT 1
136565
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 30 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:04:39.591585"], ["user_image", #<RSpec::Mocks::Double:0x3fae2098dca4 @name="Tool Provider">]]
136566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136567
+ Redirected to http://test.host/sessions/create
136568
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
136569
+  (0.1ms) ROLLBACK
136570
+  (0.0ms) BEGIN
136571
+  (0.0ms) COMMIT
136572
+  (0.0ms) BEGIN
136573
+ Processing by DceLti::SessionsController#create as HTML
136574
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
136575
+  (0.1ms) ROLLBACK
136576
+  (0.0ms) BEGIN
136577
+  (0.0ms) COMMIT
136578
+  (0.0ms) BEGIN
136579
+ Processing by DceLti::SessionsController#create as HTML
136580
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
136581
+  (0.0ms) ROLLBACK
136582
+  (0.0ms) BEGIN
136583
+  (0.0ms) COMMIT
136584
+  (0.0ms) BEGIN
136585
+ Processing by DceLti::SessionsController#create as HTML
136586
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
136587
+  (0.0ms) ROLLBACK
136588
+  (0.0ms) BEGIN
136589
+  (0.1ms) COMMIT
136590
+  (0.0ms) BEGIN
136591
+  (0.0ms) ROLLBACK
136592
+  (0.0ms) BEGIN
136593
+  (0.0ms) COMMIT
136594
+  (0.0ms) BEGIN
136595
+  (0.0ms) ROLLBACK
136596
+  (0.0ms) BEGIN
136597
+  (0.0ms) COMMIT
136598
+  (0.0ms) BEGIN
136599
+  (0.0ms) SAVEPOINT active_record_1
136600
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136601
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
136602
+  (0.1ms) ROLLBACK
136603
+  (0.0ms) BEGIN
136604
+  (0.0ms) COMMIT
136605
+  (0.0ms) BEGIN
136606
+  (0.0ms) ROLLBACK
136607
+  (0.0ms) BEGIN
136608
+  (0.0ms) COMMIT
136609
+  (0.0ms) BEGIN
136610
+  (0.0ms) ROLLBACK
136611
+  (0.0ms) BEGIN
136612
+  (0.0ms) COMMIT
136613
+  (0.0ms) BEGIN
136614
+  (0.0ms) ROLLBACK
136615
+  (0.0ms) BEGIN
136616
+  (0.0ms) COMMIT
136617
+  (0.0ms) BEGIN
136618
+  (0.0ms) ROLLBACK
136619
+  (0.0ms) BEGIN
136620
+  (0.0ms) COMMIT
136621
+  (0.0ms) BEGIN
136622
+ Started GET "/" for 127.0.0.1 at 2015-05-26 10:04:39 -0400
136623
+ Processing by PostsController#index as HTML
136624
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136625
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
136626
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136627
+ Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
136628
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 10:04:39 -0400
136629
+ Processing by DceLti::SessionsController#invalid as HTML
136630
+ Completed 200 OK in 90ms (Views: 89.9ms | ActiveRecord: 0.0ms)
136631
+  (0.1ms) ROLLBACK
136632
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136633
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136634
+  (0.3ms) DELETE FROM "dce_lti_nonces";
136635
+  (0.2ms) DELETE FROM "dce_lti_users";
136636
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136637
+  (0.1ms) BEGIN
136638
+  (0.1ms) COMMIT
136639
+  (0.0ms) BEGIN
136640
+ Processing by PostsController#redirect_with_response_status as HTML
136641
+ Redirected to http://test.host/
136642
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136643
+  (0.2ms) ROLLBACK
136644
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136645
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136646
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136647
+  (0.2ms) DELETE FROM "dce_lti_users";
136648
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136649
+  (0.1ms) BEGIN
136650
+  (0.1ms) COMMIT
136651
+  (0.0ms) BEGIN
136652
+ Processing by PostsController#redirect_with_response_status as HTML
136653
+ Redirected to http://test.host/
136654
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136655
+  (0.3ms) ROLLBACK
136656
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136657
+  (1.6ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136658
+  (0.3ms) DELETE FROM "dce_lti_nonces";
136659
+  (0.2ms) DELETE FROM "dce_lti_users";
136660
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136661
+  (0.1ms) BEGIN
136662
+  (0.1ms) COMMIT
136663
+  (0.1ms) BEGIN
136664
+ Processing by PostsController#redirect_with_response_status as HTML
136665
+ Redirected to http://test.host/
136666
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136667
+  (0.1ms) ROLLBACK
136668
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136669
+  (1.0ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136670
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136671
+  (0.2ms) DELETE FROM "dce_lti_users";
136672
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136673
+  (0.1ms) BEGIN
136674
+  (0.1ms) COMMIT
136675
+  (0.0ms) BEGIN
136676
+ Processing by PostsController#redirect_with_response_status as HTML
136677
+ Redirected to http://test.host/
136678
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136679
+  (0.1ms) ROLLBACK
136680
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136681
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136682
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136683
+  (0.1ms) DELETE FROM "dce_lti_users";
136684
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136685
+  (0.1ms) BEGIN
136686
+  (0.0ms) COMMIT
136687
+  (0.0ms) BEGIN
136688
+ Processing by PostsController#index as HTML
136689
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136690
+ Redirected to http://test.host/dce_lti/sessions/invalid
136691
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136692
+ Completed 302 Found in 4ms (ActiveRecord: 0.3ms)
136693
+  (0.1ms) ROLLBACK
136694
+  (0.0ms) BEGIN
136695
+  (0.0ms) COMMIT
136696
+  (0.0ms) BEGIN
136697
+ Processing by PostsController#index as HTML
136698
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
136699
+  (0.1ms) ROLLBACK
136700
+  (0.1ms) BEGIN
136701
+  (0.0ms) COMMIT
136702
+  (0.0ms) BEGIN
136703
+ Processing by PostsController#redirect_with_response_status as HTML
136704
+ Redirected to http://test.host/
136705
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136706
+  (0.1ms) ROLLBACK
136707
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136708
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136709
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136710
+  (0.2ms) DELETE FROM "dce_lti_users";
136711
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136712
+  (0.1ms) BEGIN
136713
+  (0.1ms) COMMIT
136714
+  (0.1ms) BEGIN
136715
+ Processing by PostsController#redirect_with_response_status as HTML
136716
+ Redirected to http://test.host/
136717
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136718
+  (0.1ms) ROLLBACK
136719
+  (0.1ms) BEGIN
136720
+  (0.1ms) COMMIT
136721
+  (0.0ms) BEGIN
136722
+ Processing by PostsController#index as HTML
136723
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
136724
+  (0.1ms) ROLLBACK
136725
+  (0.0ms) BEGIN
136726
+  (0.0ms) COMMIT
136727
+  (0.0ms) BEGIN
136728
+ Processing by PostsController#index as HTML
136729
+ DceLti::User Load (0.4ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136730
+ Redirected to http://test.host/dce_lti/sessions/invalid
136731
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136732
+ Completed 302 Found in 5ms (ActiveRecord: 0.4ms)
136733
+  (0.1ms) ROLLBACK
136734
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
136735
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
136736
+  (0.2ms) DELETE FROM "dce_lti_nonces";
136737
+  (0.1ms) DELETE FROM "dce_lti_users";
136738
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
136739
+  (0.0ms) BEGIN
136740
+  (0.0ms) COMMIT
136741
+  (0.0ms) BEGIN
136742
+  (0.1ms) ROLLBACK
136743
+  (0.1ms) BEGIN
136744
+  (0.1ms) COMMIT
136745
+  (0.0ms) BEGIN
136746
+  (0.0ms) ROLLBACK
136747
+  (0.0ms) BEGIN
136748
+  (0.0ms) COMMIT
136749
+  (0.0ms) BEGIN
136750
+  (0.0ms) ROLLBACK
136751
+  (0.0ms) BEGIN
136752
+  (0.0ms) COMMIT
136753
+  (0.0ms) BEGIN
136754
+  (0.1ms) SAVEPOINT active_record_1
136755
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.468106"], ["nonce", "100"], ["updated_at", "2015-05-26 14:09:23.468106"]]
136756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136757
+  (0.0ms) SAVEPOINT active_record_1
136758
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.471204"], ["nonce", "100"], ["updated_at", "2015-05-26 14:09:23.471204"]]
136759
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
136760
+ DETAIL: Key (nonce)=(100) already exists.
136761
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
136762
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
136763
+ Creating nonce failed: "100"
136764
+  (0.1ms) ROLLBACK
136765
+  (0.0ms) BEGIN
136766
+  (0.1ms) COMMIT
136767
+  (0.0ms) BEGIN
136768
+  (0.0ms) SAVEPOINT active_record_1
136769
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.473920"], ["nonce", "100"], ["updated_at", "2015-05-26 14:09:23.473920"]]
136770
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136771
+  (0.1ms) ROLLBACK
136772
+  (0.0ms) BEGIN
136773
+  (0.0ms) COMMIT
136774
+  (0.0ms) BEGIN
136775
+  (0.0ms) ROLLBACK
136776
+  (0.0ms) BEGIN
136777
+  (0.0ms) COMMIT
136778
+  (0.0ms) BEGIN
136779
+  (0.0ms) ROLLBACK
136780
+  (0.0ms) BEGIN
136781
+  (0.0ms) COMMIT
136782
+  (0.0ms) BEGIN
136783
+  (0.0ms) ROLLBACK
136784
+  (0.0ms) BEGIN
136785
+  (0.0ms) COMMIT
136786
+  (0.0ms) BEGIN
136787
+  (0.0ms) ROLLBACK
136788
+  (0.0ms) BEGIN
136789
+  (0.0ms) COMMIT
136790
+  (0.0ms) BEGIN
136791
+  (0.0ms) ROLLBACK
136792
+  (0.0ms) BEGIN
136793
+  (0.0ms) COMMIT
136794
+  (0.0ms) BEGIN
136795
+ Processing by PostsController#redirect_with_response_status as HTML
136796
+ Redirected to http://test.host/
136797
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
136798
+  (0.0ms) ROLLBACK
136799
+  (0.0ms) BEGIN
136800
+  (0.0ms) COMMIT
136801
+  (0.0ms) BEGIN
136802
+ Processing by PostsController#index as HTML
136803
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
136804
+  (0.1ms) ROLLBACK
136805
+  (0.1ms) BEGIN
136806
+  (0.1ms) COMMIT
136807
+  (0.0ms) BEGIN
136808
+ Processing by PostsController#index as HTML
136809
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
136810
+ Redirected to http://test.host/dce_lti/sessions/invalid
136811
+ Filter chain halted as :authenticate_via_lti rendered or redirected
136812
+ Completed 302 Found in 5ms (ActiveRecord: 0.2ms)
136813
+  (0.1ms) ROLLBACK
136814
+  (0.0ms) BEGIN
136815
+  (0.0ms) COMMIT
136816
+  (0.0ms) BEGIN
136817
+ Processing by DceLti::ConfigsController#index as XML
136818
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136819
+  (0.1ms) ROLLBACK
136820
+  (0.1ms) BEGIN
136821
+  (0.1ms) COMMIT
136822
+  (0.0ms) BEGIN
136823
+ Processing by DceLti::ConfigsController#index as XML
136824
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136825
+  (0.1ms) ROLLBACK
136826
+  (0.0ms) BEGIN
136827
+  (0.0ms) COMMIT
136828
+  (0.0ms) BEGIN
136829
+ Processing by DceLti::ConfigsController#index as XML
136830
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
136831
+  (0.0ms) ROLLBACK
136832
+  (0.0ms) BEGIN
136833
+  (0.0ms) COMMIT
136834
+  (0.0ms) BEGIN
136835
+ Processing by DceLti::ConfigsController#index as XML
136836
+ Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136837
+  (0.1ms) ROLLBACK
136838
+  (0.0ms) BEGIN
136839
+  (0.0ms) COMMIT
136840
+  (0.0ms) BEGIN
136841
+ Processing by DceLti::ConfigsController#index as XML
136842
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
136843
+  (0.1ms) ROLLBACK
136844
+  (0.0ms) BEGIN
136845
+  (0.0ms) COMMIT
136846
+  (0.0ms) BEGIN
136847
+  (0.1ms) ROLLBACK
136848
+  (0.0ms) BEGIN
136849
+  (0.0ms) COMMIT
136850
+  (0.0ms) BEGIN
136851
+  (0.1ms) ROLLBACK
136852
+  (0.1ms) BEGIN
136853
+  (0.0ms) COMMIT
136854
+  (0.0ms) BEGIN
136855
+  (0.1ms) SAVEPOINT active_record_1
136856
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136857
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
136858
+  (0.1ms) ROLLBACK
136859
+  (0.1ms) BEGIN
136860
+  (0.1ms) COMMIT
136861
+  (0.1ms) BEGIN
136862
+  (0.1ms) ROLLBACK
136863
+  (0.1ms) BEGIN
136864
+  (0.1ms) COMMIT
136865
+  (0.1ms) BEGIN
136866
+  (0.1ms) ROLLBACK
136867
+  (0.0ms) BEGIN
136868
+  (0.0ms) COMMIT
136869
+  (0.0ms) BEGIN
136870
+  (0.0ms) SAVEPOINT active_record_1
136871
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1
136872
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:09:23.538531"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 14:09:23.538531"]]
136873
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136874
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 31]]
136875
+  (0.1ms) ROLLBACK
136876
+  (0.0ms) BEGIN
136877
+  (0.1ms) COMMIT
136878
+  (0.0ms) BEGIN
136879
+  (0.0ms) SAVEPOINT active_record_1
136880
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1
136881
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:09:23.541946"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 14:09:23.541946"]]
136882
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136883
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 32]]
136884
+  (0.1ms) ROLLBACK
136885
+  (0.0ms) BEGIN
136886
+  (0.0ms) COMMIT
136887
+  (0.0ms) BEGIN
136888
+  (0.0ms) SAVEPOINT active_record_1
136889
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1
136890
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:09:23.544636"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:09:23.544636"]]
136891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136892
+  (0.1ms) ROLLBACK
136893
+  (0.0ms) BEGIN
136894
+  (0.0ms) COMMIT
136895
+  (0.0ms) BEGIN
136896
+  (0.0ms) SAVEPOINT active_record_1
136897
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
136898
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:09:23.547900"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:09:23.547900"]]
136899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136900
+  (0.0ms) ROLLBACK
136901
+  (0.1ms) BEGIN
136902
+  (0.0ms) COMMIT
136903
+  (0.0ms) BEGIN
136904
+  (0.2ms) SAVEPOINT active_record_1
136905
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
136906
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:09:23.550813"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:09:23.550813"]]
136907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136908
+  (0.1ms) ROLLBACK
136909
+  (0.0ms) BEGIN
136910
+  (0.0ms) COMMIT
136911
+  (0.0ms) BEGIN
136912
+  (0.0ms) ROLLBACK
136913
+  (0.0ms) BEGIN
136914
+  (0.0ms) COMMIT
136915
+  (0.0ms) BEGIN
136916
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
136917
+  (0.1ms) SAVEPOINT active_record_1
136918
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.557996"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 14:09:23.557996"]]
136919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136920
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
136921
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
136922
+  (0.1ms) ROLLBACK
136923
+  (0.0ms) BEGIN
136924
+  (0.0ms) COMMIT
136925
+  (0.0ms) BEGIN
136926
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136927
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136928
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136929
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
136930
+  (0.1ms) ROLLBACK
136931
+  (0.0ms) BEGIN
136932
+  (0.0ms) COMMIT
136933
+  (0.0ms) BEGIN
136934
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136935
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
136936
+  (0.1ms) ROLLBACK
136937
+  (0.0ms) BEGIN
136938
+  (0.0ms) COMMIT
136939
+  (0.0ms) BEGIN
136940
+ Processing by DceLti::SessionsController#create as HTML
136941
+  (0.0ms) SAVEPOINT active_record_1
136942
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.573291"], ["nonce", #<RSpec::Mocks::Double:0x3fa021304458 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.573291"]]
136943
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136944
+ Redirected to http://test.host/?_dummy_session=c17ab2df063c8660c71a283e566ecadd
136945
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
136946
+  (0.1ms) ROLLBACK
136947
+  (0.0ms) BEGIN
136948
+  (0.0ms) COMMIT
136949
+  (0.0ms) BEGIN
136950
+ Processing by DceLti::SessionsController#create as HTML
136951
+  (0.0ms) SAVEPOINT active_record_1
136952
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.576979"], ["nonce", #<RSpec::Mocks::Double:0x3fa0212f2a3c @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.576979"]]
136953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136954
+ Completed 200 OK in 3ms (Views: 1.5ms | ActiveRecord: 0.3ms)
136955
+  (0.1ms) ROLLBACK
136956
+  (0.0ms) BEGIN
136957
+  (0.0ms) COMMIT
136958
+  (0.0ms) BEGIN
136959
+ Processing by DceLti::SessionsController#create as HTML
136960
+ Parameters: {"oauth_consumer_key"=>"a key"}
136961
+  (0.0ms) SAVEPOINT active_record_1
136962
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.581520"], ["nonce", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.581520"]]
136963
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136964
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136965
+  (0.0ms) SAVEPOINT active_record_1
136966
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136967
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.583474"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:09:23.583474"]]
136968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
136969
+  (0.0ms) SAVEPOINT active_record_1
136970
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 37) LIMIT 1
136971
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 37 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.585532"], ["user_image", #<RSpec::Mocks::Double:0x3fa022448368 @name="Tool Provider">]]
136972
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136973
+ Redirected to http://test.host/?_dummy_session=c1e347f52522fd46feac99ef88becf17
136974
+ Completed 302 Found in 6ms (ActiveRecord: 1.2ms)
136975
+  (0.1ms) ROLLBACK
136976
+  (0.1ms) BEGIN
136977
+  (0.0ms) COMMIT
136978
+  (0.1ms) BEGIN
136979
+ Processing by DceLti::SessionsController#create as HTML
136980
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
136981
+  (0.1ms) ROLLBACK
136982
+  (0.0ms) BEGIN
136983
+  (0.0ms) COMMIT
136984
+  (0.0ms) BEGIN
136985
+ Processing by DceLti::SessionsController#create as HTML
136986
+  (0.0ms) SAVEPOINT active_record_1
136987
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.593358"], ["nonce", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.593358"]]
136988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136989
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136990
+  (0.0ms) SAVEPOINT active_record_1
136991
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
136992
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.595436"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:09:23.595436"]]
136993
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136994
+  (0.1ms) SAVEPOINT active_record_1
136995
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 38) LIMIT 1
136996
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 38 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.596709"], ["user_image", #<RSpec::Mocks::Double:0x3fa02247b9c0 @name="Tool Provider">]]
136997
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136998
+ Redirected to http://test.host/?_dummy_session=ee3faf5f6d51293da5cac50a8a643ed0
136999
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
137000
+  (0.1ms) ROLLBACK
137001
+  (0.0ms) BEGIN
137002
+  (0.0ms) COMMIT
137003
+  (0.0ms) BEGIN
137004
+ Processing by DceLti::SessionsController#create as HTML
137005
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
137006
+  (0.1ms) SAVEPOINT active_record_1
137007
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.600229"], ["nonce", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.600229"]]
137008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137009
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137010
+  (0.0ms) SAVEPOINT active_record_1
137011
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137012
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.602301"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:09:23.602301"]]
137013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137014
+  (0.1ms) SAVEPOINT active_record_1
137015
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 39) LIMIT 1
137016
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 39 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.603943"], ["user_image", #<RSpec::Mocks::Double:0x3fa02128be18 @name="Tool Provider">]]
137017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137018
+ Redirected to http://test.host/?_dummy_session=85bf04833946211fa8a175f7c88ba284
137019
+ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
137020
+  (0.1ms) ROLLBACK
137021
+  (0.1ms) BEGIN
137022
+  (0.1ms) COMMIT
137023
+  (0.0ms) BEGIN
137024
+ Processing by DceLti::SessionsController#create as HTML
137025
+  (0.1ms) SAVEPOINT active_record_1
137026
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.608670"], ["nonce", #<RSpec::Mocks::Double:0x3fa0224b6b74 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.608670"]]
137027
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137028
+ Redirected to http://test.host/?_dummy_session=ac9d2612b08d6ff9cf6ba083e09614f5
137029
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137030
+  (0.1ms) ROLLBACK
137031
+  (0.0ms) BEGIN
137032
+  (0.0ms) COMMIT
137033
+  (0.0ms) BEGIN
137034
+ Processing by DceLti::SessionsController#create as HTML
137035
+ Parameters: {"user_id"=>"oauth_id"}
137036
+  (0.0ms) SAVEPOINT active_record_1
137037
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.612408"], ["nonce", #<RSpec::Mocks::Double:0x3fa021259be8 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.612408"]]
137038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137039
+ Redirected to http://test.host/?_dummy_session=fcbd4daebb26df8b14d8bbd13d3411da
137040
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137041
+  (0.1ms) ROLLBACK
137042
+  (0.0ms) BEGIN
137043
+  (0.0ms) COMMIT
137044
+  (0.0ms) BEGIN
137045
+ Processing by DceLti::SessionsController#create as HTML
137046
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
137047
+  (0.0ms) SAVEPOINT active_record_1
137048
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.616101"], ["nonce", #<RSpec::Mocks::Double:0x3fa0224dc7e8 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.616101"]]
137049
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137050
+ Redirected to http://test.host/?_dummy_session=e77c99e65041d17afdbf498057cb3c3c
137051
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137052
+  (0.1ms) ROLLBACK
137053
+  (0.0ms) BEGIN
137054
+  (0.0ms) COMMIT
137055
+  (0.0ms) BEGIN
137056
+ Processing by DceLti::SessionsController#create as HTML
137057
+  (0.0ms) SAVEPOINT active_record_1
137058
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.619897"], ["nonce", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.619897"]]
137059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137060
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137061
+  (0.1ms) SAVEPOINT active_record_1
137062
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137063
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:09:23.621879"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:09:23.621879"]]
137064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137065
+  (0.0ms) SAVEPOINT active_record_1
137066
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 40) LIMIT 1
137067
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 40 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">], ["updated_at", "2015-05-26 14:09:23.623314"], ["user_image", #<RSpec::Mocks::Double:0x3fa021239e74 @name="Tool Provider">]]
137068
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137069
+ Redirected to http://test.host/sessions/create
137070
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
137071
+  (0.1ms) ROLLBACK
137072
+  (0.1ms) BEGIN
137073
+  (0.0ms) COMMIT
137074
+  (0.0ms) BEGIN
137075
+ Processing by DceLti::SessionsController#create as HTML
137076
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
137077
+  (0.1ms) ROLLBACK
137078
+  (0.0ms) BEGIN
137079
+  (0.0ms) COMMIT
137080
+  (0.1ms) BEGIN
137081
+ Processing by DceLti::SessionsController#create as HTML
137082
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
137083
+  (0.1ms) ROLLBACK
137084
+  (0.0ms) BEGIN
137085
+  (0.0ms) COMMIT
137086
+  (0.0ms) BEGIN
137087
+ Processing by DceLti::SessionsController#create as HTML
137088
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
137089
+  (0.1ms) ROLLBACK
137090
+  (0.0ms) BEGIN
137091
+  (0.0ms) COMMIT
137092
+  (0.0ms) BEGIN
137093
+ Processing by PostsController#index as HTML
137094
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137095
+ Redirected to http://test.host/dce_lti/sessions/invalid
137096
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137097
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137098
+  (0.1ms) ROLLBACK
137099
+  (0.0ms) BEGIN
137100
+  (0.0ms) COMMIT
137101
+  (0.0ms) BEGIN
137102
+ Started GET "/" for 127.0.0.1 at 2015-05-26 10:09:23 -0400
137103
+ Processing by PostsController#index as HTML
137104
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137105
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
137106
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137107
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
137108
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 10:09:23 -0400
137109
+ Processing by DceLti::SessionsController#invalid as HTML
137110
+ Completed 200 OK in 84ms (Views: 84.4ms | ActiveRecord: 0.0ms)
137111
+  (0.1ms) ROLLBACK
137112
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
137113
+  (0.9ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
137114
+  (0.2ms) DELETE FROM "dce_lti_nonces";
137115
+  (0.1ms) DELETE FROM "dce_lti_users";
137116
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
137117
+  (0.0ms) BEGIN
137118
+  (0.0ms) COMMIT
137119
+  (0.0ms) BEGIN
137120
+ Processing by PostsController#index as HTML
137121
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137122
+ Redirected to http://test.host/dce_lti/sessions/invalid
137123
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137124
+ Completed 302 Found in 5ms (ActiveRecord: 0.3ms)
137125
+  (0.1ms) ROLLBACK
137126
+  (0.0ms) BEGIN
137127
+  (0.0ms) COMMIT
137128
+  (0.0ms) BEGIN
137129
+ Processing by PostsController#redirect_with_response_status as HTML
137130
+ Redirected to http://test.host/
137131
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
137132
+  (0.1ms) ROLLBACK
137133
+  (0.0ms) BEGIN
137134
+  (0.0ms) COMMIT
137135
+  (0.0ms) BEGIN
137136
+ Processing by PostsController#index as HTML
137137
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
137138
+  (0.1ms) ROLLBACK
137139
+  (0.0ms) BEGIN
137140
+  (0.0ms) COMMIT
137141
+  (0.0ms) BEGIN
137142
+ Processing by PostsController#index as HTML
137143
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137144
+ Redirected to http://test.host/dce_lti/sessions/invalid
137145
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137146
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137147
+  (0.1ms) ROLLBACK
137148
+  (0.0ms) BEGIN
137149
+  (0.0ms) COMMIT
137150
+  (0.0ms) BEGIN
137151
+  (0.0ms) ROLLBACK
137152
+  (0.0ms) BEGIN
137153
+  (0.0ms) COMMIT
137154
+  (0.0ms) BEGIN
137155
+  (0.1ms) ROLLBACK
137156
+  (0.0ms) BEGIN
137157
+  (0.0ms) COMMIT
137158
+  (0.0ms) BEGIN
137159
+  (0.1ms) SAVEPOINT active_record_1
137160
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137161
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
137162
+  (0.1ms) ROLLBACK
137163
+  (0.1ms) BEGIN
137164
+  (0.0ms) COMMIT
137165
+  (0.0ms) BEGIN
137166
+  (0.0ms) ROLLBACK
137167
+  (0.0ms) BEGIN
137168
+  (0.0ms) COMMIT
137169
+  (0.0ms) BEGIN
137170
+  (0.0ms) ROLLBACK
137171
+  (0.0ms) BEGIN
137172
+  (0.0ms) COMMIT
137173
+  (0.0ms) BEGIN
137174
+  (0.0ms) ROLLBACK
137175
+  (0.1ms) BEGIN
137176
+  (0.1ms) COMMIT
137177
+  (0.1ms) BEGIN
137178
+  (0.1ms) ROLLBACK
137179
+  (0.0ms) BEGIN
137180
+  (0.0ms) COMMIT
137181
+  (0.0ms) BEGIN
137182
+  (0.0ms) SAVEPOINT active_record_1
137183
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.370814"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:04.370814"]]
137184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137185
+  (0.0ms) SAVEPOINT active_record_1
137186
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.372138"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:04.372138"]]
137187
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
137188
+ DETAIL: Key (nonce)=(100) already exists.
137189
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
137190
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
137191
+ Creating nonce failed: "100"
137192
+  (0.1ms) ROLLBACK
137193
+  (0.0ms) BEGIN
137194
+  (0.0ms) COMMIT
137195
+  (0.0ms) BEGIN
137196
+  (0.0ms) SAVEPOINT active_record_1
137197
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.373755"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:04.373755"]]
137198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137199
+  (0.0ms) ROLLBACK
137200
+  (0.0ms) BEGIN
137201
+  (0.0ms) COMMIT
137202
+  (0.0ms) BEGIN
137203
+ Processing by DceLti::SessionsController#create as HTML
137204
+ Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)
137205
+  (0.1ms) ROLLBACK
137206
+  (0.1ms) BEGIN
137207
+  (0.0ms) COMMIT
137208
+  (0.1ms) BEGIN
137209
+ Processing by DceLti::SessionsController#create as HTML
137210
+  (0.1ms) SAVEPOINT active_record_1
137211
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.381848"], ["nonce", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.381848"]]
137212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137213
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137214
+  (0.1ms) SAVEPOINT active_record_1
137215
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137216
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.383974"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:04.383974"]]
137217
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137218
+  (0.0ms) SAVEPOINT active_record_1
137219
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 41) LIMIT 1
137220
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 41 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.386054"], ["user_image", #<RSpec::Mocks::Double:0x3f908e4cf3d4 @name="Tool Provider">]]
137221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137222
+ Redirected to http://test.host/?_dummy_session=759df0764d68f102fb6639394fbb04d0
137223
+ Completed 302 Found in 6ms (ActiveRecord: 1.4ms)
137224
+  (0.1ms) ROLLBACK
137225
+  (0.0ms) BEGIN
137226
+  (0.0ms) COMMIT
137227
+  (0.0ms) BEGIN
137228
+ Processing by DceLti::SessionsController#create as HTML
137229
+  (0.0ms) SAVEPOINT active_record_1
137230
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.390085"], ["nonce", #<RSpec::Mocks::Double:0x3f908e4ace74 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.390085"]]
137231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137232
+ Redirected to http://test.host/?_dummy_session=23629c3a4375d6e6a0e4c4cdbb9a2c62
137233
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
137234
+  (0.1ms) ROLLBACK
137235
+  (0.0ms) BEGIN
137236
+  (0.0ms) COMMIT
137237
+  (0.0ms) BEGIN
137238
+ Processing by DceLti::SessionsController#create as HTML
137239
+ Parameters: {"oauth_consumer_key"=>"a key"}
137240
+  (0.0ms) SAVEPOINT active_record_1
137241
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.393265"], ["nonce", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.393265"]]
137242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137243
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137244
+  (0.1ms) SAVEPOINT active_record_1
137245
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137246
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.395037"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:04.395037"]]
137247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137248
+  (0.0ms) SAVEPOINT active_record_1
137249
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 42) LIMIT 1
137250
+ SQL (0.1ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 42 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.396182"], ["user_image", #<RSpec::Mocks::Double:0x3f908f484950 @name="Tool Provider">]]
137251
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137252
+ Redirected to http://test.host/?_dummy_session=80f459b46838510a1e47750f581cc208
137253
+ Completed 302 Found in 5ms (ActiveRecord: 1.0ms)
137254
+  (0.1ms) ROLLBACK
137255
+  (0.1ms) BEGIN
137256
+  (0.1ms) COMMIT
137257
+  (0.1ms) BEGIN
137258
+ Processing by DceLti::SessionsController#create as HTML
137259
+  (0.1ms) SAVEPOINT active_record_1
137260
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.401489"], ["nonce", #<RSpec::Mocks::Double:0x3f908e485004 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.401489"]]
137261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137262
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
137263
+  (0.1ms) ROLLBACK
137264
+  (0.1ms) BEGIN
137265
+  (0.1ms) COMMIT
137266
+  (0.0ms) BEGIN
137267
+ Processing by DceLti::SessionsController#create as HTML
137268
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
137269
+  (0.1ms) SAVEPOINT active_record_1
137270
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.405183"], ["nonce", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.405183"]]
137271
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137272
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137273
+  (0.1ms) SAVEPOINT active_record_1
137274
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137275
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.407019"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:04.407019"]]
137276
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137277
+  (0.1ms) SAVEPOINT active_record_1
137278
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 43) LIMIT 1
137279
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 43 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.408392"], ["user_image", #<RSpec::Mocks::Double:0x3f908e472170 @name="Tool Provider">]]
137280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137281
+ Redirected to http://test.host/?_dummy_session=780c7fe1b98becb4c1637a139bf85069
137282
+ Completed 302 Found in 5ms (ActiveRecord: 1.5ms)
137283
+  (0.1ms) ROLLBACK
137284
+  (0.0ms) BEGIN
137285
+  (0.0ms) COMMIT
137286
+  (0.0ms) BEGIN
137287
+ Processing by DceLti::SessionsController#create as HTML
137288
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
137289
+  (0.0ms) SAVEPOINT active_record_1
137290
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.412853"], ["nonce", #<RSpec::Mocks::Double:0x3f908f4d80a0 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.412853"]]
137291
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137292
+ Redirected to http://test.host/?_dummy_session=c727c1f5565c2eae6c008b504eefb3e7
137293
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137294
+  (0.1ms) ROLLBACK
137295
+  (0.1ms) BEGIN
137296
+  (0.0ms) COMMIT
137297
+  (0.0ms) BEGIN
137298
+ Processing by DceLti::SessionsController#create as HTML
137299
+ Parameters: {"user_id"=>"oauth_id"}
137300
+  (0.1ms) SAVEPOINT active_record_1
137301
+ SQL (1.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.416858"], ["nonce", #<RSpec::Mocks::Double:0x3f908e43f310 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.416858"]]
137302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137303
+ Redirected to http://test.host/?_dummy_session=1f2f882e808df35e9cf7cfa2626c6803
137304
+ Completed 302 Found in 3ms (ActiveRecord: 1.4ms)
137305
+  (0.1ms) ROLLBACK
137306
+  (0.0ms) BEGIN
137307
+  (0.0ms) COMMIT
137308
+  (0.0ms) BEGIN
137309
+ Processing by DceLti::SessionsController#create as HTML
137310
+  (0.0ms) SAVEPOINT active_record_1
137311
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.422414"], ["nonce", #<RSpec::Mocks::Double:0x3f908f4fc0a4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.422414"]]
137312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137313
+ Redirected to http://test.host/?_dummy_session=a6c845581c859ddd3c87a7a380ff3dbd
137314
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137315
+  (0.0ms) ROLLBACK
137316
+  (0.0ms) BEGIN
137317
+  (0.0ms) COMMIT
137318
+  (0.0ms) BEGIN
137319
+ Processing by DceLti::SessionsController#create as HTML
137320
+  (0.0ms) SAVEPOINT active_record_1
137321
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.425959"], ["nonce", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.425959"]]
137322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137323
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137324
+  (0.0ms) SAVEPOINT active_record_1
137325
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137326
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.427870"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:04.427870"]]
137327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137328
+  (0.0ms) SAVEPOINT active_record_1
137329
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 44) LIMIT 1
137330
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 44 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:04.429159"], ["user_image", #<RSpec::Mocks::Double:0x3f908f513a24 @name="Tool Provider">]]
137331
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137332
+ Redirected to http://test.host/sessions/create
137333
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
137334
+  (0.1ms) ROLLBACK
137335
+  (0.0ms) BEGIN
137336
+  (0.0ms) COMMIT
137337
+  (0.0ms) BEGIN
137338
+ Processing by DceLti::SessionsController#create as HTML
137339
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
137340
+  (0.0ms) ROLLBACK
137341
+  (0.0ms) BEGIN
137342
+  (0.0ms) COMMIT
137343
+  (0.0ms) BEGIN
137344
+ Processing by DceLti::SessionsController#create as HTML
137345
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
137346
+  (0.0ms) ROLLBACK
137347
+  (0.0ms) BEGIN
137348
+  (0.0ms) COMMIT
137349
+  (0.0ms) BEGIN
137350
+ Processing by DceLti::SessionsController#create as HTML
137351
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
137352
+  (0.1ms) ROLLBACK
137353
+  (0.0ms) BEGIN
137354
+  (0.0ms) COMMIT
137355
+  (0.0ms) BEGIN
137356
+  (0.0ms) ROLLBACK
137357
+  (0.0ms) BEGIN
137358
+  (0.0ms) COMMIT
137359
+  (0.0ms) BEGIN
137360
+  (0.0ms) ROLLBACK
137361
+  (0.0ms) BEGIN
137362
+  (0.0ms) COMMIT
137363
+  (0.0ms) BEGIN
137364
+  (0.0ms) ROLLBACK
137365
+  (0.0ms) BEGIN
137366
+  (0.0ms) COMMIT
137367
+  (0.0ms) BEGIN
137368
+  (0.0ms) ROLLBACK
137369
+  (0.0ms) BEGIN
137370
+  (0.0ms) COMMIT
137371
+  (0.0ms) BEGIN
137372
+  (0.0ms) SAVEPOINT active_record_1
137373
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
137374
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:04.444293"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 14:12:04.444293"]]
137375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137376
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 45]]
137377
+  (0.0ms) ROLLBACK
137378
+  (0.0ms) BEGIN
137379
+  (0.0ms) COMMIT
137380
+  (0.0ms) BEGIN
137381
+  (0.0ms) SAVEPOINT active_record_1
137382
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
137383
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:04.447220"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 14:12:04.447220"]]
137384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137385
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 46]]
137386
+  (0.0ms) ROLLBACK
137387
+  (0.0ms) BEGIN
137388
+  (0.0ms) COMMIT
137389
+  (0.0ms) BEGIN
137390
+  (0.0ms) SAVEPOINT active_record_1
137391
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1
137392
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:04.449697"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:04.449697"]]
137393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137394
+  (0.1ms) ROLLBACK
137395
+  (0.0ms) BEGIN
137396
+  (0.0ms) COMMIT
137397
+  (0.0ms) BEGIN
137398
+  (0.0ms) SAVEPOINT active_record_1
137399
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1
137400
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:04.453063"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:04.453063"]]
137401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137402
+  (0.0ms) ROLLBACK
137403
+  (0.0ms) BEGIN
137404
+  (0.0ms) COMMIT
137405
+  (0.0ms) BEGIN
137406
+  (0.0ms) SAVEPOINT active_record_1
137407
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1
137408
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:04.455430"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:04.455430"]]
137409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137410
+  (0.1ms) ROLLBACK
137411
+  (0.0ms) BEGIN
137412
+  (0.0ms) COMMIT
137413
+  (0.0ms) BEGIN
137414
+  (0.1ms) ROLLBACK
137415
+  (0.0ms) BEGIN
137416
+  (0.0ms) COMMIT
137417
+  (0.0ms) BEGIN
137418
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
137419
+  (0.0ms) SAVEPOINT active_record_1
137420
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:04.462825"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 14:12:04.462825"]]
137421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137422
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
137423
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
137424
+  (0.1ms) ROLLBACK
137425
+  (0.0ms) BEGIN
137426
+  (0.0ms) COMMIT
137427
+  (0.0ms) BEGIN
137428
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137429
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137430
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137431
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137432
+  (0.1ms) ROLLBACK
137433
+  (0.0ms) BEGIN
137434
+  (0.0ms) COMMIT
137435
+  (0.0ms) BEGIN
137436
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137437
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137438
+  (0.1ms) ROLLBACK
137439
+  (0.0ms) BEGIN
137440
+  (0.0ms) COMMIT
137441
+  (0.0ms) BEGIN
137442
+  (0.1ms) ROLLBACK
137443
+  (0.0ms) BEGIN
137444
+  (0.0ms) COMMIT
137445
+  (0.0ms) BEGIN
137446
+  (0.0ms) ROLLBACK
137447
+  (0.0ms) BEGIN
137448
+  (0.0ms) COMMIT
137449
+  (0.0ms) BEGIN
137450
+ Processing by DceLti::ConfigsController#index as XML
137451
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137452
+  (0.0ms) ROLLBACK
137453
+  (0.0ms) BEGIN
137454
+  (0.0ms) COMMIT
137455
+  (0.0ms) BEGIN
137456
+ Processing by DceLti::ConfigsController#index as XML
137457
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137458
+  (0.0ms) ROLLBACK
137459
+  (0.0ms) BEGIN
137460
+  (0.0ms) COMMIT
137461
+  (0.0ms) BEGIN
137462
+ Processing by DceLti::ConfigsController#index as XML
137463
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
137464
+  (0.0ms) ROLLBACK
137465
+  (0.0ms) BEGIN
137466
+  (0.0ms) COMMIT
137467
+  (0.0ms) BEGIN
137468
+ Processing by DceLti::ConfigsController#index as XML
137469
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137470
+  (0.1ms) ROLLBACK
137471
+  (0.0ms) BEGIN
137472
+  (0.0ms) COMMIT
137473
+  (0.0ms) BEGIN
137474
+ Processing by DceLti::ConfigsController#index as XML
137475
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
137476
+  (0.1ms) ROLLBACK
137477
+  (0.0ms) BEGIN
137478
+  (0.0ms) COMMIT
137479
+  (0.0ms) BEGIN
137480
+ Started GET "/" for 127.0.0.1 at 2015-05-26 10:12:04 -0400
137481
+ Processing by PostsController#index as HTML
137482
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137483
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
137484
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137485
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
137486
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 10:12:04 -0400
137487
+ Processing by DceLti::SessionsController#invalid as HTML
137488
+ Completed 200 OK in 87ms (Views: 86.7ms | ActiveRecord: 0.0ms)
137489
+  (0.1ms) ROLLBACK
137490
+  (0.2ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
137491
+  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
137492
+  (0.2ms) DELETE FROM "dce_lti_nonces";
137493
+  (0.1ms) DELETE FROM "dce_lti_users";
137494
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
137495
+  (0.0ms) BEGIN
137496
+  (0.0ms) COMMIT
137497
+  (0.0ms) BEGIN
137498
+  (0.1ms) ROLLBACK
137499
+  (0.0ms) BEGIN
137500
+  (0.0ms) COMMIT
137501
+  (0.0ms) BEGIN
137502
+  (0.0ms) SAVEPOINT active_record_1
137503
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1
137504
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:13.520503"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 14:12:13.520503"]]
137505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137506
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 51]]
137507
+  (0.1ms) ROLLBACK
137508
+  (0.1ms) BEGIN
137509
+  (0.1ms) COMMIT
137510
+  (0.0ms) BEGIN
137511
+  (0.0ms) SAVEPOINT active_record_1
137512
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1
137513
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:13.526874"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 14:12:13.526874"]]
137514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137515
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 52]]
137516
+  (0.1ms) ROLLBACK
137517
+  (0.0ms) BEGIN
137518
+  (0.0ms) COMMIT
137519
+  (0.0ms) BEGIN
137520
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
137521
+  (0.1ms) SAVEPOINT active_record_1
137522
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.531905"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 14:12:13.531905"]]
137523
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137524
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
137525
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
137526
+  (0.1ms) ROLLBACK
137527
+  (0.0ms) BEGIN
137528
+  (0.0ms) COMMIT
137529
+  (0.0ms) BEGIN
137530
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137531
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137532
+  (0.0ms) ROLLBACK
137533
+  (0.0ms) BEGIN
137534
+  (0.0ms) COMMIT
137535
+  (0.0ms) BEGIN
137536
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137537
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137538
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137539
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
137540
+  (0.1ms) ROLLBACK
137541
+  (0.0ms) BEGIN
137542
+  (0.0ms) COMMIT
137543
+  (0.0ms) BEGIN
137544
+  (0.1ms) ROLLBACK
137545
+  (0.0ms) BEGIN
137546
+  (0.0ms) COMMIT
137547
+  (0.0ms) BEGIN
137548
+  (0.0ms) SAVEPOINT active_record_1
137549
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1
137550
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:13.548986"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:13.548986"]]
137551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137552
+  (0.1ms) ROLLBACK
137553
+  (0.0ms) BEGIN
137554
+  (0.0ms) COMMIT
137555
+  (0.0ms) BEGIN
137556
+  (0.0ms) SAVEPOINT active_record_1
137557
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
137558
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:13.551384"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:13.551384"]]
137559
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137560
+  (0.0ms) ROLLBACK
137561
+  (0.0ms) BEGIN
137562
+  (0.0ms) COMMIT
137563
+  (0.0ms) BEGIN
137564
+  (0.0ms) SAVEPOINT active_record_1
137565
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
137566
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:13.553702"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:13.553702"]]
137567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137568
+  (0.0ms) ROLLBACK
137569
+  (0.0ms) BEGIN
137570
+  (0.0ms) COMMIT
137571
+  (0.0ms) BEGIN
137572
+ Processing by DceLti::ConfigsController#index as XML
137573
+ Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 0.0ms)
137574
+  (0.1ms) ROLLBACK
137575
+  (0.0ms) BEGIN
137576
+  (0.0ms) COMMIT
137577
+  (0.0ms) BEGIN
137578
+ Processing by DceLti::ConfigsController#index as XML
137579
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
137580
+  (0.1ms) ROLLBACK
137581
+  (0.0ms) BEGIN
137582
+  (0.0ms) COMMIT
137583
+  (0.0ms) BEGIN
137584
+ Processing by DceLti::ConfigsController#index as XML
137585
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137586
+  (0.0ms) ROLLBACK
137587
+  (0.0ms) BEGIN
137588
+  (0.0ms) COMMIT
137589
+  (0.0ms) BEGIN
137590
+ Processing by DceLti::ConfigsController#index as XML
137591
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
137592
+  (0.0ms) ROLLBACK
137593
+  (0.0ms) BEGIN
137594
+  (0.0ms) COMMIT
137595
+  (0.0ms) BEGIN
137596
+ Processing by DceLti::ConfigsController#index as XML
137597
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
137598
+  (0.0ms) ROLLBACK
137599
+  (0.0ms) BEGIN
137600
+  (0.0ms) COMMIT
137601
+  (0.0ms) BEGIN
137602
+  (0.0ms) ROLLBACK
137603
+  (0.0ms) BEGIN
137604
+  (0.0ms) COMMIT
137605
+  (0.0ms) BEGIN
137606
+  (0.0ms) ROLLBACK
137607
+  (0.0ms) BEGIN
137608
+  (0.0ms) COMMIT
137609
+  (0.0ms) BEGIN
137610
+  (0.0ms) ROLLBACK
137611
+  (0.0ms) BEGIN
137612
+  (0.0ms) COMMIT
137613
+  (0.0ms) BEGIN
137614
+  (0.0ms) SAVEPOINT active_record_1
137615
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137616
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
137617
+  (0.0ms) ROLLBACK
137618
+  (0.0ms) BEGIN
137619
+  (0.0ms) COMMIT
137620
+  (0.0ms) BEGIN
137621
+  (0.0ms) ROLLBACK
137622
+  (0.0ms) BEGIN
137623
+  (0.0ms) COMMIT
137624
+  (0.0ms) BEGIN
137625
+  (0.1ms) ROLLBACK
137626
+  (0.0ms) BEGIN
137627
+  (0.0ms) COMMIT
137628
+  (0.0ms) BEGIN
137629
+  (0.0ms) ROLLBACK
137630
+  (0.0ms) BEGIN
137631
+  (0.0ms) COMMIT
137632
+  (0.0ms) BEGIN
137633
+ Processing by DceLti::SessionsController#create as HTML
137634
+  (0.1ms) SAVEPOINT active_record_1
137635
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.593111"], ["nonce", #<RSpec::Mocks::Double:0x3fe8dac30214 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.593111"]]
137636
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137637
+ Redirected to http://test.host/?_dummy_session=1b2b4d64d3c208e887f1887db79c5802
137638
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
137639
+  (0.1ms) ROLLBACK
137640
+  (0.0ms) BEGIN
137641
+  (0.0ms) COMMIT
137642
+  (0.0ms) BEGIN
137643
+ Processing by DceLti::SessionsController#create as HTML
137644
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
137645
+  (0.1ms) ROLLBACK
137646
+  (0.0ms) BEGIN
137647
+  (0.0ms) COMMIT
137648
+  (0.0ms) BEGIN
137649
+ Processing by DceLti::SessionsController#create as HTML
137650
+  (0.0ms) SAVEPOINT active_record_1
137651
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.601483"], ["nonce", #<RSpec::Mocks::Double:0x3fe8dac73528 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.601483"]]
137652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137653
+ Completed 200 OK in 2ms (Views: 0.6ms | ActiveRecord: 0.2ms)
137654
+  (0.1ms) ROLLBACK
137655
+  (0.1ms) BEGIN
137656
+  (0.0ms) COMMIT
137657
+  (0.0ms) BEGIN
137658
+ Processing by DceLti::SessionsController#create as HTML
137659
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
137660
+  (0.0ms) SAVEPOINT active_record_1
137661
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.605659"], ["nonce", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.605659"]]
137662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137663
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137664
+  (0.0ms) SAVEPOINT active_record_1
137665
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137666
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.609315"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:13.609315"]]
137667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137668
+  (0.0ms) SAVEPOINT active_record_1
137669
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 57) LIMIT 1
137670
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 57 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.611142"], ["user_image", #<RSpec::Mocks::Double:0x3fe8d9ae8150 @name="Tool Provider">]]
137671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137672
+ Redirected to http://test.host/?_dummy_session=dbd026f80107162bf1def429ef2f45ae
137673
+ Completed 302 Found in 7ms (ActiveRecord: 1.0ms)
137674
+  (0.0ms) ROLLBACK
137675
+  (0.0ms) BEGIN
137676
+  (0.0ms) COMMIT
137677
+  (0.0ms) BEGIN
137678
+ Processing by DceLti::SessionsController#create as HTML
137679
+ Parameters: {"oauth_consumer_key"=>"a key"}
137680
+  (0.0ms) SAVEPOINT active_record_1
137681
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.615351"], ["nonce", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.615351"]]
137682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137683
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137684
+  (0.0ms) SAVEPOINT active_record_1
137685
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137686
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.617469"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:13.617469"]]
137687
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137688
+  (0.1ms) SAVEPOINT active_record_1
137689
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 58) LIMIT 1
137690
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 58 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.619171"], ["user_image", #<RSpec::Mocks::Double:0x3fe8d9ac2004 @name="Tool Provider">]]
137691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137692
+ Redirected to http://test.host/?_dummy_session=982d766aab9c5f2a9b4571640c9c0eb6
137693
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
137694
+  (0.1ms) ROLLBACK
137695
+  (0.1ms) BEGIN
137696
+  (0.1ms) COMMIT
137697
+  (0.0ms) BEGIN
137698
+ Processing by DceLti::SessionsController#create as HTML
137699
+  (0.0ms) SAVEPOINT active_record_1
137700
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.623491"], ["nonce", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.623491"]]
137701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137702
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137703
+  (0.0ms) SAVEPOINT active_record_1
137704
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137705
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.625501"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:13.625501"]]
137706
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137707
+  (0.0ms) SAVEPOINT active_record_1
137708
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 59) LIMIT 1
137709
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 59 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.626797"], ["user_image", #<RSpec::Mocks::Double:0x3fe8d9aa0e54 @name="Tool Provider">]]
137710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137711
+ Redirected to http://test.host/?_dummy_session=91d2faf9eb04335472f8e499a5400059
137712
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
137713
+  (0.1ms) ROLLBACK
137714
+  (0.0ms) BEGIN
137715
+  (0.0ms) COMMIT
137716
+  (0.0ms) BEGIN
137717
+ Processing by DceLti::SessionsController#create as HTML
137718
+  (0.1ms) SAVEPOINT active_record_1
137719
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.630688"], ["nonce", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.630688"]]
137720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137721
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137722
+  (0.0ms) SAVEPOINT active_record_1
137723
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
137724
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.632555"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:13.632555"]]
137725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137726
+  (0.1ms) SAVEPOINT active_record_1
137727
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 60) LIMIT 1
137728
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 60 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.633927"], ["user_image", #<RSpec::Mocks::Double:0x3fe8dacf436c @name="Tool Provider">]]
137729
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137730
+ Redirected to http://test.host/sessions/create
137731
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
137732
+  (0.1ms) ROLLBACK
137733
+  (0.0ms) BEGIN
137734
+  (0.0ms) COMMIT
137735
+  (0.0ms) BEGIN
137736
+ Processing by DceLti::SessionsController#create as HTML
137737
+ Parameters: {"user_id"=>"oauth_id"}
137738
+  (0.0ms) SAVEPOINT active_record_1
137739
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.638005"], ["nonce", #<RSpec::Mocks::Double:0x3fe8dad17254 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.638005"]]
137740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137741
+ Redirected to http://test.host/?_dummy_session=c74e311d1de9784ca4b4606af27a7512
137742
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
137743
+  (0.1ms) ROLLBACK
137744
+  (0.0ms) BEGIN
137745
+  (0.0ms) COMMIT
137746
+  (0.0ms) BEGIN
137747
+ Processing by DceLti::SessionsController#create as HTML
137748
+  (0.0ms) SAVEPOINT active_record_1
137749
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.642229"], ["nonce", #<RSpec::Mocks::Double:0x3fe8d9a58410 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.642229"]]
137750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137751
+ Redirected to http://test.host/?_dummy_session=fc3c75f334db75ca059ac4479ede4945
137752
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137753
+  (0.0ms) ROLLBACK
137754
+  (0.0ms) BEGIN
137755
+  (0.0ms) COMMIT
137756
+  (0.0ms) BEGIN
137757
+ Processing by DceLti::SessionsController#create as HTML
137758
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
137759
+  (0.0ms) SAVEPOINT active_record_1
137760
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.645711"], ["nonce", #<RSpec::Mocks::Double:0x3fe8dad3e9e4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:13.645711"]]
137761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137762
+ Redirected to http://test.host/?_dummy_session=89f76f6c0f8cefa7c8632ef2309ec389
137763
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137764
+  (0.0ms) ROLLBACK
137765
+  (0.0ms) BEGIN
137766
+  (0.0ms) COMMIT
137767
+  (0.0ms) BEGIN
137768
+ Processing by DceLti::SessionsController#create as HTML
137769
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
137770
+  (0.0ms) ROLLBACK
137771
+  (0.1ms) BEGIN
137772
+  (0.0ms) COMMIT
137773
+  (0.0ms) BEGIN
137774
+ Processing by DceLti::SessionsController#create as HTML
137775
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
137776
+  (0.1ms) ROLLBACK
137777
+  (0.0ms) BEGIN
137778
+  (0.0ms) COMMIT
137779
+  (0.0ms) BEGIN
137780
+ Processing by DceLti::SessionsController#create as HTML
137781
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
137782
+  (0.0ms) ROLLBACK
137783
+  (0.1ms) BEGIN
137784
+  (0.1ms) COMMIT
137785
+  (0.1ms) BEGIN
137786
+ Started GET "/" for 127.0.0.1 at 2015-05-26 10:12:13 -0400
137787
+ Processing by PostsController#index as HTML
137788
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137789
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
137790
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137791
+ Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
137792
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 10:12:13 -0400
137793
+ Processing by DceLti::SessionsController#invalid as HTML
137794
+ Completed 200 OK in 89ms (Views: 89.0ms | ActiveRecord: 0.0ms)
137795
+  (0.1ms) ROLLBACK
137796
+  (0.1ms) BEGIN
137797
+  (0.1ms) COMMIT
137798
+  (0.1ms) BEGIN
137799
+  (0.1ms) ROLLBACK
137800
+  (0.1ms) BEGIN
137801
+  (0.1ms) COMMIT
137802
+  (0.1ms) BEGIN
137803
+  (0.1ms) ROLLBACK
137804
+  (0.0ms) BEGIN
137805
+  (0.0ms) COMMIT
137806
+  (0.0ms) BEGIN
137807
+  (0.0ms) SAVEPOINT active_record_1
137808
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.767011"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:13.767011"]]
137809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137810
+  (0.0ms) SAVEPOINT active_record_1
137811
+ SQL (0.5ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.768554"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:13.768554"]]
137812
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
137813
+ DETAIL: Key (nonce)=(100) already exists.
137814
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
137815
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
137816
+ Creating nonce failed: "100"
137817
+  (0.1ms) ROLLBACK
137818
+  (0.0ms) BEGIN
137819
+  (0.0ms) COMMIT
137820
+  (0.0ms) BEGIN
137821
+  (0.0ms) SAVEPOINT active_record_1
137822
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:13.770805"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:13.770805"]]
137823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137824
+  (0.0ms) ROLLBACK
137825
+  (0.0ms) BEGIN
137826
+  (0.0ms) COMMIT
137827
+  (0.0ms) BEGIN
137828
+  (0.0ms) ROLLBACK
137829
+  (0.0ms) BEGIN
137830
+  (0.0ms) COMMIT
137831
+  (0.0ms) BEGIN
137832
+ Processing by PostsController#redirect_with_response_status as HTML
137833
+ Redirected to http://test.host/
137834
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
137835
+  (0.0ms) ROLLBACK
137836
+  (0.0ms) BEGIN
137837
+  (0.0ms) COMMIT
137838
+  (0.0ms) BEGIN
137839
+ Processing by PostsController#index as HTML
137840
+ Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)
137841
+  (0.1ms) ROLLBACK
137842
+  (0.0ms) BEGIN
137843
+  (0.0ms) COMMIT
137844
+  (0.0ms) BEGIN
137845
+ Processing by PostsController#index as HTML
137846
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137847
+ Redirected to http://test.host/dce_lti/sessions/invalid
137848
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137849
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
137850
+  (0.1ms) ROLLBACK
137851
+  (0.1ms) BEGIN
137852
+  (0.1ms) COMMIT
137853
+  (0.1ms) BEGIN
137854
+  (0.1ms) ROLLBACK
137855
+  (0.1ms) BEGIN
137856
+  (0.1ms) COMMIT
137857
+  (0.1ms) BEGIN
137858
+  (0.1ms) ROLLBACK
137859
+  (0.1ms) BEGIN
137860
+  (0.1ms) COMMIT
137861
+  (0.0ms) BEGIN
137862
+ Processing by PostsController#index as HTML
137863
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137864
+ Redirected to http://test.host/dce_lti/sessions/invalid
137865
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137866
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
137867
+  (0.1ms) ROLLBACK
137868
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
137869
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
137870
+  (0.2ms) DELETE FROM "dce_lti_nonces";
137871
+  (0.2ms) DELETE FROM "dce_lti_users";
137872
+  (0.2ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
137873
+  (0.1ms) BEGIN
137874
+  (0.1ms) COMMIT
137875
+  (0.1ms) BEGIN
137876
+  (0.1ms) ROLLBACK
137877
+  (0.1ms) BEGIN
137878
+  (0.1ms) COMMIT
137879
+  (0.1ms) BEGIN
137880
+  (0.1ms) SAVEPOINT active_record_1
137881
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
137882
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
137883
+  (0.1ms) ROLLBACK
137884
+  (0.1ms) BEGIN
137885
+  (0.1ms) COMMIT
137886
+  (0.0ms) BEGIN
137887
+ Started GET "/" for 127.0.0.1 at 2015-05-26 10:12:52 -0400
137888
+ Processing by PostsController#index as HTML
137889
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137890
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
137891
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137892
+ Completed 302 Found in 9ms (ActiveRecord: 0.3ms)
137893
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 10:12:52 -0400
137894
+ Processing by DceLti::SessionsController#invalid as HTML
137895
+ Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.7ms)
137896
+ Completed 200 OK in 91ms (Views: 90.9ms | ActiveRecord: 0.0ms)
137897
+  (0.1ms) ROLLBACK
137898
+  (0.1ms) BEGIN
137899
+  (0.1ms) COMMIT
137900
+  (0.1ms) BEGIN
137901
+  (0.1ms) ROLLBACK
137902
+  (0.1ms) BEGIN
137903
+  (0.1ms) COMMIT
137904
+  (0.0ms) BEGIN
137905
+  (0.1ms) ROLLBACK
137906
+  (0.0ms) BEGIN
137907
+  (0.0ms) COMMIT
137908
+  (0.0ms) BEGIN
137909
+  (0.0ms) ROLLBACK
137910
+  (0.0ms) BEGIN
137911
+  (0.0ms) COMMIT
137912
+  (0.0ms) BEGIN
137913
+  (0.0ms) SAVEPOINT active_record_1
137914
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.695730"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:52.695730"]]
137915
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137916
+  (0.1ms) ROLLBACK
137917
+  (0.0ms) BEGIN
137918
+  (0.0ms) COMMIT
137919
+  (0.0ms) BEGIN
137920
+  (0.0ms) SAVEPOINT active_record_1
137921
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.698972"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:52.698972"]]
137922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
137923
+  (0.0ms) SAVEPOINT active_record_1
137924
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.699839"], ["nonce", "100"], ["updated_at", "2015-05-26 14:12:52.699839"]]
137925
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
137926
+ DETAIL: Key (nonce)=(100) already exists.
137927
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
137928
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
137929
+ Creating nonce failed: "100"
137930
+  (0.1ms) ROLLBACK
137931
+  (0.1ms) BEGIN
137932
+  (0.0ms) COMMIT
137933
+  (0.0ms) BEGIN
137934
+ Processing by PostsController#index as HTML
137935
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
137936
+ Redirected to http://test.host/dce_lti/sessions/invalid
137937
+ Filter chain halted as :authenticate_via_lti rendered or redirected
137938
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
137939
+  (0.1ms) ROLLBACK
137940
+  (0.1ms) BEGIN
137941
+  (0.0ms) COMMIT
137942
+  (0.0ms) BEGIN
137943
+ Processing by DceLti::ConfigsController#index as XML
137944
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137945
+  (0.1ms) ROLLBACK
137946
+  (0.0ms) BEGIN
137947
+  (0.0ms) COMMIT
137948
+  (0.0ms) BEGIN
137949
+ Processing by DceLti::ConfigsController#index as XML
137950
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137951
+  (0.1ms) ROLLBACK
137952
+  (0.0ms) BEGIN
137953
+  (0.0ms) COMMIT
137954
+  (0.0ms) BEGIN
137955
+ Processing by DceLti::ConfigsController#index as XML
137956
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137957
+  (0.1ms) ROLLBACK
137958
+  (0.0ms) BEGIN
137959
+  (0.0ms) COMMIT
137960
+  (0.0ms) BEGIN
137961
+ Processing by DceLti::ConfigsController#index as XML
137962
+ Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.0ms)
137963
+  (0.1ms) ROLLBACK
137964
+  (0.0ms) BEGIN
137965
+  (0.1ms) COMMIT
137966
+  (0.0ms) BEGIN
137967
+ Processing by DceLti::ConfigsController#index as XML
137968
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
137969
+  (0.1ms) ROLLBACK
137970
+  (0.1ms) BEGIN
137971
+  (0.1ms) COMMIT
137972
+  (0.1ms) BEGIN
137973
+  (0.1ms) ROLLBACK
137974
+  (0.1ms) BEGIN
137975
+  (0.1ms) COMMIT
137976
+  (0.1ms) BEGIN
137977
+  (0.0ms) ROLLBACK
137978
+  (0.0ms) BEGIN
137979
+  (0.0ms) COMMIT
137980
+  (0.0ms) BEGIN
137981
+  (0.0ms) ROLLBACK
137982
+  (0.0ms) BEGIN
137983
+  (0.0ms) COMMIT
137984
+  (0.0ms) BEGIN
137985
+  (0.0ms) ROLLBACK
137986
+  (0.0ms) BEGIN
137987
+  (0.0ms) COMMIT
137988
+  (0.0ms) BEGIN
137989
+  (0.1ms) SAVEPOINT active_record_1
137990
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1
137991
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:52.746964"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:52.746964"]]
137992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137993
+  (0.1ms) ROLLBACK
137994
+  (0.0ms) BEGIN
137995
+  (0.0ms) COMMIT
137996
+  (0.0ms) BEGIN
137997
+  (0.0ms) SAVEPOINT active_record_1
137998
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1
137999
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:52.752050"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:52.752050"]]
138000
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138001
+  (0.1ms) ROLLBACK
138002
+  (0.0ms) BEGIN
138003
+  (0.0ms) COMMIT
138004
+  (0.0ms) BEGIN
138005
+  (0.0ms) ROLLBACK
138006
+  (0.0ms) BEGIN
138007
+  (0.0ms) COMMIT
138008
+  (0.0ms) BEGIN
138009
+  (0.0ms) SAVEPOINT active_record_1
138010
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1
138011
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:52.756428"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 14:12:52.756428"]]
138012
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138013
+  (0.1ms) ROLLBACK
138014
+  (0.0ms) BEGIN
138015
+  (0.0ms) COMMIT
138016
+  (0.0ms) BEGIN
138017
+  (0.0ms) SAVEPOINT active_record_1
138018
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
138019
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:52.759714"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 14:12:52.759714"]]
138020
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138021
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 4]]
138022
+  (0.0ms) ROLLBACK
138023
+  (0.1ms) BEGIN
138024
+  (0.0ms) COMMIT
138025
+  (0.0ms) BEGIN
138026
+  (0.0ms) SAVEPOINT active_record_1
138027
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
138028
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 14:12:52.763774"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 14:12:52.763774"]]
138029
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138030
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]
138031
+  (0.1ms) ROLLBACK
138032
+  (0.1ms) BEGIN
138033
+  (0.0ms) COMMIT
138034
+  (0.0ms) BEGIN
138035
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138036
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138037
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138038
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138039
+  (0.1ms) ROLLBACK
138040
+  (0.1ms) BEGIN
138041
+  (0.0ms) COMMIT
138042
+  (0.0ms) BEGIN
138043
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
138044
+  (0.1ms) SAVEPOINT active_record_1
138045
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.777953"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 14:12:52.777953"]]
138046
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138047
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
138048
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
138049
+  (0.1ms) ROLLBACK
138050
+  (0.1ms) BEGIN
138051
+  (0.1ms) COMMIT
138052
+  (0.1ms) BEGIN
138053
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138054
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138055
+  (0.1ms) ROLLBACK
138056
+  (0.0ms) BEGIN
138057
+  (0.0ms) COMMIT
138058
+  (0.0ms) BEGIN
138059
+  (0.0ms) ROLLBACK
138060
+  (0.0ms) BEGIN
138061
+  (0.0ms) COMMIT
138062
+  (0.0ms) BEGIN
138063
+  (0.0ms) ROLLBACK
138064
+  (0.1ms) BEGIN
138065
+  (0.1ms) COMMIT
138066
+  (0.1ms) BEGIN
138067
+ Processing by DceLti::SessionsController#create as HTML
138068
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
138069
+  (0.1ms) ROLLBACK
138070
+  (0.1ms) BEGIN
138071
+  (0.1ms) COMMIT
138072
+  (0.1ms) BEGIN
138073
+ Processing by DceLti::SessionsController#create as HTML
138074
+  (0.1ms) SAVEPOINT active_record_1
138075
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.799198"], ["nonce", #<RSpec::Mocks::Double:0x3f96e3f05884 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.799198"]]
138076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138077
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.3ms)
138078
+  (0.1ms) ROLLBACK
138079
+  (0.0ms) BEGIN
138080
+  (0.0ms) COMMIT
138081
+  (0.0ms) BEGIN
138082
+ Processing by DceLti::SessionsController#create as HTML
138083
+  (0.0ms) SAVEPOINT active_record_1
138084
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.804890"], ["nonce", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.804890"]]
138085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138086
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138087
+  (0.0ms) SAVEPOINT active_record_1
138088
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138089
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.807276"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:52.807276"]]
138090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138091
+  (0.1ms) SAVEPOINT active_record_1
138092
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1
138093
+ SQL (0.4ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.810777"], ["user_image", #<RSpec::Mocks::Double:0x3f96e3f6c05c @name="Tool Provider">]]
138094
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138095
+ Redirected to http://test.host/?_dummy_session=368fac92cce6563eaa84585f48ff433c
138096
+ Completed 302 Found in 8ms (ActiveRecord: 1.6ms)
138097
+  (0.1ms) ROLLBACK
138098
+  (0.1ms) BEGIN
138099
+  (0.0ms) COMMIT
138100
+  (0.0ms) BEGIN
138101
+ Processing by DceLti::SessionsController#create as HTML
138102
+  (0.0ms) SAVEPOINT active_record_1
138103
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.816504"], ["nonce", #<RSpec::Mocks::Double:0x3f96e4035ccc @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.816504"]]
138104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138105
+ Redirected to http://test.host/?_dummy_session=9777041ec062bf75ae9d23273bed2b4b
138106
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
138107
+  (0.0ms) ROLLBACK
138108
+  (0.0ms) BEGIN
138109
+  (0.0ms) COMMIT
138110
+  (0.0ms) BEGIN
138111
+ Processing by DceLti::SessionsController#create as HTML
138112
+ Parameters: {"oauth_consumer_key"=>"a key"}
138113
+  (0.0ms) SAVEPOINT active_record_1
138114
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.820602"], ["nonce", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.820602"]]
138115
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138116
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138117
+  (0.0ms) SAVEPOINT active_record_1
138118
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138119
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.822598"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:52.822598"]]
138120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138121
+  (0.0ms) SAVEPOINT active_record_1
138122
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1
138123
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.824139"], ["user_image", #<RSpec::Mocks::Double:0x3f96e406fea4 @name="Tool Provider">]]
138124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138125
+ Redirected to http://test.host/?_dummy_session=400d3ac3962679e7702b22dc67b7b988
138126
+ Completed 302 Found in 6ms (ActiveRecord: 1.0ms)
138127
+  (0.1ms) ROLLBACK
138128
+  (0.0ms) BEGIN
138129
+  (0.0ms) COMMIT
138130
+  (0.0ms) BEGIN
138131
+ Processing by DceLti::SessionsController#create as HTML
138132
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
138133
+  (0.0ms) SAVEPOINT active_record_1
138134
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.828401"], ["nonce", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.828401"]]
138135
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138136
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138137
+  (0.1ms) SAVEPOINT active_record_1
138138
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138139
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.830902"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:52.830902"]]
138140
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138141
+  (0.1ms) SAVEPOINT active_record_1
138142
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1
138143
+ SQL (0.5ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.832911"], ["user_image", #<RSpec::Mocks::Double:0x3f96e41509b8 @name="Tool Provider">]]
138144
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138145
+ Redirected to http://test.host/?_dummy_session=15eed25502a7cf0a24c877cd5bf686d0
138146
+ Completed 302 Found in 7ms (ActiveRecord: 1.7ms)
138147
+  (0.1ms) ROLLBACK
138148
+  (0.0ms) BEGIN
138149
+  (0.0ms) COMMIT
138150
+  (0.0ms) BEGIN
138151
+ Processing by DceLti::SessionsController#create as HTML
138152
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138153
+  (0.1ms) ROLLBACK
138154
+  (0.0ms) BEGIN
138155
+  (0.0ms) COMMIT
138156
+  (0.0ms) BEGIN
138157
+ Processing by DceLti::SessionsController#create as HTML
138158
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138159
+  (0.1ms) ROLLBACK
138160
+  (0.0ms) BEGIN
138161
+  (0.0ms) COMMIT
138162
+  (0.0ms) BEGIN
138163
+ Processing by DceLti::SessionsController#create as HTML
138164
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138165
+  (0.1ms) ROLLBACK
138166
+  (0.0ms) BEGIN
138167
+  (0.0ms) COMMIT
138168
+  (0.0ms) BEGIN
138169
+ Processing by DceLti::SessionsController#create as HTML
138170
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
138171
+  (0.1ms) SAVEPOINT active_record_1
138172
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.848096"], ["nonce", #<RSpec::Mocks::Double:0x3f96e430ab00 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.848096"]]
138173
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138174
+ Redirected to http://test.host/?_dummy_session=3af98dfb8540c437e70a1491cdf3cf89
138175
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
138176
+  (0.1ms) ROLLBACK
138177
+  (0.0ms) BEGIN
138178
+  (0.0ms) COMMIT
138179
+  (0.0ms) BEGIN
138180
+ Processing by DceLti::SessionsController#create as HTML
138181
+ Parameters: {"user_id"=>"oauth_id"}
138182
+  (0.1ms) SAVEPOINT active_record_1
138183
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.853423"], ["nonce", #<RSpec::Mocks::Double:0x3f96e439a50c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.853423"]]
138184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138185
+ Redirected to http://test.host/?_dummy_session=f0175fe978572c49acdbbe364095042f
138186
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
138187
+  (0.1ms) ROLLBACK
138188
+  (0.0ms) BEGIN
138189
+  (0.0ms) COMMIT
138190
+  (0.0ms) BEGIN
138191
+ Processing by DceLti::SessionsController#create as HTML
138192
+  (0.1ms) SAVEPOINT active_record_1
138193
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.859753"], ["nonce", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.859753"]]
138194
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138195
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138196
+  (0.1ms) SAVEPOINT active_record_1
138197
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138198
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.862484"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 14:12:52.862484"]]
138199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138200
+  (0.0ms) SAVEPOINT active_record_1
138201
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1
138202
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.864674"], ["user_image", #<RSpec::Mocks::Double:0x3f96e447560c @name="Tool Provider">]]
138203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138204
+ Redirected to http://test.host/sessions/create
138205
+ Completed 302 Found in 7ms (ActiveRecord: 1.3ms)
138206
+  (0.1ms) ROLLBACK
138207
+  (0.0ms) BEGIN
138208
+  (0.0ms) COMMIT
138209
+  (0.0ms) BEGIN
138210
+ Processing by DceLti::SessionsController#create as HTML
138211
+  (0.0ms) SAVEPOINT active_record_1
138212
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 14:12:52.870385"], ["nonce", #<RSpec::Mocks::Double:0x3f96e459e808 @name="Tool Provider">], ["updated_at", "2015-05-26 14:12:52.870385"]]
138213
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138214
+ Redirected to http://test.host/?_dummy_session=afe63b96396c37939aa7a0b487119717
138215
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
138216
+  (0.0ms) ROLLBACK
138217
+  (0.0ms) BEGIN
138218
+  (0.0ms) COMMIT
138219
+  (0.0ms) BEGIN
138220
+  (0.1ms) ROLLBACK
138221
+  (0.0ms) BEGIN
138222
+  (0.0ms) COMMIT
138223
+  (0.0ms) BEGIN
138224
+  (0.0ms) ROLLBACK
138225
+  (0.0ms) BEGIN
138226
+  (0.0ms) COMMIT
138227
+  (0.0ms) BEGIN
138228
+ Processing by PostsController#index as HTML
138229
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138230
+ Redirected to http://test.host/dce_lti/sessions/invalid
138231
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138232
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
138233
+  (0.1ms) ROLLBACK
138234
+  (0.1ms) BEGIN
138235
+  (0.1ms) COMMIT
138236
+  (0.1ms) BEGIN
138237
+ Processing by PostsController#index as HTML
138238
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
138239
+  (0.1ms) ROLLBACK
138240
+  (0.1ms) BEGIN
138241
+  (0.0ms) COMMIT
138242
+  (0.0ms) BEGIN
138243
+ Processing by PostsController#redirect_with_response_status as HTML
138244
+ Redirected to http://test.host/
138245
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
138246
+  (0.1ms) ROLLBACK
138247
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
138248
+  (0.8ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
138249
+  (0.2ms) DELETE FROM "dce_lti_nonces";
138250
+  (0.1ms) DELETE FROM "dce_lti_users";
138251
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
138252
+  (0.0ms) BEGIN
138253
+  (0.0ms) COMMIT
138254
+  (0.0ms) BEGIN
138255
+  (0.1ms) ROLLBACK
138256
+  (0.0ms) BEGIN
138257
+  (0.0ms) COMMIT
138258
+  (0.0ms) BEGIN
138259
+  (0.0ms) SAVEPOINT active_record_1
138260
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1
138261
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:26:40.974255"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 17:26:40.974255"]]
138262
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138263
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 11]]
138264
+  (0.1ms) ROLLBACK
138265
+  (0.0ms) BEGIN
138266
+  (0.0ms) COMMIT
138267
+  (0.0ms) BEGIN
138268
+  (0.0ms) SAVEPOINT active_record_1
138269
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1
138270
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:26:40.981588"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 17:26:40.981588"]]
138271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138272
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 12]]
138273
+  (0.1ms) ROLLBACK
138274
+  (0.0ms) BEGIN
138275
+  (0.0ms) COMMIT
138276
+  (0.0ms) BEGIN
138277
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
138278
+  (0.1ms) SAVEPOINT active_record_1
138279
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:40.986722"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 17:26:40.986722"]]
138280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138281
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
138282
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
138283
+  (0.1ms) ROLLBACK
138284
+  (0.0ms) BEGIN
138285
+  (0.0ms) COMMIT
138286
+  (0.0ms) BEGIN
138287
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138288
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138289
+  (0.1ms) ROLLBACK
138290
+  (0.0ms) BEGIN
138291
+  (0.0ms) COMMIT
138292
+  (0.0ms) BEGIN
138293
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138294
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138295
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138296
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138297
+  (0.0ms) ROLLBACK
138298
+  (0.0ms) BEGIN
138299
+  (0.0ms) COMMIT
138300
+  (0.0ms) BEGIN
138301
+  (0.0ms) SAVEPOINT active_record_1
138302
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1
138303
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:26:41.003066"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:26:41.003066"]]
138304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138305
+  (0.1ms) ROLLBACK
138306
+  (0.1ms) BEGIN
138307
+  (0.1ms) COMMIT
138308
+  (0.1ms) BEGIN
138309
+  (0.1ms) ROLLBACK
138310
+  (0.1ms) BEGIN
138311
+  (0.1ms) COMMIT
138312
+  (0.1ms) BEGIN
138313
+  (0.0ms) SAVEPOINT active_record_1
138314
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
138315
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:26:41.007517"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:26:41.007517"]]
138316
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138317
+  (0.1ms) ROLLBACK
138318
+  (0.1ms) BEGIN
138319
+  (0.1ms) COMMIT
138320
+  (0.1ms) BEGIN
138321
+  (0.0ms) SAVEPOINT active_record_1
138322
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
138323
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:26:41.009997"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:26:41.009997"]]
138324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138325
+  (0.1ms) ROLLBACK
138326
+  (0.0ms) BEGIN
138327
+  (0.0ms) COMMIT
138328
+  (0.0ms) BEGIN
138329
+ Processing by DceLti::SessionsController#create as HTML
138330
+ Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms)
138331
+ Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms)
138332
+  (0.1ms) ROLLBACK
138333
+  (0.1ms) BEGIN
138334
+  (0.1ms) COMMIT
138335
+  (0.1ms) BEGIN
138336
+ Processing by DceLti::SessionsController#create as HTML
138337
+ Parameters: {"oauth_consumer_key"=>"a key"}
138338
+  (0.1ms) SAVEPOINT active_record_1
138339
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.031563"], ["nonce", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.031563"]]
138340
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138341
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138342
+  (0.1ms) SAVEPOINT active_record_1
138343
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138344
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.035923"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:26:41.035923"]]
138345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138346
+  (0.0ms) SAVEPOINT active_record_1
138347
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 17) LIMIT 1
138348
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 17 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.037729"], ["user_image", #<RSpec::Mocks::Double:0x3f9437469c1c @name="Tool Provider">]]
138349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138350
+ Redirected to http://test.host/?_dummy_session=aad369b00a813173194c857ce13b94a3
138351
+ Completed 302 Found in 11ms (ActiveRecord: 2.7ms)
138352
+  (0.1ms) ROLLBACK
138353
+  (0.0ms) BEGIN
138354
+  (0.0ms) COMMIT
138355
+  (0.0ms) BEGIN
138356
+ Processing by DceLti::SessionsController#create as HTML
138357
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
138358
+  (0.0ms) SAVEPOINT active_record_1
138359
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.041934"], ["nonce", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.041934"]]
138360
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138361
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138362
+  (0.0ms) SAVEPOINT active_record_1
138363
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138364
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.043924"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:26:41.043924"]]
138365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138366
+  (0.0ms) SAVEPOINT active_record_1
138367
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 18) LIMIT 1
138368
+ SQL (0.3ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 18 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.045473"], ["user_image", #<RSpec::Mocks::Double:0x3f9437434ad0 @name="Tool Provider">]]
138369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138370
+ Redirected to http://test.host/?_dummy_session=c90d020589c6292c5fd5d859416d1f01
138371
+ Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
138372
+  (0.1ms) ROLLBACK
138373
+  (0.0ms) BEGIN
138374
+  (0.0ms) COMMIT
138375
+  (0.0ms) BEGIN
138376
+ Processing by DceLti::SessionsController#create as HTML
138377
+  (0.1ms) SAVEPOINT active_record_1
138378
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.049441"], ["nonce", #<RSpec::Mocks::Double:0x3f94384142fc @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.049441"]]
138379
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138380
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.3ms)
138381
+  (0.1ms) ROLLBACK
138382
+  (0.0ms) BEGIN
138383
+  (0.0ms) COMMIT
138384
+  (0.0ms) BEGIN
138385
+ Processing by DceLti::SessionsController#create as HTML
138386
+  (0.0ms) SAVEPOINT active_record_1
138387
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.053379"], ["nonce", #<RSpec::Mocks::Double:0x3f9438428374 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.053379"]]
138388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138389
+ Redirected to http://test.host/?_dummy_session=ca5af360f9543719177b6512cc73406f
138390
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
138391
+  (0.1ms) ROLLBACK
138392
+  (0.0ms) BEGIN
138393
+  (0.0ms) COMMIT
138394
+  (0.0ms) BEGIN
138395
+ Processing by DceLti::SessionsController#create as HTML
138396
+  (0.1ms) SAVEPOINT active_record_1
138397
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.056560"], ["nonce", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.056560"]]
138398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138399
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138400
+  (0.0ms) SAVEPOINT active_record_1
138401
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138402
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.058418"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:26:41.058418"]]
138403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138404
+  (0.0ms) SAVEPOINT active_record_1
138405
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 19) LIMIT 1
138406
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 19 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.059637"], ["user_image", #<RSpec::Mocks::Double:0x3f943843d954 @name="Tool Provider">]]
138407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138408
+ Redirected to http://test.host/?_dummy_session=be941012c3e6fe3232a73334ed147001
138409
+ Completed 302 Found in 4ms (ActiveRecord: 1.2ms)
138410
+  (0.1ms) ROLLBACK
138411
+  (0.1ms) BEGIN
138412
+  (0.0ms) COMMIT
138413
+  (0.0ms) BEGIN
138414
+ Processing by DceLti::SessionsController#create as HTML
138415
+ Parameters: {"user_id"=>"oauth_id"}
138416
+  (0.0ms) SAVEPOINT active_record_1
138417
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.063617"], ["nonce", #<RSpec::Mocks::Double:0x3f943845d380 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.063617"]]
138418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138419
+ Redirected to http://test.host/?_dummy_session=9b38a9337c62eb5d1c3de6dc41d356ea
138420
+ Completed 302 Found in 1ms (ActiveRecord: 0.3ms)
138421
+  (0.1ms) ROLLBACK
138422
+  (0.0ms) BEGIN
138423
+  (0.0ms) COMMIT
138424
+  (0.1ms) BEGIN
138425
+ Processing by DceLti::SessionsController#create as HTML
138426
+  (0.1ms) SAVEPOINT active_record_1
138427
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.067692"], ["nonce", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.067692"]]
138428
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138429
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138430
+  (0.0ms) SAVEPOINT active_record_1
138431
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138432
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.069619"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:26:41.069619"]]
138433
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138434
+  (0.0ms) SAVEPOINT active_record_1
138435
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 20) LIMIT 1
138436
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 20 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.070861"], ["user_image", #<RSpec::Mocks::Double:0x3f943846d03c @name="Tool Provider">]]
138437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138438
+ Redirected to http://test.host/sessions/create
138439
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
138440
+  (0.1ms) ROLLBACK
138441
+  (0.0ms) BEGIN
138442
+  (0.0ms) COMMIT
138443
+  (0.0ms) BEGIN
138444
+ Processing by DceLti::SessionsController#create as HTML
138445
+  (0.1ms) SAVEPOINT active_record_1
138446
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.075553"], ["nonce", #<RSpec::Mocks::Double:0x3f94373aaa10 @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.075553"]]
138447
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138448
+ Redirected to http://test.host/?_dummy_session=7d0403e4b35a535d07fabb3273a5c50e
138449
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
138450
+  (0.0ms) ROLLBACK
138451
+  (0.0ms) BEGIN
138452
+  (0.0ms) COMMIT
138453
+  (0.0ms) BEGIN
138454
+ Processing by DceLti::SessionsController#create as HTML
138455
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
138456
+  (0.0ms) SAVEPOINT active_record_1
138457
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.080068"], ["nonce", #<RSpec::Mocks::Double:0x3f94384a778c @name="Tool Provider">], ["updated_at", "2015-05-26 17:26:41.080068"]]
138458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138459
+ Redirected to http://test.host/?_dummy_session=60230736e58145e7638d8cd5b945915e
138460
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
138461
+  (0.1ms) ROLLBACK
138462
+  (0.0ms) BEGIN
138463
+  (0.0ms) COMMIT
138464
+  (0.0ms) BEGIN
138465
+ Processing by DceLti::SessionsController#create as HTML
138466
+ Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms)
138467
+  (0.1ms) ROLLBACK
138468
+  (0.1ms) BEGIN
138469
+  (0.0ms) COMMIT
138470
+  (0.0ms) BEGIN
138471
+ Processing by DceLti::SessionsController#create as HTML
138472
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138473
+  (0.0ms) ROLLBACK
138474
+  (0.1ms) BEGIN
138475
+  (0.0ms) COMMIT
138476
+  (0.0ms) BEGIN
138477
+ Processing by DceLti::SessionsController#create as HTML
138478
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138479
+  (0.1ms) ROLLBACK
138480
+  (0.0ms) BEGIN
138481
+  (0.0ms) COMMIT
138482
+  (0.0ms) BEGIN
138483
+ Processing by PostsController#redirect_with_response_status as HTML
138484
+ Redirected to http://test.host/
138485
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
138486
+  (0.1ms) ROLLBACK
138487
+  (0.0ms) BEGIN
138488
+  (0.0ms) COMMIT
138489
+  (0.0ms) BEGIN
138490
+ Processing by PostsController#index as HTML
138491
+ Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms)
138492
+  (0.1ms) ROLLBACK
138493
+  (0.1ms) BEGIN
138494
+  (0.0ms) COMMIT
138495
+  (0.0ms) BEGIN
138496
+ Processing by PostsController#index as HTML
138497
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138498
+ Redirected to http://test.host/dce_lti/sessions/invalid
138499
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138500
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
138501
+  (0.0ms) ROLLBACK
138502
+  (0.0ms) BEGIN
138503
+  (0.0ms) COMMIT
138504
+  (0.0ms) BEGIN
138505
+  (0.0ms) ROLLBACK
138506
+  (0.0ms) BEGIN
138507
+  (0.0ms) COMMIT
138508
+  (0.0ms) BEGIN
138509
+  (0.0ms) ROLLBACK
138510
+  (0.0ms) BEGIN
138511
+  (0.0ms) COMMIT
138512
+  (0.0ms) BEGIN
138513
+  (0.0ms) ROLLBACK
138514
+  (0.1ms) BEGIN
138515
+  (0.1ms) COMMIT
138516
+  (0.1ms) BEGIN
138517
+  (0.1ms) ROLLBACK
138518
+  (0.1ms) BEGIN
138519
+  (0.1ms) COMMIT
138520
+  (0.1ms) BEGIN
138521
+  (0.1ms) ROLLBACK
138522
+  (0.1ms) BEGIN
138523
+  (0.1ms) COMMIT
138524
+  (0.0ms) BEGIN
138525
+  (0.1ms) ROLLBACK
138526
+  (0.1ms) BEGIN
138527
+  (0.1ms) COMMIT
138528
+  (0.0ms) BEGIN
138529
+  (0.0ms) ROLLBACK
138530
+  (0.0ms) BEGIN
138531
+  (0.0ms) COMMIT
138532
+  (0.0ms) BEGIN
138533
+  (0.0ms) SAVEPOINT active_record_1
138534
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.111315"], ["nonce", "100"], ["updated_at", "2015-05-26 17:26:41.111315"]]
138535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138536
+  (0.0ms) SAVEPOINT active_record_1
138537
+ SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.112150"], ["nonce", "100"], ["updated_at", "2015-05-26 17:26:41.112150"]]
138538
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
138539
+ DETAIL: Key (nonce)=(100) already exists.
138540
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
138541
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
138542
+ Creating nonce failed: "100"
138543
+  (0.0ms) ROLLBACK
138544
+  (0.0ms) BEGIN
138545
+  (0.1ms) COMMIT
138546
+  (0.0ms) BEGIN
138547
+  (0.0ms) SAVEPOINT active_record_1
138548
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:26:41.113926"], ["nonce", "100"], ["updated_at", "2015-05-26 17:26:41.113926"]]
138549
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138550
+  (0.0ms) ROLLBACK
138551
+  (0.0ms) BEGIN
138552
+  (0.0ms) COMMIT
138553
+  (0.0ms) BEGIN
138554
+  (0.0ms) ROLLBACK
138555
+  (0.0ms) BEGIN
138556
+  (0.0ms) COMMIT
138557
+  (0.0ms) BEGIN
138558
+ Processing by PostsController#index as HTML
138559
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138560
+ Redirected to http://test.host/dce_lti/sessions/invalid
138561
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138562
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
138563
+  (0.1ms) ROLLBACK
138564
+  (0.0ms) BEGIN
138565
+  (0.0ms) COMMIT
138566
+  (0.0ms) BEGIN
138567
+ Started GET "/" for 127.0.0.1 at 2015-05-26 13:26:41 -0400
138568
+ Processing by PostsController#index as HTML
138569
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138570
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
138571
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138572
+ Completed 302 Found in 8ms (ActiveRecord: 0.2ms)
138573
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 13:26:41 -0400
138574
+ Processing by DceLti::SessionsController#invalid as HTML
138575
+ Completed 200 OK in 84ms (Views: 83.9ms | ActiveRecord: 0.0ms)
138576
+  (0.1ms) ROLLBACK
138577
+  (0.1ms) BEGIN
138578
+  (0.1ms) COMMIT
138579
+  (0.1ms) BEGIN
138580
+  (0.1ms) ROLLBACK
138581
+  (0.1ms) BEGIN
138582
+  (0.0ms) COMMIT
138583
+  (0.0ms) BEGIN
138584
+  (0.1ms) ROLLBACK
138585
+  (0.0ms) BEGIN
138586
+  (0.0ms) COMMIT
138587
+  (0.0ms) BEGIN
138588
+ Processing by DceLti::ConfigsController#index as XML
138589
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
138590
+  (0.1ms) ROLLBACK
138591
+  (0.0ms) BEGIN
138592
+  (0.0ms) COMMIT
138593
+  (0.0ms) BEGIN
138594
+ Processing by DceLti::ConfigsController#index as XML
138595
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
138596
+  (0.1ms) ROLLBACK
138597
+  (0.0ms) BEGIN
138598
+  (0.0ms) COMMIT
138599
+  (0.0ms) BEGIN
138600
+ Processing by DceLti::ConfigsController#index as XML
138601
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
138602
+  (0.1ms) ROLLBACK
138603
+  (0.1ms) BEGIN
138604
+  (0.0ms) COMMIT
138605
+  (0.0ms) BEGIN
138606
+ Processing by DceLti::ConfigsController#index as XML
138607
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
138608
+  (0.1ms) ROLLBACK
138609
+  (0.0ms) BEGIN
138610
+  (0.0ms) COMMIT
138611
+  (0.0ms) BEGIN
138612
+ Processing by DceLti::ConfigsController#index as XML
138613
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
138614
+  (0.1ms) ROLLBACK
138615
+  (0.1ms) BEGIN
138616
+  (0.0ms) COMMIT
138617
+  (0.0ms) BEGIN
138618
+  (0.0ms) SAVEPOINT active_record_1
138619
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138620
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
138621
+  (0.1ms) ROLLBACK
138622
+  (0.0ms) BEGIN
138623
+  (0.0ms) COMMIT
138624
+  (0.0ms) BEGIN
138625
+  (0.0ms) ROLLBACK
138626
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
138627
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
138628
+  (0.2ms) DELETE FROM "dce_lti_nonces";
138629
+  (0.2ms) DELETE FROM "dce_lti_users";
138630
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
138631
+  (0.1ms) BEGIN
138632
+  (0.0ms) COMMIT
138633
+  (0.0ms) BEGIN
138634
+  (0.1ms) ROLLBACK
138635
+  (0.1ms) BEGIN
138636
+  (0.1ms) COMMIT
138637
+  (0.0ms) BEGIN
138638
+  (0.1ms) ROLLBACK
138639
+  (0.0ms) BEGIN
138640
+  (0.0ms) COMMIT
138641
+  (0.0ms) BEGIN
138642
+  (0.0ms) ROLLBACK
138643
+  (0.0ms) BEGIN
138644
+  (0.0ms) COMMIT
138645
+  (0.0ms) BEGIN
138646
+ Processing by DceLti::SessionsController#create as HTML
138647
+ Rendered /home/djcp/code/work/dce_lti/app/views/dce_lti/sessions/invalid.html.erb within layouts/dce_lti/application (0.2ms)
138648
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
138649
+  (0.1ms) ROLLBACK
138650
+  (0.1ms) BEGIN
138651
+  (0.0ms) COMMIT
138652
+  (0.0ms) BEGIN
138653
+ Processing by DceLti::SessionsController#create as HTML
138654
+  (0.0ms) SAVEPOINT active_record_1
138655
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.904122"], ["nonce", #<RSpec::Mocks::Double:0x3fe3306e80cc @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.904122"]]
138656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138657
+ Redirected to http://test.host/?_dummy_session=fbb6cbfd95ea8d4ac9ad73c4e3968b2b
138658
+ Completed 302 Found in 8ms (ActiveRecord: 1.9ms)
138659
+  (0.1ms) ROLLBACK
138660
+  (0.0ms) BEGIN
138661
+  (0.0ms) COMMIT
138662
+  (0.0ms) BEGIN
138663
+ Processing by DceLti::SessionsController#create as HTML
138664
+  (0.0ms) SAVEPOINT active_record_1
138665
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.909457"], ["nonce", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.909457"]]
138666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138667
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138668
+  (0.1ms) SAVEPOINT active_record_1
138669
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138670
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.920841"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:27:16.920841"]]
138671
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138672
+  (0.0ms) SAVEPOINT active_record_1
138673
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 1) LIMIT 1
138674
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 1 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.922914"], ["user_image", #<RSpec::Mocks::Double:0x3fe32f9038d0 @name="Tool Provider">]]
138675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138676
+ Redirected to http://test.host/?_dummy_session=6fd6823b0c0ab73e03396d7506b50049
138677
+ Completed 302 Found in 15ms (ActiveRecord: 1.5ms)
138678
+  (0.1ms) ROLLBACK
138679
+  (0.0ms) BEGIN
138680
+  (0.1ms) COMMIT
138681
+  (0.0ms) BEGIN
138682
+ Processing by DceLti::SessionsController#create as HTML
138683
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
138684
+  (0.1ms) SAVEPOINT active_record_1
138685
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.927434"], ["nonce", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.927434"]]
138686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138687
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138688
+  (0.0ms) SAVEPOINT active_record_1
138689
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138690
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.929728"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:27:16.929728"]]
138691
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138692
+  (0.0ms) SAVEPOINT active_record_1
138693
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 2) LIMIT 1
138694
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 2 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.931044"], ["user_image", #<RSpec::Mocks::Double:0x3fe3307d415c @name="Tool Provider">]]
138695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138696
+ Redirected to http://test.host/?_dummy_session=0f8bb43e324f8673b931d09ce234d6ff
138697
+ Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
138698
+  (0.1ms) ROLLBACK
138699
+  (0.0ms) BEGIN
138700
+  (0.0ms) COMMIT
138701
+  (0.0ms) BEGIN
138702
+ Processing by DceLti::SessionsController#create as HTML
138703
+ Parameters: {"oauth_consumer_key"=>"a key"}
138704
+  (0.0ms) SAVEPOINT active_record_1
138705
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.934634"], ["nonce", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.934634"]]
138706
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138707
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138708
+  (0.0ms) SAVEPOINT active_record_1
138709
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138710
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.936497"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:27:16.936497"]]
138711
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138712
+  (0.0ms) SAVEPOINT active_record_1
138713
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 3) LIMIT 1
138714
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 3 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.937707"], ["user_image", #<RSpec::Mocks::Double:0x3fe3307f1a18 @name="Tool Provider">]]
138715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138716
+ Redirected to http://test.host/?_dummy_session=72545dfcb0b95899ec15bc12ed45bd0b
138717
+ Completed 302 Found in 5ms (ActiveRecord: 1.1ms)
138718
+  (0.1ms) ROLLBACK
138719
+  (0.0ms) BEGIN
138720
+  (0.0ms) COMMIT
138721
+  (0.0ms) BEGIN
138722
+ Processing by DceLti::SessionsController#create as HTML
138723
+  (0.0ms) SAVEPOINT active_record_1
138724
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.941317"], ["nonce", #<RSpec::Mocks::Double:0x3fe33080e44c @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.941317"]]
138725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138726
+ Completed 200 OK in 2ms (Views: 0.5ms | ActiveRecord: 0.2ms)
138727
+  (0.1ms) ROLLBACK
138728
+  (0.1ms) BEGIN
138729
+  (0.0ms) COMMIT
138730
+  (0.0ms) BEGIN
138731
+ Processing by DceLti::SessionsController#create as HTML
138732
+ Parameters: {"user_id"=>"oauth_id"}
138733
+  (0.1ms) SAVEPOINT active_record_1
138734
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.946282"], ["nonce", #<RSpec::Mocks::Double:0x3fe32f83e56c @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.946282"]]
138735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138736
+ Redirected to http://test.host/?_dummy_session=cce8022b0e7500e7eb24ad6e626a4065
138737
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
138738
+  (0.1ms) ROLLBACK
138739
+  (0.0ms) BEGIN
138740
+  (0.0ms) COMMIT
138741
+  (0.0ms) BEGIN
138742
+ Processing by DceLti::SessionsController#create as HTML
138743
+  (0.1ms) SAVEPOINT active_record_1
138744
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.950752"], ["nonce", #<RSpec::Mocks::Double:0x3fe32f82e5a4 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.950752"]]
138745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138746
+ Redirected to http://test.host/?_dummy_session=c649c0dd5ec08b2461ecc6099daa38bb
138747
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
138748
+  (0.1ms) ROLLBACK
138749
+  (0.0ms) BEGIN
138750
+  (0.0ms) COMMIT
138751
+  (0.0ms) BEGIN
138752
+ Processing by DceLti::SessionsController#create as HTML
138753
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
138754
+  (0.1ms) SAVEPOINT active_record_1
138755
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.955078"], ["nonce", #<RSpec::Mocks::Double:0x3fe32f81269c @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.955078"]]
138756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138757
+ Redirected to http://test.host/?_dummy_session=9250c476ba24ebdec68da4e5e1018c4c
138758
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
138759
+  (0.1ms) ROLLBACK
138760
+  (0.0ms) BEGIN
138761
+  (0.0ms) COMMIT
138762
+  (0.0ms) BEGIN
138763
+ Processing by DceLti::SessionsController#create as HTML
138764
+  (0.0ms) SAVEPOINT active_record_1
138765
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.958561"], ["nonce", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.958561"]]
138766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138767
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138768
+  (0.0ms) SAVEPOINT active_record_1
138769
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
138770
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:16.960511"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:27:16.960511"]]
138771
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138772
+  (0.1ms) SAVEPOINT active_record_1
138773
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 4) LIMIT 1
138774
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 4 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">], ["updated_at", "2015-05-26 17:27:16.961992"], ["user_image", #<RSpec::Mocks::Double:0x3fe330877f78 @name="Tool Provider">]]
138775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138776
+ Redirected to http://test.host/sessions/create
138777
+ Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
138778
+  (0.1ms) ROLLBACK
138779
+  (0.1ms) BEGIN
138780
+  (0.0ms) COMMIT
138781
+  (0.0ms) BEGIN
138782
+ Processing by DceLti::SessionsController#create as HTML
138783
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138784
+  (0.1ms) ROLLBACK
138785
+  (0.0ms) BEGIN
138786
+  (0.0ms) COMMIT
138787
+  (0.0ms) BEGIN
138788
+ Processing by DceLti::SessionsController#create as HTML
138789
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
138790
+  (0.1ms) ROLLBACK
138791
+  (0.0ms) BEGIN
138792
+  (0.0ms) COMMIT
138793
+  (0.0ms) BEGIN
138794
+ Processing by DceLti::SessionsController#create as HTML
138795
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
138796
+  (0.1ms) ROLLBACK
138797
+  (0.0ms) BEGIN
138798
+  (0.0ms) COMMIT
138799
+  (0.0ms) BEGIN
138800
+ Processing by PostsController#index as HTML
138801
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138802
+ Redirected to http://test.host/dce_lti/sessions/invalid
138803
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138804
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
138805
+  (0.1ms) ROLLBACK
138806
+  (0.0ms) BEGIN
138807
+  (0.0ms) COMMIT
138808
+  (0.0ms) BEGIN
138809
+  (0.0ms) ROLLBACK
138810
+  (0.0ms) BEGIN
138811
+  (0.0ms) COMMIT
138812
+  (0.0ms) BEGIN
138813
+  (0.0ms) ROLLBACK
138814
+  (0.0ms) BEGIN
138815
+  (0.0ms) COMMIT
138816
+  (0.0ms) BEGIN
138817
+  (0.0ms) SAVEPOINT active_record_1
138818
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138819
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
138820
+  (0.1ms) ROLLBACK
138821
+  (0.0ms) BEGIN
138822
+  (0.0ms) COMMIT
138823
+  (0.0ms) BEGIN
138824
+  (0.1ms) ROLLBACK
138825
+  (0.1ms) BEGIN
138826
+  (0.0ms) COMMIT
138827
+  (0.1ms) BEGIN
138828
+ Started GET "/" for 127.0.0.1 at 2015-05-26 13:27:16 -0400
138829
+ Processing by PostsController#index as HTML
138830
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138831
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
138832
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138833
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
138834
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 13:27:16 -0400
138835
+ Processing by DceLti::SessionsController#invalid as HTML
138836
+ Completed 200 OK in 86ms (Views: 85.7ms | ActiveRecord: 0.0ms)
138837
+  (0.1ms) ROLLBACK
138838
+  (0.0ms) BEGIN
138839
+  (0.0ms) COMMIT
138840
+  (0.0ms) BEGIN
138841
+  (0.1ms) ROLLBACK
138842
+  (0.0ms) BEGIN
138843
+  (0.0ms) COMMIT
138844
+  (0.0ms) BEGIN
138845
+  (0.1ms) ROLLBACK
138846
+  (0.0ms) BEGIN
138847
+  (0.0ms) COMMIT
138848
+  (0.0ms) BEGIN
138849
+  (0.0ms) ROLLBACK
138850
+  (0.0ms) BEGIN
138851
+  (0.0ms) COMMIT
138852
+  (0.0ms) BEGIN
138853
+  (0.0ms) SAVEPOINT active_record_1
138854
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
138855
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:27:17.092402"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:27:17.092402"]]
138856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138857
+  (0.1ms) ROLLBACK
138858
+  (0.0ms) BEGIN
138859
+  (0.0ms) COMMIT
138860
+  (0.0ms) BEGIN
138861
+  (0.0ms) SAVEPOINT active_record_1
138862
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
138863
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:27:17.097405"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:27:17.097405"]]
138864
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138865
+  (0.0ms) ROLLBACK
138866
+  (0.0ms) BEGIN
138867
+  (0.0ms) COMMIT
138868
+  (0.0ms) BEGIN
138869
+  (0.0ms) SAVEPOINT active_record_1
138870
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-6' LIMIT 1
138871
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:27:17.100932"], ["lti_user_id", "user_id-6"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:27:17.100932"]]
138872
+  (0.3ms) RELEASE SAVEPOINT active_record_1
138873
+  (0.1ms) ROLLBACK
138874
+  (0.0ms) BEGIN
138875
+  (0.1ms) COMMIT
138876
+  (0.0ms) BEGIN
138877
+  (0.1ms) ROLLBACK
138878
+  (0.0ms) BEGIN
138879
+  (0.1ms) COMMIT
138880
+  (0.4ms) BEGIN
138881
+  (0.0ms) SAVEPOINT active_record_1
138882
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-7' LIMIT 1
138883
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:27:17.106326"], ["lti_user_id", "user_id-7"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 17:27:17.106326"]]
138884
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138885
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 8]]
138886
+  (0.1ms) ROLLBACK
138887
+  (0.0ms) BEGIN
138888
+  (0.0ms) COMMIT
138889
+  (0.0ms) BEGIN
138890
+  (0.0ms) SAVEPOINT active_record_1
138891
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-8' LIMIT 1
138892
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:27:17.110243"], ["lti_user_id", "user_id-8"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 17:27:17.110243"]]
138893
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138894
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 9]]
138895
+  (0.4ms) ROLLBACK
138896
+  (0.0ms) BEGIN
138897
+  (0.0ms) COMMIT
138898
+  (0.0ms) BEGIN
138899
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138900
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138901
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138902
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
138903
+  (0.1ms) ROLLBACK
138904
+  (0.1ms) BEGIN
138905
+  (0.0ms) COMMIT
138906
+  (0.0ms) BEGIN
138907
+ DceLti::User Load (0.3ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
138908
+  (0.1ms) SAVEPOINT active_record_1
138909
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:17.127325"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 17:27:17.127325"]]
138910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138911
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
138912
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
138913
+  (0.1ms) ROLLBACK
138914
+  (0.0ms) BEGIN
138915
+  (0.0ms) COMMIT
138916
+  (0.0ms) BEGIN
138917
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138918
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
138919
+  (0.1ms) ROLLBACK
138920
+  (0.0ms) BEGIN
138921
+  (0.0ms) COMMIT
138922
+  (0.0ms) BEGIN
138923
+ Processing by PostsController#redirect_with_response_status as HTML
138924
+ Redirected to http://test.host/
138925
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
138926
+  (0.1ms) ROLLBACK
138927
+  (0.1ms) BEGIN
138928
+  (0.0ms) COMMIT
138929
+  (0.0ms) BEGIN
138930
+ Processing by PostsController#index as HTML
138931
+ Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms)
138932
+  (0.1ms) ROLLBACK
138933
+  (0.0ms) BEGIN
138934
+  (0.0ms) COMMIT
138935
+  (0.0ms) BEGIN
138936
+ Processing by PostsController#index as HTML
138937
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
138938
+ Redirected to http://test.host/dce_lti/sessions/invalid
138939
+ Filter chain halted as :authenticate_via_lti rendered or redirected
138940
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
138941
+  (0.1ms) ROLLBACK
138942
+  (0.0ms) BEGIN
138943
+  (0.0ms) COMMIT
138944
+  (0.0ms) BEGIN
138945
+  (0.0ms) ROLLBACK
138946
+  (0.0ms) BEGIN
138947
+  (0.0ms) COMMIT
138948
+  (0.0ms) BEGIN
138949
+  (0.0ms) ROLLBACK
138950
+  (0.0ms) BEGIN
138951
+  (0.0ms) COMMIT
138952
+  (0.0ms) BEGIN
138953
+  (0.1ms) ROLLBACK
138954
+  (0.0ms) BEGIN
138955
+  (0.0ms) COMMIT
138956
+  (0.0ms) BEGIN
138957
+  (0.0ms) SAVEPOINT active_record_1
138958
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:17.156528"], ["nonce", "100"], ["updated_at", "2015-05-26 17:27:17.156528"]]
138959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
138960
+  (0.0ms) SAVEPOINT active_record_1
138961
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:17.157645"], ["nonce", "100"], ["updated_at", "2015-05-26 17:27:17.157645"]]
138962
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
138963
+ DETAIL: Key (nonce)=(100) already exists.
138964
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
138965
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
138966
+ Creating nonce failed: "100"
138967
+  (0.0ms) ROLLBACK
138968
+  (0.0ms) BEGIN
138969
+  (0.0ms) COMMIT
138970
+  (0.0ms) BEGIN
138971
+  (0.0ms) SAVEPOINT active_record_1
138972
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:27:17.159431"], ["nonce", "100"], ["updated_at", "2015-05-26 17:27:17.159431"]]
138973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
138974
+  (0.1ms) ROLLBACK
138975
+  (0.1ms) BEGIN
138976
+  (0.1ms) COMMIT
138977
+  (0.0ms) BEGIN
138978
+ Processing by DceLti::ConfigsController#index as XML
138979
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
138980
+  (0.1ms) ROLLBACK
138981
+  (0.0ms) BEGIN
138982
+  (0.0ms) COMMIT
138983
+  (0.0ms) BEGIN
138984
+ Processing by DceLti::ConfigsController#index as XML
138985
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
138986
+  (0.1ms) ROLLBACK
138987
+  (0.0ms) BEGIN
138988
+  (0.0ms) COMMIT
138989
+  (0.0ms) BEGIN
138990
+ Processing by DceLti::ConfigsController#index as XML
138991
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
138992
+  (0.1ms) ROLLBACK
138993
+  (0.0ms) BEGIN
138994
+  (0.0ms) COMMIT
138995
+  (0.0ms) BEGIN
138996
+ Processing by DceLti::ConfigsController#index as XML
138997
+ Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
138998
+  (0.1ms) ROLLBACK
138999
+  (0.0ms) BEGIN
139000
+  (0.0ms) COMMIT
139001
+  (0.0ms) BEGIN
139002
+ Processing by DceLti::ConfigsController#index as XML
139003
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
139004
+  (0.1ms) ROLLBACK
139005
+  (0.3ms) ALTER TABLE "dce_lti_nonces" DISABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
139006
+  (1.1ms) select table_name from information_schema.views where table_schema = 'dce_lti_dummy_test'
139007
+  (0.2ms) DELETE FROM "dce_lti_nonces";
139008
+  (0.1ms) DELETE FROM "dce_lti_users";
139009
+  (0.1ms) ALTER TABLE "dce_lti_nonces" ENABLE TRIGGER ALL;ALTER TABLE "dce_lti_users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
139010
+  (0.0ms) BEGIN
139011
+  (0.0ms) COMMIT
139012
+  (0.0ms) BEGIN
139013
+  (0.1ms) ROLLBACK
139014
+  (0.0ms) BEGIN
139015
+  (0.0ms) COMMIT
139016
+  (0.0ms) BEGIN
139017
+  (0.1ms) ROLLBACK
139018
+  (0.0ms) BEGIN
139019
+  (0.0ms) COMMIT
139020
+  (0.0ms) BEGIN
139021
+ Processing by PostsController#index as HTML
139022
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
139023
+ Redirected to http://test.host/dce_lti/sessions/invalid
139024
+ Filter chain halted as :authenticate_via_lti rendered or redirected
139025
+ Completed 302 Found in 4ms (ActiveRecord: 0.2ms)
139026
+  (0.1ms) ROLLBACK
139027
+  (0.0ms) BEGIN
139028
+  (0.0ms) COMMIT
139029
+  (0.0ms) BEGIN
139030
+ Processing by PostsController#index as HTML
139031
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
139032
+ Redirected to http://test.host/dce_lti/sessions/invalid
139033
+ Filter chain halted as :authenticate_via_lti rendered or redirected
139034
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
139035
+  (0.1ms) ROLLBACK
139036
+  (0.0ms) BEGIN
139037
+  (0.0ms) COMMIT
139038
+  (0.1ms) BEGIN
139039
+ Processing by PostsController#index as HTML
139040
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
139041
+  (0.1ms) ROLLBACK
139042
+  (0.1ms) BEGIN
139043
+  (0.0ms) COMMIT
139044
+  (0.0ms) BEGIN
139045
+ Processing by PostsController#redirect_with_response_status as HTML
139046
+ Redirected to http://test.host/
139047
+ Completed 301 Moved Permanently in 0ms (ActiveRecord: 0.0ms)
139048
+  (0.1ms) ROLLBACK
139049
+  (0.0ms) BEGIN
139050
+  (0.0ms) COMMIT
139051
+  (0.0ms) BEGIN
139052
+  (0.0ms) ROLLBACK
139053
+  (0.0ms) BEGIN
139054
+  (0.0ms) COMMIT
139055
+  (0.0ms) BEGIN
139056
+  (0.0ms) SAVEPOINT active_record_1
139057
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.395912"], ["nonce", "100"], ["updated_at", "2015-05-26 17:28:53.395912"]]
139058
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139059
+  (0.1ms) ROLLBACK
139060
+  (0.0ms) BEGIN
139061
+  (0.0ms) COMMIT
139062
+  (0.0ms) BEGIN
139063
+  (0.0ms) SAVEPOINT active_record_1
139064
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.401032"], ["nonce", "100"], ["updated_at", "2015-05-26 17:28:53.401032"]]
139065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139066
+  (0.0ms) SAVEPOINT active_record_1
139067
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.401883"], ["nonce", "100"], ["updated_at", "2015-05-26 17:28:53.401883"]]
139068
+ PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "index_dce_lti_nonces_on_nonce"
139069
+ DETAIL: Key (nonce)=(100) already exists.
139070
+ : INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id"
139071
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
139072
+ Creating nonce failed: "100"
139073
+  (0.0ms) ROLLBACK
139074
+  (0.0ms) BEGIN
139075
+  (0.0ms) COMMIT
139076
+  (0.0ms) BEGIN
139077
+  (0.0ms) ROLLBACK
139078
+  (0.0ms) BEGIN
139079
+  (0.0ms) COMMIT
139080
+  (0.0ms) BEGIN
139081
+  (0.0ms) ROLLBACK
139082
+  (0.1ms) BEGIN
139083
+  (0.1ms) COMMIT
139084
+  (0.0ms) BEGIN
139085
+  (0.1ms) ROLLBACK
139086
+  (0.0ms) BEGIN
139087
+  (0.0ms) COMMIT
139088
+  (0.0ms) BEGIN
139089
+ DceLti::User Exists (0.3ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
139090
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
139091
+  (0.1ms) ROLLBACK
139092
+  (0.0ms) BEGIN
139093
+  (0.0ms) COMMIT
139094
+  (0.0ms) BEGIN
139095
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
139096
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
139097
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
139098
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' LIMIT 1
139099
+  (0.1ms) ROLLBACK
139100
+  (0.0ms) BEGIN
139101
+  (0.0ms) COMMIT
139102
+  (0.0ms) BEGIN
139103
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" ORDER BY "dce_lti_users"."id" ASC LIMIT 1
139104
+  (0.1ms) SAVEPOINT active_record_1
139105
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.432915"], ["lti_user_id", "a"], ["updated_at", "2015-05-26 17:28:53.432915"]]
139106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139107
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
139108
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'a' LIMIT 1
139109
+  (0.1ms) ROLLBACK
139110
+  (0.1ms) BEGIN
139111
+  (0.1ms) COMMIT
139112
+  (0.1ms) BEGIN
139113
+  (0.1ms) ROLLBACK
139114
+  (0.0ms) BEGIN
139115
+  (0.0ms) COMMIT
139116
+  (0.0ms) BEGIN
139117
+  (0.0ms) SAVEPOINT active_record_1
139118
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-1' LIMIT 1
139119
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:28:53.440569"], ["lti_user_id", "user_id-1"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:28:53.440569"]]
139120
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139121
+  (0.0ms) ROLLBACK
139122
+  (0.0ms) BEGIN
139123
+  (0.0ms) COMMIT
139124
+  (0.0ms) BEGIN
139125
+  (0.0ms) SAVEPOINT active_record_1
139126
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-2' LIMIT 1
139127
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:28:53.442889"], ["lti_user_id", "user_id-2"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:28:53.442889"]]
139128
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139129
+  (0.1ms) ROLLBACK
139130
+  (0.0ms) BEGIN
139131
+  (0.0ms) COMMIT
139132
+  (0.0ms) BEGIN
139133
+  (0.0ms) SAVEPOINT active_record_1
139134
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-3' LIMIT 1
139135
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:28:53.446082"], ["lti_user_id", "user_id-3"], ["roles", "{\"foo\",\"blee\"}"], ["updated_at", "2015-05-26 17:28:53.446082"]]
139136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139137
+  (0.0ms) ROLLBACK
139138
+  (0.0ms) BEGIN
139139
+  (0.0ms) COMMIT
139140
+  (0.0ms) BEGIN
139141
+  (0.0ms) SAVEPOINT active_record_1
139142
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-4' LIMIT 1
139143
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:28:53.448479"], ["lti_user_id", "user_id-4"], ["roles", "{\"foo\",\"bar\"}"], ["updated_at", "2015-05-26 17:28:53.448479"]]
139144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139145
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 5]]
139146
+  (0.0ms) ROLLBACK
139147
+  (0.0ms) BEGIN
139148
+  (0.0ms) COMMIT
139149
+  (0.0ms) BEGIN
139150
+  (0.0ms) SAVEPOINT active_record_1
139151
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'user_id-5' LIMIT 1
139152
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "roles", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", "2015-05-26 17:28:53.450977"], ["lti_user_id", "user_id-5"], ["roles", "{\"foo\",\"bar\",\"baz\"}"], ["updated_at", "2015-05-26 17:28:53.450977"]]
139153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139154
+ DceLti::User Load (0.1ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" = $1 LIMIT 1 [["id", 6]]
139155
+  (0.0ms) ROLLBACK
139156
+  (0.0ms) BEGIN
139157
+  (0.0ms) COMMIT
139158
+  (0.0ms) BEGIN
139159
+  (0.0ms) ROLLBACK
139160
+  (0.0ms) BEGIN
139161
+  (0.0ms) COMMIT
139162
+  (0.0ms) BEGIN
139163
+  (0.0ms) ROLLBACK
139164
+  (0.0ms) BEGIN
139165
+  (0.0ms) COMMIT
139166
+  (0.0ms) BEGIN
139167
+  (0.0ms) ROLLBACK
139168
+  (0.0ms) BEGIN
139169
+  (0.0ms) COMMIT
139170
+  (0.0ms) BEGIN
139171
+ Processing by DceLti::ConfigsController#index as XML
139172
+ Completed 200 OK in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
139173
+  (0.1ms) ROLLBACK
139174
+  (0.0ms) BEGIN
139175
+  (0.0ms) COMMIT
139176
+  (0.0ms) BEGIN
139177
+ Processing by DceLti::ConfigsController#index as XML
139178
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
139179
+  (0.0ms) ROLLBACK
139180
+  (0.0ms) BEGIN
139181
+  (0.0ms) COMMIT
139182
+  (0.0ms) BEGIN
139183
+ Processing by DceLti::ConfigsController#index as XML
139184
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
139185
+  (0.1ms) ROLLBACK
139186
+  (0.0ms) BEGIN
139187
+  (0.0ms) COMMIT
139188
+  (0.0ms) BEGIN
139189
+ Processing by DceLti::ConfigsController#index as XML
139190
+ Completed 200 OK in 1ms (Views: 0.0ms | ActiveRecord: 0.0ms)
139191
+  (0.0ms) ROLLBACK
139192
+  (0.0ms) BEGIN
139193
+  (0.0ms) COMMIT
139194
+  (0.0ms) BEGIN
139195
+ Processing by DceLti::ConfigsController#index as XML
139196
+ Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
139197
+  (0.0ms) ROLLBACK
139198
+  (0.0ms) BEGIN
139199
+  (0.0ms) COMMIT
139200
+  (0.0ms) BEGIN
139201
+ Started GET "/" for 127.0.0.1 at 2015-05-26 13:28:53 -0400
139202
+ Processing by PostsController#index as HTML
139203
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."id" IS NULL LIMIT 1
139204
+ Redirected to http://www.example.com/dce_lti/sessions/invalid
139205
+ Filter chain halted as :authenticate_via_lti rendered or redirected
139206
+ Completed 302 Found in 7ms (ActiveRecord: 0.2ms)
139207
+ Started GET "/dce_lti/sessions/invalid" for 127.0.0.1 at 2015-05-26 13:28:53 -0400
139208
+ Processing by DceLti::SessionsController#invalid as HTML
139209
+ Completed 200 OK in 88ms (Views: 87.7ms | ActiveRecord: 0.0ms)
139210
+  (0.1ms) ROLLBACK
139211
+  (0.1ms) BEGIN
139212
+  (0.1ms) COMMIT
139213
+  (0.1ms) BEGIN
139214
+  (0.1ms) ROLLBACK
139215
+  (0.0ms) BEGIN
139216
+  (0.0ms) COMMIT
139217
+  (0.0ms) BEGIN
139218
+  (0.1ms) SAVEPOINT active_record_1
139219
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" IS NULL LIMIT 1
139220
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
139221
+  (0.2ms) ROLLBACK
139222
+  (0.1ms) BEGIN
139223
+  (0.0ms) COMMIT
139224
+  (0.0ms) BEGIN
139225
+  (0.1ms) ROLLBACK
139226
+  (0.0ms) BEGIN
139227
+  (0.0ms) COMMIT
139228
+  (0.0ms) BEGIN
139229
+  (0.0ms) ROLLBACK
139230
+  (0.0ms) BEGIN
139231
+  (0.0ms) COMMIT
139232
+  (0.0ms) BEGIN
139233
+ Processing by DceLti::SessionsController#create as HTML
139234
+ Parameters: {"oauth_consumer_key"=>"a key"}
139235
+  (0.1ms) SAVEPOINT active_record_1
139236
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.587311"], ["nonce", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.587311"]]
139237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139238
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139239
+  (0.1ms) SAVEPOINT active_record_1
139240
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139241
+ SQL (0.2ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.590372"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:28:53.590372"]]
139242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139243
+  (0.1ms) SAVEPOINT active_record_1
139244
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 7) LIMIT 1
139245
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 7 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.593400"], ["user_image", #<RSpec::Mocks::Double:0x3f992193cdf4 @name="Tool Provider">]]
139246
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139247
+ Redirected to http://test.host/?_dummy_session=ace0f73a8cca935884a937111245507d
139248
+ Completed 302 Found in 9ms (ActiveRecord: 1.3ms)
139249
+  (0.1ms) ROLLBACK
139250
+  (0.0ms) BEGIN
139251
+  (0.0ms) COMMIT
139252
+  (0.0ms) BEGIN
139253
+ Processing by DceLti::SessionsController#create as HTML
139254
+  (0.1ms) SAVEPOINT active_record_1
139255
+ SQL (0.2ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.599566"], ["nonce", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.599566"]]
139256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139257
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139258
+  (0.0ms) SAVEPOINT active_record_1
139259
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139260
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.602579"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:28:53.602579"]]
139261
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139262
+  (0.0ms) SAVEPOINT active_record_1
139263
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 8) LIMIT 1
139264
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 8 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.604336"], ["user_image", #<RSpec::Mocks::Double:0x3f99228dcc14 @name="Tool Provider">]]
139265
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139266
+ Redirected to http://test.host/?_dummy_session=6e653bb2080ed632e2c19e5f2e9ca345
139267
+ Completed 302 Found in 12ms (ActiveRecord: 1.2ms)
139268
+  (0.1ms) ROLLBACK
139269
+  (0.0ms) BEGIN
139270
+  (0.0ms) COMMIT
139271
+  (0.0ms) BEGIN
139272
+ Processing by DceLti::SessionsController#create as HTML
139273
+  (0.1ms) SAVEPOINT active_record_1
139274
+ SQL (0.4ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.615319"], ["nonce", #<RSpec::Mocks::Double:0x3f99229bcb34 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.615319"]]
139275
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139276
+ Completed 200 OK in 3ms (Views: 0.9ms | ActiveRecord: 0.6ms)
139277
+  (0.1ms) ROLLBACK
139278
+  (0.0ms) BEGIN
139279
+  (0.0ms) COMMIT
139280
+  (0.0ms) BEGIN
139281
+ Processing by DceLti::SessionsController#create as HTML
139282
+ Parameters: {"oauth_consumer_key"=>"consumer_key"}
139283
+  (0.1ms) SAVEPOINT active_record_1
139284
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.620933"], ["nonce", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.620933"]]
139285
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139286
+ DceLti::User Load (0.2ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139287
+  (0.0ms) SAVEPOINT active_record_1
139288
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139289
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.623343"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:28:53.623343"]]
139290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139291
+  (0.0ms) SAVEPOINT active_record_1
139292
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 9) LIMIT 1
139293
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 9 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.624916"], ["user_image", #<RSpec::Mocks::Double:0x3f9922a1a2fc @name="Tool Provider">]]
139294
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139295
+ Redirected to http://test.host/?_dummy_session=2ff4e6d70ee30b7628b7b9fb045d574b
139296
+ Completed 302 Found in 6ms (ActiveRecord: 1.1ms)
139297
+  (0.1ms) ROLLBACK
139298
+  (0.0ms) BEGIN
139299
+  (0.0ms) COMMIT
139300
+  (0.0ms) BEGIN
139301
+ Processing by DceLti::SessionsController#create as HTML
139302
+  (0.0ms) SAVEPOINT active_record_1
139303
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.629952"], ["nonce", #<RSpec::Mocks::Double:0x3f9922ac9c5c @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.629952"]]
139304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139305
+ Redirected to http://test.host/?_dummy_session=1d4e837939500c76c99542ab334cf6b5
139306
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
139307
+  (0.0ms) ROLLBACK
139308
+  (0.0ms) BEGIN
139309
+  (0.0ms) COMMIT
139310
+  (0.0ms) BEGIN
139311
+ Processing by DceLti::SessionsController#create as HTML
139312
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
139313
+  (0.1ms) ROLLBACK
139314
+  (0.1ms) BEGIN
139315
+  (0.0ms) COMMIT
139316
+  (0.0ms) BEGIN
139317
+ Processing by DceLti::SessionsController#create as HTML
139318
+ Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
139319
+  (0.1ms) ROLLBACK
139320
+  (0.0ms) BEGIN
139321
+  (0.0ms) COMMIT
139322
+  (0.0ms) BEGIN
139323
+ Processing by DceLti::SessionsController#create as HTML
139324
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
139325
+  (0.1ms) ROLLBACK
139326
+  (0.0ms) BEGIN
139327
+  (0.0ms) COMMIT
139328
+  (0.0ms) BEGIN
139329
+ Processing by DceLti::SessionsController#create as HTML
139330
+ Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.0ms)
139331
+  (0.0ms) ROLLBACK
139332
+  (0.0ms) BEGIN
139333
+  (0.0ms) COMMIT
139334
+  (0.0ms) BEGIN
139335
+ Processing by DceLti::SessionsController#create as HTML
139336
+  (0.0ms) SAVEPOINT active_record_1
139337
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.648201"], ["nonce", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.648201"]]
139338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139339
+ DceLti::User Load (0.5ms) SELECT "dce_lti_users".* FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139340
+  (0.0ms) SAVEPOINT active_record_1
139341
+ DceLti::User Exists (0.1ms) SELECT 1 AS one FROM "dce_lti_users" WHERE "dce_lti_users"."lti_user_id" = 'oauth_id' LIMIT 1
139342
+ SQL (0.1ms) INSERT INTO "dce_lti_users" ("created_at", "lti_user_id", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.651201"], ["lti_user_id", "oauth_id"], ["updated_at", "2015-05-26 17:28:53.651201"]]
139343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139344
+  (0.0ms) SAVEPOINT active_record_1
139345
+ DceLti::User Exists (0.2ms) SELECT 1 AS one FROM "dce_lti_users" WHERE ("dce_lti_users"."lti_user_id" = 'oauth_id' AND "dce_lti_users"."id" != 10) LIMIT 1
139346
+ SQL (0.2ms) UPDATE "dce_lti_users" SET "lis_person_contact_email_primary" = $1, "lis_person_name_family" = $2, "lis_person_name_full" = $3, "lis_person_name_given" = $4, "lis_person_sourcedid" = $5, "updated_at" = $6, "user_image" = $7 WHERE "dce_lti_users"."id" = 10 [["lis_person_contact_email_primary", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">], ["lis_person_name_family", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">], ["lis_person_name_full", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">], ["lis_person_name_given", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">], ["lis_person_sourcedid", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.653048"], ["user_image", #<RSpec::Mocks::Double:0x3f9922d6f984 @name="Tool Provider">]]
139347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
139348
+ Redirected to http://test.host/sessions/create
139349
+ Completed 302 Found in 7ms (ActiveRecord: 1.5ms)
139350
+  (0.1ms) ROLLBACK
139351
+  (0.0ms) BEGIN
139352
+  (0.0ms) COMMIT
139353
+  (0.4ms) BEGIN
139354
+ Processing by DceLti::SessionsController#create as HTML
139355
+ Parameters: {"user_id"=>"asdfasdfasdfasfd"}
139356
+  (0.1ms) SAVEPOINT active_record_1
139357
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.659086"], ["nonce", #<RSpec::Mocks::Double:0x3f992362ba78 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.659086"]]
139358
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139359
+ Redirected to http://test.host/?_dummy_session=4382de854fc24a12ffc6bfeeb226bebc
139360
+ Completed 302 Found in 2ms (ActiveRecord: 0.2ms)
139361
+  (0.1ms) ROLLBACK
139362
+  (0.0ms) BEGIN
139363
+  (0.0ms) COMMIT
139364
+  (0.0ms) BEGIN
139365
+ Processing by DceLti::SessionsController#create as HTML
139366
+  (0.0ms) SAVEPOINT active_record_1
139367
+ SQL (0.3ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.663486"], ["nonce", #<RSpec::Mocks::Double:0x3f9923690a54 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.663486"]]
139368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139369
+ Redirected to http://test.host/?_dummy_session=7c64b1a626f1e9712e7e83007100f811
139370
+ Completed 302 Found in 2ms (ActiveRecord: 0.3ms)
139371
+  (0.1ms) ROLLBACK
139372
+  (0.0ms) BEGIN
139373
+  (0.0ms) COMMIT
139374
+  (0.0ms) BEGIN
139375
+ Processing by DceLti::SessionsController#create as HTML
139376
+ Parameters: {"user_id"=>"oauth_id"}
139377
+  (0.0ms) SAVEPOINT active_record_1
139378
+ SQL (0.1ms) INSERT INTO "dce_lti_nonces" ("created_at", "nonce", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2015-05-26 17:28:53.667823"], ["nonce", #<RSpec::Mocks::Double:0x3f99237151a0 @name="Tool Provider">], ["updated_at", "2015-05-26 17:28:53.667823"]]
139379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
139380
+ Redirected to http://test.host/?_dummy_session=79815d398b880396b256191f96942940
139381
+ Completed 302 Found in 1ms (ActiveRecord: 0.2ms)
139382
+  (0.1ms) ROLLBACK