Skip to content

Is there a GMail Oauth2 authentication timeout? #135

Closed Answered by d99kris
Vainyards asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks 👍
I was also able to reproduce this problem finally. I believe there are two parts to this problem:

  1. Upon token expiration nmail does simply fail to login, not prompting user to reauthenticate/reauthorize.
  2. Gmail access token expires after a couple of days

For item 1, I reported issue #136 which I've also fixed just now.

For item 2, it appears this is a limitation for OAuth2 clients not audited by Google (thus set to Testing state, rather than Production) that tokens expiry after 7 days. Sources: Link 1, Link 2

Unfortunately the Google audit process is rather costly (est. US$ 15000-75000), so not within the budget for nmail. So I think we'll have to live with this for OAuth2 authen…

Replies: 9 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Vainyards
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Vainyards
Comment options

Answer selected by d99kris
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@d99kris
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants