canvas_oauth_engine 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 27512d5016c98d576aea24005ffae12e1a1d6cee
|
4
|
+
data.tar.gz: b29233aa5ef5a4639b41c5db82d8d46d59f02896
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 761b7661314fa8a34b1438a9d6ccdc932aa6c0bd7ba5dda0099b5934199155b89abc701d0006a68929c43686288c187681658961b0df799bd5e3716f44e74c76
|
7
|
+
data.tar.gz: c7f2b447c20265f136bd77f3e9d110259e9f00ea823d9ed793f8c7275707d3bf5d7b8ca3b9d28f60887ce23258497d4382e1880add34c787b8223fea54cc7491
|
data/README.md
CHANGED
@@ -4,6 +4,14 @@ CanvasOauth is a mountable engine for handling the oauth workflow with canvas
|
|
4
4
|
and making api calls from your rails app. This is tested with Rails 3.2, we'll
|
5
5
|
be looking at verifying with Rails 4 soon.
|
6
6
|
|
7
|
+
## Warning
|
8
|
+
|
9
|
+
The current version of this gem relies heavily on being able to access the user
|
10
|
+
session. Since LTI apps generally run in an iframe inside the LMS, this means
|
11
|
+
that tools using this engine MUST run on the same root domain as the LMS they
|
12
|
+
are plugging into. This is obviously not ideal, and we will be working to
|
13
|
+
remove this limitation in the future.
|
14
|
+
|
7
15
|
## Installation
|
8
16
|
|
9
17
|
Add the gem to your `Gemfile` with the following line, and then `bundle install`
|
@@ -52,7 +60,7 @@ generate in the canvas application.
|
|
52
60
|
Finally, run migrations:
|
53
61
|
|
54
62
|
```
|
55
|
-
bundle
|
63
|
+
bundle install
|
56
64
|
bundle exec rake railties:install:migrations
|
57
65
|
bundle exec rake db:migrate
|
58
66
|
```
|
data/lib/canvas_oauth/version.rb
CHANGED
data/spec/dummy/log/test.log
CHANGED
@@ -8125,3 +8125,199 @@ API call (0.06ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :h
|
|
8125
8125
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8126
8126
|
API call (0.06ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
|
8127
8127
|
[1m[35m (0.1ms)[0m rollback transaction
|
8128
|
+
Initializing Canvas using configuration in /Users/simon/Instructure/projects/canvas_oauth_engine/spec/dummy/config/canvas.yml
|
8129
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
8130
|
+
[1m[35mCanvasOauth::Authorization Load (2.9ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
8131
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8132
|
+
Parameters: {"code"=>"valid"}
|
8133
|
+
Rendered text template (0.0ms)
|
8134
|
+
Completed 200 OK in 9ms (Views: 8.6ms | ActiveRecord: 0.0ms)
|
8135
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8136
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8137
|
+
[1m[36mCanvasOauth::Authorization Load (0.2ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1[0m
|
8138
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8139
|
+
Parameters: {"code"=>"valid"}
|
8140
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
8141
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
8142
|
+
Redirected to http://test.host/
|
8143
|
+
Completed 302 Found in 29ms (ActiveRecord: 0.3ms)
|
8144
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8145
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8146
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
8147
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8148
|
+
Parameters: {"code"=>"invalid"}
|
8149
|
+
Completed 200 OK in 0ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
8150
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8151
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8152
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8153
|
+
Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
|
8154
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
8155
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
8156
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8157
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8158
|
+
Parameters: {"code"=>"valid"}
|
8159
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
8160
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8161
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8162
|
+
[1m[36mCanvasOauth::Authorization Load (0.2ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1[0m
|
8163
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8164
|
+
Parameters: {"code"=>"valid", "state"=>"zzyyxx"}
|
8165
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8166
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
8167
|
+
Redirected to http://test.host/
|
8168
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.1ms)
|
8169
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8170
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8171
|
+
[1m[35mCanvasOauth::Authorization Load (0.2ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" IS NULL AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" IS NULL ORDER BY created_at DESC LIMIT 1
|
8172
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8173
|
+
Parameters: {"code"=>"valid", "state"=>"mismatch"}
|
8174
|
+
Completed 200 OK in 0ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
8175
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8176
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8177
|
+
Processing by CanvasOauth::CanvasController#oauth as HTML
|
8178
|
+
Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
|
8179
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8180
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8181
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8182
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8183
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8184
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8185
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
8186
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8187
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8188
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.484089"], ["last_used_at", "2015-08-20 23:05:23.483817"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.484089"]]
|
8189
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8190
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
|
8191
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
8192
|
+
[1m[35m (0.1ms)[0m begin transaction
|
8193
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8194
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.496170"], ["last_used_at", "2015-08-20 23:05:23.495840"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.496170"]]
|
8195
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8196
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
|
8197
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8198
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8199
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8200
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.498854"], ["last_used_at", "2015-08-20 23:05:23.498666"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.498854"]]
|
8201
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8202
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
|
8203
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8204
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8205
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8206
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.500963"], ["last_used_at", "2015-08-20 23:05:23.500742"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.500963"]]
|
8207
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8208
|
+
[1m[35mCanvasOauth::Authorization Load (0.1ms)[0m SELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" ORDER BY "canvas_oauth_authorizations"."id" ASC LIMIT 1
|
8209
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
8210
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8211
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
8212
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.503087"], ["last_used_at", "2015-08-20 23:05:23.502904"], ["token", "abc"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.503087"]]
|
8213
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
8214
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8215
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.503931"], ["last_used_at", "2015-08-20 23:05:23.503773"], ["token", "def"], ["tool_consumer_instance_guid", "abc123"], ["updated_at", "2015-08-20 23:05:23.503931"]]
|
8216
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8217
|
+
[1m[36mCanvasOauth::Authorization Load (0.2ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1[0m
|
8218
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8219
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "canvas_oauth_authorizations" SET "last_used_at" = ?, "updated_at" = ? WHERE "canvas_oauth_authorizations"."id" = 2[0m [["last_used_at", "2015-08-20 23:05:23.506114"], ["updated_at", "2015-08-20 23:05:23.506363"]]
|
8220
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8221
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
8222
|
+
[1m[35m (0.0ms)[0m begin transaction
|
8223
|
+
[1m[36mCanvasOauth::Authorization Load (0.1ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1[0m
|
8224
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8225
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8226
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
8227
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "canvas_oauth_authorizations" ("canvas_user_id", "created_at", "last_used_at", "token", "tool_consumer_instance_guid", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["canvas_user_id", 123], ["created_at", "2015-08-20 23:05:23.509973"], ["last_used_at", "2015-08-20 23:05:23.509726"], ["token", "abc"], ["tool_consumer_instance_guid", "wrong"], ["updated_at", "2015-08-20 23:05:23.509973"]]
|
8228
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
8229
|
+
[1m[36mCanvasOauth::Authorization Load (0.1ms)[0m [1mSELECT "canvas_oauth_authorizations".* FROM "canvas_oauth_authorizations" WHERE "canvas_oauth_authorizations"."canvas_user_id" = 123 AND "canvas_oauth_authorizations"."tool_consumer_instance_guid" = 'abc123' ORDER BY created_at DESC LIMIT 1[0m
|
8230
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
8231
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8232
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8233
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8234
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8235
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8236
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8237
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8238
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8239
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8240
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8241
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8242
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8243
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8244
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8245
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8246
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8247
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8248
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8249
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8250
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8251
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8252
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8253
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8254
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8256
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8257
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8258
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8259
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8260
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8261
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8262
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8263
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8264
|
+
API call (0.02ms): get ["/path", {:query=>"stuff", :headers=>{}}]
|
8265
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8266
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8267
|
+
API call (0.04ms): get ["/path", {:headers=>{}}]
|
8268
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8269
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8270
|
+
API call (0.02ms): get ["/path", {:headers=>{}}]
|
8271
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8272
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8273
|
+
API call (0.02ms): put ["/api/v1/courses/1/assignments/2/submissions/3", {:body=>{}, :headers=>{}}]
|
8274
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8275
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8276
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8277
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8278
|
+
API call (0.02ms): get ["/api/v1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
8279
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8280
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8281
|
+
API call (0.02ms): get ["/api/v1/courses/123/sections", {:query=>{:include=>["students", "avatar_url", "enrollments"], :per_page=>50}, :headers=>{}}]
|
8282
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8283
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8284
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8285
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8286
|
+
API call (0.02ms): get ["/api/v1/courses/123/assignments", {:query=>{:per_page=>50}, :headers=>{}}]
|
8287
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8288
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8289
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8290
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8291
|
+
API call (0.02ms): get ["/api/v1/courses/123/students", {:query=>{:per_page=>50}, :headers=>{}}]
|
8292
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8294
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8295
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8296
|
+
API call (0.02ms): get ["/api/v1/users/123/profile", {:headers=>{}}]
|
8297
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8298
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8299
|
+
API call (0.03ms): get ["/api/v1/accounts/1/courses", {:query=>{:per_page=>50}, :headers=>{}}]
|
8300
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8301
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8302
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8303
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8304
|
+
API call (0.02ms): get ["/api/v1/courses/123", {:headers=>{}}]
|
8305
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8306
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8307
|
+
API call (0.02ms): get ["/api/v1/accounts/1/users", {:query=>{:per_page=>50}, :headers=>{}}]
|
8308
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8309
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8312
|
+
API call (0.02ms): post ["/api/v1/courses/123/assignments", {:body=>{:assignment=>{:name=>"Assignment"}}, :headers=>{}}]
|
8313
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8314
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8315
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8316
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8317
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8318
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8319
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
8321
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8322
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
8323
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas_oauth_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dave Donahue
|
@@ -11,50 +10,45 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2015-
|
13
|
+
date: 2015-08-21 00:00:00.000000000 Z
|
15
14
|
dependencies:
|
16
15
|
- !ruby/object:Gem::Dependency
|
17
16
|
name: rails
|
18
17
|
requirement: !ruby/object:Gem::Requirement
|
19
|
-
none: false
|
20
18
|
requirements:
|
21
|
-
- -
|
19
|
+
- - ">="
|
22
20
|
- !ruby/object:Gem::Version
|
23
21
|
version: '3.2'
|
24
|
-
- - <
|
22
|
+
- - "<"
|
25
23
|
- !ruby/object:Gem::Version
|
26
24
|
version: '4.2'
|
27
25
|
type: :runtime
|
28
26
|
prerelease: false
|
29
27
|
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
none: false
|
31
28
|
requirements:
|
32
|
-
- -
|
29
|
+
- - ">="
|
33
30
|
- !ruby/object:Gem::Version
|
34
31
|
version: '3.2'
|
35
|
-
- - <
|
32
|
+
- - "<"
|
36
33
|
- !ruby/object:Gem::Version
|
37
34
|
version: '4.2'
|
38
35
|
- !ruby/object:Gem::Dependency
|
39
36
|
name: httparty
|
40
37
|
requirement: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
38
|
requirements:
|
43
|
-
- -
|
39
|
+
- - ">="
|
44
40
|
- !ruby/object:Gem::Version
|
45
41
|
version: 0.9.0
|
46
42
|
type: :runtime
|
47
43
|
prerelease: false
|
48
44
|
version_requirements: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
45
|
requirements:
|
51
|
-
- -
|
46
|
+
- - ">="
|
52
47
|
- !ruby/object:Gem::Version
|
53
48
|
version: 0.9.0
|
54
49
|
- !ruby/object:Gem::Dependency
|
55
50
|
name: link_header
|
56
51
|
requirement: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
52
|
requirements:
|
59
53
|
- - '='
|
60
54
|
- !ruby/object:Gem::Version
|
@@ -62,7 +56,6 @@ dependencies:
|
|
62
56
|
type: :runtime
|
63
57
|
prerelease: false
|
64
58
|
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
59
|
requirements:
|
67
60
|
- - '='
|
68
61
|
- !ruby/object:Gem::Version
|
@@ -70,161 +63,127 @@ dependencies:
|
|
70
63
|
- !ruby/object:Gem::Dependency
|
71
64
|
name: sqlite3
|
72
65
|
requirement: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
66
|
requirements:
|
75
|
-
- -
|
67
|
+
- - ">="
|
76
68
|
- !ruby/object:Gem::Version
|
77
69
|
version: '0'
|
78
70
|
type: :development
|
79
71
|
prerelease: false
|
80
72
|
version_requirements: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
73
|
requirements:
|
83
|
-
- -
|
74
|
+
- - ">="
|
84
75
|
- !ruby/object:Gem::Version
|
85
76
|
version: '0'
|
86
77
|
- !ruby/object:Gem::Dependency
|
87
78
|
name: rspec
|
88
79
|
requirement: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
80
|
requirements:
|
91
|
-
- -
|
81
|
+
- - ">="
|
92
82
|
- !ruby/object:Gem::Version
|
93
83
|
version: '0'
|
94
84
|
type: :development
|
95
85
|
prerelease: false
|
96
86
|
version_requirements: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
87
|
requirements:
|
99
|
-
- -
|
88
|
+
- - ">="
|
100
89
|
- !ruby/object:Gem::Version
|
101
90
|
version: '0'
|
102
91
|
- !ruby/object:Gem::Dependency
|
103
92
|
name: rspec-its
|
104
93
|
requirement: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
94
|
requirements:
|
107
|
-
- -
|
95
|
+
- - ">="
|
108
96
|
- !ruby/object:Gem::Version
|
109
97
|
version: '0'
|
110
98
|
type: :development
|
111
99
|
prerelease: false
|
112
100
|
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
101
|
requirements:
|
115
|
-
- -
|
102
|
+
- - ">="
|
116
103
|
- !ruby/object:Gem::Version
|
117
104
|
version: '0'
|
118
105
|
- !ruby/object:Gem::Dependency
|
119
106
|
name: rspec-rails
|
120
107
|
requirement: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
108
|
requirements:
|
123
|
-
- -
|
109
|
+
- - ">="
|
124
110
|
- !ruby/object:Gem::Version
|
125
111
|
version: '0'
|
126
112
|
type: :development
|
127
113
|
prerelease: false
|
128
114
|
version_requirements: !ruby/object:Gem::Requirement
|
129
|
-
none: false
|
130
115
|
requirements:
|
131
|
-
- -
|
116
|
+
- - ">="
|
132
117
|
- !ruby/object:Gem::Version
|
133
118
|
version: '0'
|
134
119
|
- !ruby/object:Gem::Dependency
|
135
120
|
name: rspec-rails-mocha
|
136
121
|
requirement: !ruby/object:Gem::Requirement
|
137
|
-
none: false
|
138
122
|
requirements:
|
139
|
-
- -
|
123
|
+
- - ">="
|
140
124
|
- !ruby/object:Gem::Version
|
141
125
|
version: '0'
|
142
126
|
type: :development
|
143
127
|
prerelease: false
|
144
128
|
version_requirements: !ruby/object:Gem::Requirement
|
145
|
-
none: false
|
146
129
|
requirements:
|
147
|
-
- -
|
130
|
+
- - ">="
|
148
131
|
- !ruby/object:Gem::Version
|
149
132
|
version: '0'
|
150
133
|
- !ruby/object:Gem::Dependency
|
151
134
|
name: shoulda-matchers
|
152
135
|
requirement: !ruby/object:Gem::Requirement
|
153
|
-
none: false
|
154
136
|
requirements:
|
155
|
-
- -
|
137
|
+
- - ">="
|
156
138
|
- !ruby/object:Gem::Version
|
157
139
|
version: '0'
|
158
140
|
type: :development
|
159
141
|
prerelease: false
|
160
142
|
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
143
|
requirements:
|
163
|
-
- -
|
144
|
+
- - ">="
|
164
145
|
- !ruby/object:Gem::Version
|
165
146
|
version: '0'
|
166
147
|
- !ruby/object:Gem::Dependency
|
167
148
|
name: webmock
|
168
149
|
requirement: !ruby/object:Gem::Requirement
|
169
|
-
none: false
|
170
150
|
requirements:
|
171
|
-
- -
|
151
|
+
- - ">="
|
172
152
|
- !ruby/object:Gem::Version
|
173
153
|
version: '0'
|
174
154
|
type: :development
|
175
155
|
prerelease: false
|
176
156
|
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
none: false
|
178
157
|
requirements:
|
179
|
-
- -
|
180
|
-
- !ruby/object:Gem::Version
|
181
|
-
version: '0'
|
182
|
-
- !ruby/object:Gem::Dependency
|
183
|
-
name: debugger
|
184
|
-
requirement: !ruby/object:Gem::Requirement
|
185
|
-
none: false
|
186
|
-
requirements:
|
187
|
-
- - ! '>='
|
188
|
-
- !ruby/object:Gem::Version
|
189
|
-
version: '0'
|
190
|
-
type: :development
|
191
|
-
prerelease: false
|
192
|
-
version_requirements: !ruby/object:Gem::Requirement
|
193
|
-
none: false
|
194
|
-
requirements:
|
195
|
-
- - ! '>='
|
158
|
+
- - ">="
|
196
159
|
- !ruby/object:Gem::Version
|
197
160
|
version: '0'
|
198
161
|
- !ruby/object:Gem::Dependency
|
199
162
|
name: guard-rspec
|
200
163
|
requirement: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
164
|
requirements:
|
203
|
-
- -
|
165
|
+
- - ">="
|
204
166
|
- !ruby/object:Gem::Version
|
205
167
|
version: '0'
|
206
168
|
type: :development
|
207
169
|
prerelease: false
|
208
170
|
version_requirements: !ruby/object:Gem::Requirement
|
209
|
-
none: false
|
210
171
|
requirements:
|
211
|
-
- -
|
172
|
+
- - ">="
|
212
173
|
- !ruby/object:Gem::Version
|
213
174
|
version: '0'
|
214
175
|
- !ruby/object:Gem::Dependency
|
215
176
|
name: rb-fsevent
|
216
177
|
requirement: !ruby/object:Gem::Requirement
|
217
|
-
none: false
|
218
178
|
requirements:
|
219
|
-
- -
|
179
|
+
- - ">="
|
220
180
|
- !ruby/object:Gem::Version
|
221
181
|
version: '0'
|
222
182
|
type: :development
|
223
183
|
prerelease: false
|
224
184
|
version_requirements: !ruby/object:Gem::Requirement
|
225
|
-
none: false
|
226
185
|
requirements:
|
227
|
-
- -
|
186
|
+
- - ">="
|
228
187
|
- !ruby/object:Gem::Version
|
229
188
|
version: '0'
|
230
189
|
description:
|
@@ -235,12 +194,16 @@ executables: []
|
|
235
194
|
extensions: []
|
236
195
|
extra_rdoc_files: []
|
237
196
|
files:
|
238
|
-
-
|
197
|
+
- MIT-LICENSE
|
198
|
+
- README.md
|
199
|
+
- Rakefile
|
239
200
|
- app/controllers/canvas_oauth/canvas_controller.rb
|
201
|
+
- app/controllers/canvas_oauth/oauth_application_controller.rb
|
240
202
|
- app/models/canvas_oauth/authorization.rb
|
241
203
|
- config/canvas.yml.example
|
242
204
|
- config/routes.rb
|
243
205
|
- db/migrate/20121121005358_create_canvas_oauth_authorizations.rb
|
206
|
+
- lib/canvas_oauth.rb
|
244
207
|
- lib/canvas_oauth/canvas_api.rb
|
245
208
|
- lib/canvas_oauth/canvas_api_extensions.rb
|
246
209
|
- lib/canvas_oauth/canvas_application.rb
|
@@ -248,14 +211,13 @@ files:
|
|
248
211
|
- lib/canvas_oauth/config.rb
|
249
212
|
- lib/canvas_oauth/engine.rb
|
250
213
|
- lib/canvas_oauth/version.rb
|
251
|
-
- lib/canvas_oauth.rb
|
252
214
|
- lib/tasks/canvas_oauth_tasks.rake
|
253
|
-
- MIT-LICENSE
|
254
|
-
- Rakefile
|
255
|
-
- README.md
|
256
215
|
- spec/controllers/canvas_oauth/canvas_controller_spec.rb
|
216
|
+
- spec/dummy/README.rdoc
|
217
|
+
- spec/dummy/Rakefile
|
257
218
|
- spec/dummy/app/controllers/application_controller.rb
|
258
219
|
- spec/dummy/app/controllers/welcome_controller.rb
|
220
|
+
- spec/dummy/config.ru
|
259
221
|
- spec/dummy/config/application.rb
|
260
222
|
- spec/dummy/config/boot.rb
|
261
223
|
- spec/dummy/config/canvas.yml
|
@@ -272,7 +234,6 @@ files:
|
|
272
234
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
273
235
|
- spec/dummy/config/locales/en.yml
|
274
236
|
- spec/dummy/config/routes.rb
|
275
|
-
- spec/dummy/config.ru
|
276
237
|
- spec/dummy/db/migrate/20130326194409_create_canvas_oauth_authorizations.canvas_oauth.rb
|
277
238
|
- spec/dummy/db/schema.rb
|
278
239
|
- spec/dummy/db/test.sqlite3
|
@@ -282,8 +243,6 @@ files:
|
|
282
243
|
- spec/dummy/public/500.html
|
283
244
|
- spec/dummy/public/favicon.ico
|
284
245
|
- spec/dummy/public/robots.txt
|
285
|
-
- spec/dummy/Rakefile
|
286
|
-
- spec/dummy/README.rdoc
|
287
246
|
- spec/dummy/script/rails
|
288
247
|
- spec/lib/canvas_oauth/canvas_api_extensions_spec.rb
|
289
248
|
- spec/lib/canvas_oauth/canvas_api_spec.rb
|
@@ -291,27 +250,26 @@ files:
|
|
291
250
|
- spec/spec_helper.rb
|
292
251
|
homepage: ''
|
293
252
|
licenses: []
|
253
|
+
metadata: {}
|
294
254
|
post_install_message:
|
295
255
|
rdoc_options: []
|
296
256
|
require_paths:
|
297
257
|
- lib
|
298
258
|
required_ruby_version: !ruby/object:Gem::Requirement
|
299
|
-
none: false
|
300
259
|
requirements:
|
301
|
-
- -
|
260
|
+
- - ">="
|
302
261
|
- !ruby/object:Gem::Version
|
303
262
|
version: '0'
|
304
263
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
305
|
-
none: false
|
306
264
|
requirements:
|
307
|
-
- -
|
265
|
+
- - ">="
|
308
266
|
- !ruby/object:Gem::Version
|
309
267
|
version: '0'
|
310
268
|
requirements: []
|
311
269
|
rubyforge_project:
|
312
|
-
rubygems_version:
|
270
|
+
rubygems_version: 2.4.8
|
313
271
|
signing_key:
|
314
|
-
specification_version:
|
272
|
+
specification_version: 4
|
315
273
|
summary: CanvasOauth is a mountable engine for handling the oauth workflow with canvas
|
316
274
|
and making api calls from your rails app.
|
317
275
|
test_files:
|
@@ -351,3 +309,4 @@ test_files:
|
|
351
309
|
- spec/lib/canvas_oauth/canvas_api_spec.rb
|
352
310
|
- spec/models/canvas_oauth/authorization_spec.rb
|
353
311
|
- spec/spec_helper.rb
|
312
|
+
has_rdoc:
|