nfm/gplus — Issue #2: automatic token refresh does not work
Author: tompata
Created: 2012-01-03 13:58:52+00:00
State: open

When the token expires, gplus should refresh the token automatically.

But actually I've got the following oauth error:

Oauth error: #
Oauth response: #, @parsed={"error"=>{"code"=>401, "errors"=>[{"location"=>"Authorization", "domain"=>"global", "locationType"=>"header", "reason"=>"authError", "message"=>"Invalid Credentials"}], "message"=>"Invalid Credentials"}}, @response=##, :status=>401, :request=>{:proxy=>nil}, :parallel_manager=>nil, :method=>:get, :response_headers=>{"x-content-type-options"=>"nosniff", "x-frame-options"=>"SAMEORIGIN", "expires"=>"Tue, 03 Jan 2012 13:48:19 GMT", "content-type"=>"application/json; charset=UTF-8", "connection"=>"close", "www-authenticate"=>"AuthSub realm=\"https://www.google.com/accounts/AuthSubRequest\" allowed-scopes=\"https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/plus.me,https://www.googleapis.com/auth/plus.people.recommended\"", "date"=>"Tue, 03 Jan 2012 13:48:19 GMT", "x-xss-protection"=>"1; mode=block", "server"=>"GSE", "cache-control"=>"private, max-age=0"}, :url=>#, :request_headers=>{"Authorization"=>"Bearer ya29.AHES6ZQZV22ZSbd23he23pcufyUifj0kE_FecvCJAel-1vixl_kduw"}, :ssl=>{}, :body=>"{\n \"error\": {\n \"errors\": [\n {\n \"domain\": \"global\",\n \"reason\": \"authError\",\n \"message\": \"Invalid Credentials\",\n \"locationType\": \"header\",\n \"location\": \"Authorization\"\n }\n ],\n \"code\": 401,\n \"message\": \"Invalid Credentials\"\n }\n}\n"}, @on_complete_callbacks=[]>, @options={:parse=>nil}>