robzolkos
11/21/2011 - 1:48 AM

Provider development log

Provider development log

Started GET "/auth/josh_id/authorize?response_type=code&client_id=YE0NYveQGoFsNLX220Dy5g&redirect_uri=http%3A%2F%2Flocalhost%3A3001%2Fauth%2Fjoshid%2Fcallback" for 127.0.0.1 at 2011-11-21 12:47:42 +1100
  Processing by AuthController#authorize as HTML
  Parameters: {"response_type"=>"code", "client_id"=>"YE0NYveQGoFsNLX220Dy5g", "redirect_uri"=>"http://localhost:3001/auth/joshid/callback"}
  User Load (0.1ms)  SELECT "users".* FROM "users" WHERE "users"."id" = 1 LIMIT 1
  SQL (1.5ms)  DELETE FROM "access_grants" WHERE (created_at < '2011-11-18 01:47:42.705591')
  Client Load (0.6ms)  SELECT "clients".* FROM "clients" WHERE "clients"."app_id" = 'YE0NYveQGoFsNLX220Dy5g' LIMIT 1
Binary data inserted for `string` type on column `access_token`
Binary data inserted for `string` type on column `code`
Binary data inserted for `string` type on column `refresh_token`
  SQL (1.2ms)  INSERT INTO "access_grants" ("access_token", "access_token_expires_at", "client_id", "code", "created_at", "refresh_token", "updated_at", "user_id") VALUES (?, ?, ?, ?, ?, ?, ?, ?)  [["access_token", "f80d64edbddde8de7a14b33e697eea48"], ["access_token_expires_at", nil], ["client_id", 1], ["code", "f92f0a39f5bad47b91f749d5e92065d6"], ["created_at", Mon, 21 Nov 2011 01:47:42 UTC +00:00], ["refresh_token", "b421517181a419e16cc157c8c914e6ec"], ["updated_at", Mon, 21 Nov 2011 01:47:42 UTC +00:00], ["user_id", 1]]
Redirected to http://localhost:3001/auth/joshid/callback?code=f92f0a39f5bad47b91f749d5e92065d6&response_type=code
Completed 302 Found in 133ms


Started POST "/oauth/token" for 127.0.0.1 at 2011-11-21 12:47:42 +1100
  Processing by AuthController#access_token as */*
  Parameters: {"grant_type"=>"authorization_code", "code"=>"f92f0a39f5bad47b91f749d5e92065d6", "client_id"=>"YE0NYveQGoFsNLX220Dy5g", "client_secret"=>"aqpGBedDnHFyp5MmgT8KErr9D015ScmaY8r3vHg5C0", "redirect_uri"=>"http://localhost:3001/auth/joshid/callback"}
  Client Load (0.1ms)  SELECT "clients".* FROM "clients" WHERE (app_id = 'YE0NYveQGoFsNLX220Dy5g' AND app_secret = 'aqpGBedDnHFyp5MmgT8KErr9D015ScmaY8r3vHg5C0') LIMIT 1
  AccessGrant Load (0.3ms)  SELECT "access_grants".* FROM "access_grants" WHERE (code = 'f92f0a39f5bad47b91f749d5e92065d6' AND client_id = 1) LIMIT 1
   (0.3ms)  UPDATE "access_grants" SET "access_token_expires_at" = '2011-11-23 01:47:42.817991', "updated_at" = '2011-11-21 01:47:42.827581' WHERE "access_grants"."id" = 54
Completed 200 OK in 36ms (Views: 4.3ms | ActiveRecord: 1.8ms)


Started GET "/auth/josh_id/user.json" for 127.0.0.1 at 2011-11-21 12:47:42 +1100
  Processing by AuthController#user as JSON
Completed 401 Unauthorized in 12ms