canvas_oauth_engine 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 71f57dee48c533c5cd89fb720bd72da16a8f35da
4
- data.tar.gz: 1b3fe18fb1b89de4254376ac0657b9cde55351ea
2
+ SHA256:
3
+ metadata.gz: 7be1804353a08fb358510036316e60872017a025591b2e18e44e4f87f3fabeac
4
+ data.tar.gz: a81b63a4574792cb225f60a7d75850b73cd74b29b07a7154e92f9d502599a9fd
5
5
  SHA512:
6
- metadata.gz: 9cfad8245fc987d8dabc9fa884ac5f25707321c8a42f15c1165c4e46db3b31c34f4f88b06094f276612a08fef0286a4e9365fd7d86f121c6e839d5b982de73e0
7
- data.tar.gz: 4651905b17b397d33d4f723aa0c203cf32d05cd019263dd10fba122c71ea33487681e105863ceb3804b025aeffb7df8de4aab654c25595f8b3dc456202932a02
6
+ metadata.gz: 5a9ad24beef4ed38b5157d07f35c4c79e75ed10293ef7c22254b5510101771a1d01b1dd9909f19ffa73dbea6aa4b0d7b5f9ffeb8362a56cfa95c34430c6b1cb1
7
+ data.tar.gz: 972cd470e23691758ae2f40e57795384a8f6b1b4f060f5e984b0af13e92e1e8b97b0f37b25b543727e85b96af77d857eea5ec7e34ad68d8f966ab5aa4746be42
@@ -1,3 +1,3 @@
1
1
  module CanvasOauth
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -43,6 +43,8 @@ module Dummy
43
43
  # like if you have constraints or database-specific column types
44
44
  # config.active_record.schema_format = :sql
45
45
 
46
+ config.active_record.sqlite3.represent_boolean_as_integer = true
47
+
46
48
  # Enable the asset pipeline
47
49
  config.assets.enabled = true
48
50
 
@@ -4,5 +4,4 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '8f96a1f3e47ab183a6d3c4c5ac4c1ae9f1b271effdba9e1e9ebfbb7cba9bf0fad6182c716dc62c604cbaaae6d86e93c26b867262a04ef0ad770ece90161ede0e'
8
7
  Dummy::Application.config.secret_key_base = "b580d616dcbf14f5394aea18bcae2886515306728e54be7ef37f9c6aa48313368c7d00e4f0af95f4ec7b8e37696381ba0a44e1b939833dbc678bd56362aeb7a0"
@@ -10954,3 +10954,633 @@ Processing by CanvasOauth::CanvasController#oauth as HTML
10954
10954
  Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
10955
10955
  Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
10956
10956
   (0.0ms) rollback transaction
10957
+ Initializing Canvas using configuration in /Users/simon/Instructure/projects/canvas_oauth_engine/spec/dummy/config/canvas.yml
10958
+  (0.0ms) begin transaction
10959
+  (0.1ms) rollback transaction
10960
+  (0.1ms) begin transaction
10961
+  (0.1ms) rollback transaction
10962
+  (0.0ms) begin transaction
10963
+  (0.1ms) rollback transaction
10964
+  (0.0ms) begin transaction
10965
+  (0.0ms) rollback transaction
10966
+  (0.0ms) begin transaction
10967
+  (0.0ms) rollback transaction
10968
+  (0.0ms) begin transaction
10969
+  (0.0ms) rollback transaction
10970
+  (0.0ms) begin transaction
10971
+  (0.0ms) rollback transaction
10972
+  (0.0ms) begin transaction
10973
+  (0.0ms) rollback transaction
10974
+  (0.0ms) begin transaction
10975
+  (0.0ms) rollback transaction
10976
+  (0.1ms) begin transaction
10977
+  (0.0ms) rollback transaction
10978
+  (0.0ms) begin transaction
10979
+  (0.0ms) rollback transaction
10980
+  (0.0ms) begin transaction
10981
+  (0.0ms) rollback transaction
10982
+  (0.0ms) begin transaction
10983
+  (0.0ms) rollback transaction
10984
+  (0.0ms) begin transaction
10985
+  (0.0ms) rollback transaction
10986
+  (0.0ms) begin transaction
10987
+  (0.0ms) rollback transaction
10988
+  (0.0ms) begin transaction
10989
+  (0.0ms) rollback transaction
10990
+  (0.0ms) begin transaction
10991
+  (0.1ms) rollback transaction
10992
+  (0.1ms) begin transaction
10993
+  (0.1ms) rollback transaction
10994
+  (0.0ms) begin transaction
10995
+  (0.1ms) rollback transaction
10996
+  (0.2ms) begin transaction
10997
+  (0.0ms) rollback transaction
10998
+  (0.1ms) begin transaction
10999
+ API call (0.05ms): get ["/api/v1/courses/123", {:headers=>{}}]
11000
+  (0.0ms) rollback transaction
11001
+  (0.0ms) begin transaction
11002
+ API call (0.04ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
11003
+  (0.0ms) rollback transaction
11004
+  (0.0ms) begin transaction
11005
+  (0.1ms) rollback transaction
11006
+  (0.0ms) begin transaction
11007
+ API call (0.04ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
11008
+  (0.1ms) rollback transaction
11009
+  (0.0ms) begin transaction
11010
+  (0.0ms) rollback transaction
11011
+  (0.0ms) begin transaction
11012
+  (0.0ms) rollback transaction
11013
+  (0.0ms) begin transaction
11014
+  (0.1ms) rollback transaction
11015
+  (0.0ms) begin transaction
11016
+ API call (0.04ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
11017
+  (0.0ms) rollback transaction
11018
+  (0.1ms) begin transaction
11019
+ API call (0.07ms): get ["/path", {:headers=>{}}]
11020
+  (0.1ms) rollback transaction
11021
+  (0.0ms) begin transaction
11022
+ API call (0.09ms): get ["/path", {:query=>"stuff", :headers=>{}}]
11023
+  (0.0ms) rollback transaction
11024
+  (0.1ms) begin transaction
11025
+ API call (0.05ms): get ["/path", {:headers=>{}}]
11026
+  (0.0ms) rollback transaction
11027
+  (0.0ms) begin transaction
11028
+  (0.1ms) rollback transaction
11029
+  (0.0ms) begin transaction
11030
+ API call (0.05ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
11031
+  (0.0ms) rollback transaction
11032
+  (0.1ms) begin transaction
11033
+ API call (0.04ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
11034
+  (0.0ms) rollback transaction
11035
+  (0.1ms) begin transaction
11036
+  (0.0ms) rollback transaction
11037
+  (0.1ms) begin transaction
11038
+  (0.1ms) rollback transaction
11039
+  (0.0ms) begin transaction
11040
+ API call (0.04ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
11041
+  (0.0ms) rollback transaction
11042
+  (0.0ms) begin transaction
11043
+  (0.0ms) rollback transaction
11044
+  (0.0ms) begin transaction
11045
+ API call (0.04ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
11046
+  (0.0ms) rollback transaction
11047
+  (0.1ms) begin transaction
11048
+ API call (0.04ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
11049
+  (0.1ms) rollback transaction
11050
+  (0.1ms) begin transaction
11051
+ API call (0.04ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
11052
+  (0.0ms) rollback transaction
11053
+  (0.0ms) begin transaction
11054
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11055
+ Parameters: {"code"=>"invalid"}
11056
+ Rendering text template
11057
+ Rendered text template (0.0ms)
11058
+ Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms)
11059
+  (0.1ms) rollback transaction
11060
+  (0.1ms) begin transaction
11061
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11062
+ Parameters: {"code"=>"valid"}
11063
+ Rendering text template
11064
+ Rendered text template (0.0ms)
11065
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
11066
+  (0.1ms) rollback transaction
11067
+  (0.0ms) begin transaction
11068
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11069
+ Parameters: {"code"=>"valid"}
11070
+  (0.1ms) SAVEPOINT active_record_1
11071
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
11072
+ Redirected to http://test.host/
11073
+ Completed 302 Found in 23ms (ActiveRecord: 2.6ms)
11074
+  (0.0ms) rollback transaction
11075
+  (0.0ms) begin transaction
11076
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11077
+ Rendering text template
11078
+ Rendered text template (0.0ms)
11079
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
11080
+  (0.1ms) rollback transaction
11081
+  (0.0ms) begin transaction
11082
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11083
+ Parameters: {"code"=>"valid", "state"=>"mismatch"}
11084
+ Rendering text template
11085
+ Rendered text template (0.0ms)
11086
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11087
+  (0.0ms) rollback transaction
11088
+  (0.0ms) begin transaction
11089
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11090
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
11091
+  (0.0ms) SAVEPOINT active_record_1
11092
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
11093
+ Redirected to http://test.host/
11094
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
11095
+  (0.1ms) rollback transaction
11096
+  (0.0ms) begin transaction
11097
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11098
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
11099
+ Rendering text template
11100
+ Rendered text template (0.0ms)
11101
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11102
+  (0.1ms) rollback transaction
11103
+  (0.0ms) begin transaction
11104
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11105
+ Parameters: {"code"=>"valid"}
11106
+ Rendering text template
11107
+ Rendered text template (0.0ms)
11108
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11109
+  (0.0ms) rollback transaction
11110
+  (0.0ms) begin transaction
11111
+  (0.1ms) rollback transaction
11112
+  (0.0ms) begin transaction
11113
+  (0.0ms) rollback transaction
11114
+  (0.1ms) begin transaction
11115
+  (0.1ms) rollback transaction
11116
+  (0.0ms) begin transaction
11117
+  (0.0ms) rollback transaction
11118
+  (0.0ms) begin transaction
11119
+  (0.0ms) rollback transaction
11120
+  (0.0ms) begin transaction
11121
+  (0.0ms) rollback transaction
11122
+  (0.0ms) begin transaction
11123
+  (0.0ms) SAVEPOINT active_record_1
11124
+ CanvasOauth::Authorization Create (1.0ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "wrong"], ["token", "abc"], ["last_used_at", "2018-05-09 14:42:35.379380"], ["created_at", "2018-05-09 14:42:35.379783"], ["updated_at", "2018-05-09 14:42:35.379783"]]
11125
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11126
+ CanvasOauth::Authorization Load (0.3ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11127
+  (0.4ms) rollback transaction
11128
+  (0.1ms) begin transaction
11129
+  (0.1ms) SAVEPOINT active_record_1
11130
+ CanvasOauth::Authorization Create (0.4ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:42:35.400663"], ["created_at", "2018-05-09 14:42:35.401288"], ["updated_at", "2018-05-09 14:42:35.401288"]]
11131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11132
+  (0.1ms) SAVEPOINT active_record_1
11133
+ CanvasOauth::Authorization Create (0.1ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "def"], ["last_used_at", "2018-05-09 14:42:35.402906"], ["created_at", "2018-05-09 14:42:35.403361"], ["updated_at", "2018-05-09 14:42:35.403361"]]
11134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11135
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11136
+  (0.1ms) SAVEPOINT active_record_1
11137
+ CanvasOauth::Authorization Update (0.1ms) UPDATE "canvas_oauth_authorizations" SET "last_used_at" = ?, "updated_at" = ? WHERE "canvas_oauth_authorizations"."id" = ? [["last_used_at", "2018-05-09 14:42:35.406989"], ["updated_at", "2018-05-09 14:42:35.407549"], ["id", 2]]
11138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11139
+  (0.4ms) rollback transaction
11140
+  (0.1ms) begin transaction
11141
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11142
+  (0.1ms) rollback transaction
11143
+  (0.1ms) begin transaction
11144
+  (0.1ms) SAVEPOINT active_record_1
11145
+ CanvasOauth::Authorization Create (0.5ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:42:35.413389"], ["created_at", "2018-05-09 14:42:35.413813"], ["updated_at", "2018-05-09 14:42:35.413813"]]
11146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11147
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11148
+  (0.4ms) rollback transaction
11149
+  (0.1ms) begin transaction
11150
+  (0.0ms) SAVEPOINT active_record_1
11151
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:42:35.417972"], ["created_at", "2018-05-09 14:42:35.418276"], ["updated_at", "2018-05-09 14:42:35.418276"]]
11152
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11153
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11154
+  (0.4ms) rollback transaction
11155
+  (0.1ms) begin transaction
11156
+  (0.1ms) SAVEPOINT active_record_1
11157
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:42:35.420784"], ["created_at", "2018-05-09 14:42:35.421060"], ["updated_at", "2018-05-09 14:42:35.421060"]]
11158
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11159
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11160
+  (0.3ms) rollback transaction
11161
+  (0.0ms) begin transaction
11162
+  (0.1ms) SAVEPOINT active_record_1
11163
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:42:35.423486"], ["created_at", "2018-05-09 14:42:35.423764"], ["updated_at", "2018-05-09 14:42:35.423764"]]
11164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11165
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11166
+  (0.3ms) rollback transaction
11167
+ Initializing Canvas using configuration in /Users/simon/Instructure/projects/canvas_oauth_engine/spec/dummy/config/canvas.yml
11168
+  (0.0ms) begin transaction
11169
+  (0.1ms) rollback transaction
11170
+  (0.0ms) begin transaction
11171
+  (0.0ms) rollback transaction
11172
+  (0.0ms) begin transaction
11173
+  (0.0ms) rollback transaction
11174
+  (0.0ms) begin transaction
11175
+  (0.0ms) rollback transaction
11176
+  (0.0ms) begin transaction
11177
+  (0.0ms) rollback transaction
11178
+  (0.0ms) begin transaction
11179
+  (0.0ms) rollback transaction
11180
+  (0.0ms) begin transaction
11181
+  (0.0ms) SAVEPOINT active_record_1
11182
+ CanvasOauth::Authorization Create (0.4ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:01.590137"], ["created_at", "2018-05-09 14:47:01.590553"], ["updated_at", "2018-05-09 14:47:01.590553"]]
11183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11184
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11185
+  (2.2ms) rollback transaction
11186
+  (0.0ms) begin transaction
11187
+  (0.1ms) SAVEPOINT active_record_1
11188
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:01.601706"], ["created_at", "2018-05-09 14:47:01.602191"], ["updated_at", "2018-05-09 14:47:01.602191"]]
11189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11190
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11191
+  (0.4ms) rollback transaction
11192
+  (0.0ms) begin transaction
11193
+  (0.0ms) SAVEPOINT active_record_1
11194
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:01.605037"], ["created_at", "2018-05-09 14:47:01.605352"], ["updated_at", "2018-05-09 14:47:01.605352"]]
11195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11196
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11197
+  (0.4ms) rollback transaction
11198
+  (0.0ms) begin transaction
11199
+  (0.0ms) SAVEPOINT active_record_1
11200
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:01.607726"], ["created_at", "2018-05-09 14:47:01.607981"], ["updated_at", "2018-05-09 14:47:01.607981"]]
11201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11202
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11203
+  (0.3ms) rollback transaction
11204
+  (0.1ms) begin transaction
11205
+  (0.0ms) SAVEPOINT active_record_1
11206
+ CanvasOauth::Authorization Create (0.2ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "wrong"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:01.610272"], ["created_at", "2018-05-09 14:47:01.610500"], ["updated_at", "2018-05-09 14:47:01.610500"]]
11207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11208
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11209
+  (0.3ms) rollback transaction
11210
+  (0.0ms) begin transaction
11211
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11212
+  (0.0ms) rollback transaction
11213
+  (0.0ms) begin transaction
11214
+  (0.0ms) SAVEPOINT active_record_1
11215
+ CanvasOauth::Authorization Create (0.2ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:01.615028"], ["created_at", "2018-05-09 14:47:01.615275"], ["updated_at", "2018-05-09 14:47:01.615275"]]
11216
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11217
+  (0.0ms) SAVEPOINT active_record_1
11218
+ CanvasOauth::Authorization Create (0.1ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "def"], ["last_used_at", "2018-05-09 14:47:01.616125"], ["created_at", "2018-05-09 14:47:01.616346"], ["updated_at", "2018-05-09 14:47:01.616346"]]
11219
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11220
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11221
+  (0.1ms) SAVEPOINT active_record_1
11222
+ CanvasOauth::Authorization Update (0.1ms) UPDATE "canvas_oauth_authorizations" SET "last_used_at" = ?, "updated_at" = ? WHERE "canvas_oauth_authorizations"."id" = ? [["last_used_at", "2018-05-09 14:47:01.617564"], ["updated_at", "2018-05-09 14:47:01.618119"], ["id", 2]]
11223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11224
+  (0.3ms) rollback transaction
11225
+  (0.0ms) begin transaction
11226
+  (0.0ms) rollback transaction
11227
+  (0.0ms) begin transaction
11228
+  (0.0ms) rollback transaction
11229
+  (0.0ms) begin transaction
11230
+  (0.0ms) rollback transaction
11231
+  (0.0ms) begin transaction
11232
+  (0.0ms) rollback transaction
11233
+  (0.0ms) begin transaction
11234
+  (0.0ms) rollback transaction
11235
+  (0.0ms) begin transaction
11236
+  (0.0ms) rollback transaction
11237
+  (0.0ms) begin transaction
11238
+  (0.0ms) rollback transaction
11239
+  (0.0ms) begin transaction
11240
+  (0.0ms) rollback transaction
11241
+  (0.0ms) begin transaction
11242
+  (0.0ms) rollback transaction
11243
+  (0.0ms) begin transaction
11244
+  (0.0ms) rollback transaction
11245
+  (0.0ms) begin transaction
11246
+  (0.0ms) rollback transaction
11247
+  (0.0ms) begin transaction
11248
+  (0.0ms) rollback transaction
11249
+  (0.0ms) begin transaction
11250
+  (0.0ms) rollback transaction
11251
+  (0.0ms) begin transaction
11252
+  (0.0ms) rollback transaction
11253
+  (0.0ms) begin transaction
11254
+  (0.0ms) rollback transaction
11255
+  (0.1ms) begin transaction
11256
+  (0.0ms) rollback transaction
11257
+  (0.0ms) begin transaction
11258
+  (0.0ms) rollback transaction
11259
+  (0.0ms) begin transaction
11260
+  (0.0ms) rollback transaction
11261
+  (0.0ms) begin transaction
11262
+ API call (0.04ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
11263
+  (0.0ms) rollback transaction
11264
+  (0.0ms) begin transaction
11265
+ API call (0.02ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
11266
+  (0.0ms) rollback transaction
11267
+  (0.0ms) begin transaction
11268
+ API call (0.02ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
11269
+  (0.0ms) rollback transaction
11270
+  (0.0ms) begin transaction
11271
+  (0.0ms) rollback transaction
11272
+  (0.0ms) begin transaction
11273
+  (0.0ms) rollback transaction
11274
+  (0.0ms) begin transaction
11275
+ API call (0.02ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
11276
+  (0.0ms) rollback transaction
11277
+  (0.0ms) begin transaction
11278
+ API call (0.02ms): get ["/path", {:query=>"stuff", :headers=>{}}]
11279
+  (0.0ms) rollback transaction
11280
+  (0.0ms) begin transaction
11281
+ API call (0.04ms): get ["/path", {:headers=>{}}]
11282
+  (0.0ms) rollback transaction
11283
+  (0.0ms) begin transaction
11284
+ API call (0.02ms): get ["/path", {:headers=>{}}]
11285
+  (0.0ms) rollback transaction
11286
+  (0.0ms) begin transaction
11287
+ API call (0.02ms): get ["/api/v1/courses/123", {:headers=>{}}]
11288
+  (0.0ms) rollback transaction
11289
+  (0.0ms) begin transaction
11290
+ API call (0.02ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
11291
+  (0.0ms) rollback transaction
11292
+  (0.0ms) begin transaction
11293
+  (0.0ms) rollback transaction
11294
+  (0.0ms) begin transaction
11295
+ API call (0.02ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
11296
+  (0.0ms) rollback transaction
11297
+  (0.0ms) begin transaction
11298
+ API call (0.02ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
11299
+  (0.0ms) rollback transaction
11300
+  (0.0ms) begin transaction
11301
+  (0.0ms) rollback transaction
11302
+  (0.0ms) begin transaction
11303
+ API call (0.02ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
11304
+  (0.0ms) rollback transaction
11305
+  (0.0ms) begin transaction
11306
+  (0.0ms) rollback transaction
11307
+  (0.0ms) begin transaction
11308
+  (0.0ms) rollback transaction
11309
+  (0.0ms) begin transaction
11310
+ API call (0.02ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
11311
+  (0.1ms) rollback transaction
11312
+  (0.0ms) begin transaction
11313
+  (0.0ms) rollback transaction
11314
+  (0.0ms) begin transaction
11315
+  (0.0ms) rollback transaction
11316
+  (0.0ms) begin transaction
11317
+  (0.0ms) rollback transaction
11318
+  (0.0ms) begin transaction
11319
+  (0.0ms) rollback transaction
11320
+  (0.0ms) begin transaction
11321
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11322
+ Parameters: {"code"=>"invalid"}
11323
+ Rendering text template
11324
+ Rendered text template (0.0ms)
11325
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
11326
+  (0.0ms) rollback transaction
11327
+  (0.0ms) begin transaction
11328
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11329
+ Parameters: {"code"=>"valid"}
11330
+ Rendering text template
11331
+ Rendered text template (0.0ms)
11332
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11333
+  (0.0ms) rollback transaction
11334
+  (0.0ms) begin transaction
11335
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11336
+ Parameters: {"code"=>"valid"}
11337
+  (0.0ms) SAVEPOINT active_record_1
11338
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
11339
+ Redirected to http://test.host/
11340
+ Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
11341
+  (0.0ms) rollback transaction
11342
+  (0.0ms) begin transaction
11343
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11344
+ Parameters: {"code"=>"valid"}
11345
+ Rendering text template
11346
+ Rendered text template (0.0ms)
11347
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11348
+  (0.0ms) rollback transaction
11349
+  (0.0ms) begin transaction
11350
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11351
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
11352
+ Rendering text template
11353
+ Rendered text template (0.0ms)
11354
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11355
+  (0.0ms) rollback transaction
11356
+  (0.0ms) begin transaction
11357
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11358
+ Rendering text template
11359
+ Rendered text template (0.0ms)
11360
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11361
+  (0.0ms) rollback transaction
11362
+  (0.0ms) begin transaction
11363
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11364
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
11365
+  (0.0ms) SAVEPOINT active_record_1
11366
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
11367
+ Redirected to http://test.host/
11368
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
11369
+  (0.0ms) rollback transaction
11370
+  (0.0ms) begin transaction
11371
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11372
+ Parameters: {"code"=>"valid", "state"=>"mismatch"}
11373
+ Rendering text template
11374
+ Rendered text template (0.0ms)
11375
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11376
+  (0.0ms) rollback transaction
11377
+ Initializing Canvas using configuration in /Users/simon/Instructure/projects/canvas_oauth_engine/spec/dummy/config/canvas.yml
11378
+  (0.0ms) begin transaction
11379
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11380
+ Parameters: {"code"=>"valid", "state"=>"mismatch"}
11381
+ Rendering text template
11382
+ Rendered text template (0.0ms)
11383
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
11384
+  (0.1ms) rollback transaction
11385
+  (0.1ms) begin transaction
11386
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11387
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
11388
+  (0.0ms) SAVEPOINT active_record_1
11389
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
11390
+ Redirected to http://test.host/
11391
+ Completed 302 Found in 11ms (ActiveRecord: 1.3ms)
11392
+  (0.0ms) rollback transaction
11393
+  (0.1ms) begin transaction
11394
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11395
+ Rendering text template
11396
+ Rendered text template (0.0ms)
11397
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11398
+  (0.1ms) rollback transaction
11399
+  (0.0ms) begin transaction
11400
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11401
+ Parameters: {"code"=>"valid"}
11402
+ Rendering text template
11403
+ Rendered text template (0.0ms)
11404
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11405
+  (0.0ms) rollback transaction
11406
+  (0.0ms) begin transaction
11407
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11408
+ Parameters: {"code"=>"valid"}
11409
+  (0.0ms) SAVEPOINT active_record_1
11410
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
11411
+ Redirected to http://test.host/
11412
+ Completed 302 Found in 1ms (ActiveRecord: 0.1ms)
11413
+  (0.0ms) rollback transaction
11414
+  (0.0ms) begin transaction
11415
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11416
+ Parameters: {"code"=>"invalid"}
11417
+ Rendering text template
11418
+ Rendered text template (0.0ms)
11419
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11420
+  (0.0ms) rollback transaction
11421
+  (0.0ms) begin transaction
11422
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11423
+ Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
11424
+ Rendering text template
11425
+ Rendered text template (0.0ms)
11426
+ Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
11427
+  (0.0ms) rollback transaction
11428
+  (0.0ms) begin transaction
11429
+ Processing by CanvasOauth::CanvasController#oauth as HTML
11430
+ Parameters: {"code"=>"valid"}
11431
+ Rendering text template
11432
+ Rendered text template (0.0ms)
11433
+ Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
11434
+  (0.0ms) rollback transaction
11435
+  (0.0ms) begin transaction
11436
+  (0.0ms) rollback transaction
11437
+  (0.0ms) begin transaction
11438
+  (0.0ms) rollback transaction
11439
+  (0.0ms) begin transaction
11440
+  (0.0ms) rollback transaction
11441
+  (0.0ms) begin transaction
11442
+  (0.0ms) SAVEPOINT active_record_1
11443
+ CanvasOauth::Authorization Create (0.5ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:13.357798"], ["created_at", "2018-05-09 14:47:13.358069"], ["updated_at", "2018-05-09 14:47:13.358069"]]
11444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11445
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11446
+  (2.3ms) rollback transaction
11447
+  (0.0ms) begin transaction
11448
+  (0.1ms) SAVEPOINT active_record_1
11449
+ CanvasOauth::Authorization Create (0.6ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:13.370202"], ["created_at", "2018-05-09 14:47:13.370746"], ["updated_at", "2018-05-09 14:47:13.370746"]]
11450
+  (0.1ms) RELEASE SAVEPOINT active_record_1
11451
+ CanvasOauth::Authorization Load (0.1ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11452
+  (0.4ms) rollback transaction
11453
+  (0.0ms) begin transaction
11454
+  (0.0ms) SAVEPOINT active_record_1
11455
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:13.374151"], ["created_at", "2018-05-09 14:47:13.374461"], ["updated_at", "2018-05-09 14:47:13.374461"]]
11456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11457
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11458
+  (0.4ms) rollback transaction
11459
+  (0.0ms) begin transaction
11460
+  (0.0ms) SAVEPOINT active_record_1
11461
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:13.377396"], ["created_at", "2018-05-09 14:47:13.377702"], ["updated_at", "2018-05-09 14:47:13.377702"]]
11462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11463
+ CanvasOauth::Authorization Load (0.0ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT ? [["LIMIT", 1]]
11464
+  (0.3ms) rollback transaction
11465
+  (0.0ms) begin transaction
11466
+  (0.0ms) SAVEPOINT active_record_1
11467
+ CanvasOauth::Authorization Create (0.3ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "wrong"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:13.380267"], ["created_at", "2018-05-09 14:47:13.380544"], ["updated_at", "2018-05-09 14:47:13.380544"]]
11468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11469
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11470
+  (0.3ms) rollback transaction
11471
+  (0.0ms) begin transaction
11472
+  (0.0ms) SAVEPOINT active_record_1
11473
+ CanvasOauth::Authorization Create (0.2ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "abc"], ["last_used_at", "2018-05-09 14:47:13.384221"], ["created_at", "2018-05-09 14:47:13.384483"], ["updated_at", "2018-05-09 14:47:13.384483"]]
11474
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11475
+  (0.0ms) SAVEPOINT active_record_1
11476
+ CanvasOauth::Authorization Create (0.1ms) INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "tool_consumer_instance_guid", "token", "last_used_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["token", "def"], ["last_used_at", "2018-05-09 14:47:13.385376"], ["created_at", "2018-05-09 14:47:13.385583"], ["updated_at", "2018-05-09 14:47:13.385583"]]
11477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11478
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11479
+  (0.0ms) SAVEPOINT active_record_1
11480
+ CanvasOauth::Authorization Update (0.1ms) UPDATE "canvas_oauth_authorizations" SET "last_used_at" = ?, "updated_at" = ? WHERE "canvas_oauth_authorizations"."id" = ? [["last_used_at", "2018-05-09 14:47:13.386895"], ["updated_at", "2018-05-09 14:47:13.387219"], ["id", 2]]
11481
+  (0.0ms) RELEASE SAVEPOINT active_record_1
11482
+  (0.3ms) rollback transaction
11483
+  (0.0ms) begin transaction
11484
+ CanvasOauth::Authorization Load (0.2ms) SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = ? AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = ? ORDER BY created_at DESC LIMIT ? [["canvas_user_id", 123], ["tool_consumer_instance_guid", "abc123"], ["LIMIT", 1]]
11485
+  (0.0ms) rollback transaction
11486
+  (0.0ms) begin transaction
11487
+  (0.0ms) rollback transaction
11488
+  (0.0ms) begin transaction
11489
+ API call (0.04ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
11490
+  (0.0ms) rollback transaction
11491
+  (0.0ms) begin transaction
11492
+ API call (0.03ms): get ["/path", {:query=>"stuff", :headers=>{}}]
11493
+  (0.0ms) rollback transaction
11494
+  (0.0ms) begin transaction
11495
+ API call (0.03ms): get ["/path", {:headers=>{}}]
11496
+  (0.0ms) rollback transaction
11497
+  (0.0ms) begin transaction
11498
+ API call (0.04ms): get ["/path", {:headers=>{}}]
11499
+  (0.0ms) rollback transaction
11500
+  (0.0ms) begin transaction
11501
+ API call (0.02ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
11502
+  (0.0ms) rollback transaction
11503
+  (0.0ms) begin transaction
11504
+  (0.0ms) rollback transaction
11505
+  (0.0ms) begin transaction
11506
+ API call (0.02ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
11507
+  (0.0ms) rollback transaction
11508
+  (0.0ms) begin transaction
11509
+  (0.0ms) rollback transaction
11510
+  (0.0ms) begin transaction
11511
+  (0.0ms) rollback transaction
11512
+  (0.0ms) begin transaction
11513
+ API call (0.03ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
11514
+  (0.0ms) rollback transaction
11515
+  (0.0ms) begin transaction
11516
+ API call (0.02ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
11517
+  (0.0ms) rollback transaction
11518
+  (0.0ms) begin transaction
11519
+  (0.0ms) rollback transaction
11520
+  (0.0ms) begin transaction
11521
+ API call (0.03ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
11522
+  (0.0ms) rollback transaction
11523
+  (0.0ms) begin transaction
11524
+ API call (0.03ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
11525
+  (0.0ms) rollback transaction
11526
+  (0.0ms) begin transaction
11527
+  (0.0ms) rollback transaction
11528
+  (0.1ms) begin transaction
11529
+ API call (0.05ms): get ["/api/v1/courses/123", {:headers=>{}}]
11530
+  (0.1ms) rollback transaction
11531
+  (0.0ms) begin transaction
11532
+ API call (0.04ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
11533
+  (0.0ms) rollback transaction
11534
+  (0.0ms) begin transaction
11535
+  (0.0ms) rollback transaction
11536
+  (0.0ms) begin transaction
11537
+  (0.0ms) rollback transaction
11538
+  (0.0ms) begin transaction
11539
+  (0.0ms) rollback transaction
11540
+  (0.0ms) begin transaction
11541
+ API call (0.02ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
11542
+  (0.0ms) rollback transaction
11543
+  (0.0ms) begin transaction
11544
+  (0.0ms) rollback transaction
11545
+  (0.0ms) begin transaction
11546
+  (0.0ms) rollback transaction
11547
+  (0.1ms) begin transaction
11548
+  (0.0ms) rollback transaction
11549
+  (0.0ms) begin transaction
11550
+  (0.0ms) rollback transaction
11551
+  (0.0ms) begin transaction
11552
+  (0.1ms) rollback transaction
11553
+  (0.1ms) begin transaction
11554
+  (0.0ms) rollback transaction
11555
+  (0.0ms) begin transaction
11556
+  (0.0ms) rollback transaction
11557
+  (0.0ms) begin transaction
11558
+  (0.0ms) rollback transaction
11559
+  (0.0ms) begin transaction
11560
+  (0.0ms) rollback transaction
11561
+  (0.1ms) begin transaction
11562
+  (0.0ms) rollback transaction
11563
+  (0.0ms) begin transaction
11564
+  (0.1ms) rollback transaction
11565
+  (0.0ms) begin transaction
11566
+  (0.0ms) rollback transaction
11567
+  (0.0ms) begin transaction
11568
+  (0.0ms) rollback transaction
11569
+  (0.0ms) begin transaction
11570
+  (0.0ms) rollback transaction
11571
+  (0.1ms) begin transaction
11572
+  (0.0ms) rollback transaction
11573
+  (0.0ms) begin transaction
11574
+  (0.0ms) rollback transaction
11575
+  (0.0ms) begin transaction
11576
+  (0.0ms) rollback transaction
11577
+  (0.0ms) begin transaction
11578
+  (0.0ms) rollback transaction
11579
+  (0.0ms) begin transaction
11580
+  (0.0ms) rollback transaction
11581
+  (0.0ms) begin transaction
11582
+  (0.0ms) rollback transaction
11583
+  (0.0ms) begin transaction
11584
+  (0.0ms) rollback transaction
11585
+  (0.0ms) begin transaction
11586
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_oauth_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Donahue
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-08-04 00:00:00.000000000 Z
13
+ date: 2018-05-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '4.2'
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: '5.2'
24
+ version: '5.3'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: '4.2'
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: '5.2'
34
+ version: '5.3'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: httparty
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -295,45 +295,45 @@ required_rubygems_version: !ruby/object:Gem::Requirement
295
295
  version: '0'
296
296
  requirements: []
297
297
  rubyforge_project:
298
- rubygems_version: 2.6.12
298
+ rubygems_version: 2.7.6
299
299
  signing_key:
300
300
  specification_version: 4
301
301
  summary: CanvasOauth is a mountable engine for handling the oauth workflow with canvas
302
302
  and making api calls from your rails app.
303
303
  test_files:
304
- - spec/controllers/canvas_oauth/canvas_controller_spec.rb
304
+ - spec/spec_helper.rb
305
305
  - spec/dummy/app/controllers/application_controller.rb
306
306
  - spec/dummy/app/controllers/welcome_controller.rb
307
- - spec/dummy/config/application.rb
308
- - spec/dummy/config/boot.rb
307
+ - spec/dummy/config/routes.rb
309
308
  - spec/dummy/config/canvas.yml
310
- - spec/dummy/config/database.yml
311
- - spec/dummy/config/environment.rb
312
- - spec/dummy/config/environments/development.rb
309
+ - spec/dummy/config/locales/en.yml
313
310
  - spec/dummy/config/environments/production.rb
311
+ - spec/dummy/config/environments/development.rb
314
312
  - spec/dummy/config/environments/test.rb
313
+ - spec/dummy/config/environment.rb
314
+ - spec/dummy/config/application.rb
315
+ - spec/dummy/config/database.yml
316
+ - spec/dummy/config/boot.rb
315
317
  - spec/dummy/config/initializers/backtrace_silencers.rb
316
- - spec/dummy/config/initializers/inflections.rb
317
318
  - spec/dummy/config/initializers/mime_types.rb
318
- - spec/dummy/config/initializers/secret_token.rb
319
319
  - spec/dummy/config/initializers/session_store.rb
320
320
  - spec/dummy/config/initializers/wrap_parameters.rb
321
- - spec/dummy/config/locales/en.yml
322
- - spec/dummy/config/routes.rb
321
+ - spec/dummy/config/initializers/secret_token.rb
322
+ - spec/dummy/config/initializers/inflections.rb
323
323
  - spec/dummy/config.ru
324
- - spec/dummy/db/migrate/20160711200737_create_canvas_oauth_authorizations.canvas_oauth.rb
325
- - spec/dummy/db/schema.rb
326
- - spec/dummy/db/test.sqlite3
327
- - spec/dummy/log/test.log
328
- - spec/dummy/public/404.html
324
+ - spec/dummy/script/rails
325
+ - spec/dummy/Rakefile
326
+ - spec/dummy/public/favicon.ico
329
327
  - spec/dummy/public/422.html
330
328
  - spec/dummy/public/500.html
331
- - spec/dummy/public/favicon.ico
329
+ - spec/dummy/public/404.html
332
330
  - spec/dummy/public/robots.txt
333
- - spec/dummy/Rakefile
331
+ - spec/dummy/db/schema.rb
332
+ - spec/dummy/db/test.sqlite3
333
+ - spec/dummy/db/migrate/20160711200737_create_canvas_oauth_authorizations.canvas_oauth.rb
334
+ - spec/dummy/log/test.log
334
335
  - spec/dummy/README.rdoc
335
- - spec/dummy/script/rails
336
+ - spec/models/canvas_oauth/authorization_spec.rb
336
337
  - spec/lib/canvas_oauth/canvas_api_extensions_spec.rb
337
338
  - spec/lib/canvas_oauth/canvas_api_spec.rb
338
- - spec/models/canvas_oauth/authorization_spec.rb
339
- - spec/spec_helper.rb
339
+ - spec/controllers/canvas_oauth/canvas_controller_spec.rb