oauth 2.0 - refresh token "error" : "invalid_client" on google app script - new feature upgrade auth -


i happy new feature authupgrade getting - "error" : "invalid_client" when try fetch new refresh token. how can fix this?
here code:

var oauthconfig = urlfetchapp.addoauthservice("blogger"); var code = userproperties.getproperties(); var tokenendpoint = "https://accounts.google.com/o/oauth2/token"; var postpayload = {   "refresh_token" : code.refresh_token,   "client_id" : code.clientid, // trying "8774700966@developer.gserviceaccount.com"   "client_secret" : code.clientsecret,   "grant_type" : "refresh_token" };   var options = {   "method" : "post",   "payload" : postpayload }; var response = urlfetchapp.fetch(tokenendpoint, options); 

thx in advance

metamorfoself

i have had similar problem in php oauth client library built work google. taking closer @ request (which being sent php curl) there lot of mysterious whitespace being added client-secret.

client-secret='xxxx   '; not same client-secret='xxxx';  

so suggestion make sure not happening.

you invalid_client though credentials right

hope helps someone!


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -