question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Google API Oauth Renewal

See original GitHub issue

This is a…


[x] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Documentation issue or request

Description

Hey currently I see that the Google Sheet connection I created gets reset every day and I get this error:

401 Unauthorized 
{
   "code":401,
   "errors":[
      {
         "domain":"global",
         "location":"Authorization",
         "locationType":"header",
         "message":"Invalid Credentials",
         "reason":"authError"
      }
   ],
   "message":"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
   "status":"UNAUTHENTICATED"
}

After I click on Reconnect the connection is valid again and I am able to work with the Google Sheets API again. It seems that this Token is valid for roughly a day. My suggestion is to automatically renew it.

Second: If I click on Reconnect all of my Integrations are not valid anymore due to the changed cookie.

Example: reconnect

Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
zregvartcommented, Apr 1, 2020

I don’t think we have anything actionable here to work on. Is everyone okay that we close this?

1reaction
SvenC56commented, Apr 1, 2020

I created a new OAuth client which is hopefully working now. I guess this can be closed. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get an OAuth2 Refresh Token and Configure Your Client
Because OAuth2 access expires after a limited time, an OAuth2 refresh token is used to automatically renew OAuth2 access. Click the tab for...
Read more >
Get refresh token google api - Stack Overflow
Retrieving AcessToken and RefreshToken using https://accounts.google.com/o/oauth2/token? URL. For that a post request is sent providing following parameters ...
Read more >
Get OAuth 2.0 tokens | Apigee X - Google Cloud
Refreshing an access token ... A refresh token is a credential you use to obtain an access token, typically after the access token...
Read more >
Setting up OAuth 2.0 - API Console Help - Google Help
Go to the API Console. · From the projects list, select a project or create a new one. · If the APIs &...
Read more >
Signing in with Google - OAuth 2.0 Simplified
This chapter is a short overview of working with typical OAuth 2.0 APIs. ... and standardized approach is to use OpenID Connect, an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found