Replies: 3 comments 7 replies
-
There shouldn't be any problem with multiple concurrent requests for different accounts – this is a designed use-case (though please do report an issue if you find a bug here). You mention the accounts are using the same token – could you clarify here? It's fine to duplicate accounts by copy/pasting the |
Beta Was this translation helpful? Give feedback.
-
In Google cloud console - IAM & Admin - Organization Policies, I see there is an active policy for: Could I just not be polling Gmail often enough and the token is unable to be extended/refreshed so is cancelled by email-oauth2-proxy? |
Beta Was this translation helpful? Give feedback.
-
🚀 Want a 1000% Bonus on 👉 1XBET? It's super easy! 😎 Here’s how to get started: 1️⃣ Sign Up and fill in your details. 🎉 Awesome Perks Just for You:
⏳ What are you waiting for? Sign up now and use promo code 👉 LOVET20 👈 for an awesome start! Let’s go! 😄 |
Beta Was this translation helpful? Give feedback.
-
I am using email-oauth2-proxy 2024-11-11 on Windows.
I have multiple Gmail accounts configured using the single imap/2993 server and sharing a single "personal" API client-id/secret (all added as test users).
All are individually added in config - not using catch-all account - using identical permission/token/scope/redirect/client_id/client_secret.
I have delete_account_token_on_password_error = False
I have encrypt_client_secret_on_first_use = False
I have use_login_password_as_client_credentials_secret = False
I have allow_catch_all_accounts = False
I am using Zimbra desktop as email client.
I can auth the accounts and they work.... for a while... until one/all seem to fail auth and need to be re-authenticated - hours to days later.
I have tried breaking the cache-store out to its own file, however it still breaks periodically. When it fails, it still purges everything except "last_activity" from authcache file - despite delete token on pass fail=false setting. When it is working, authcache contains the expected salt/iterations/access/refresh/expiry entries on each configured account. I notice several accounts end up with same last_activity value, so could a simultaneous/overlapping email fetch corrupt things? Email client is set to update every X hours, but could it end up running parallel updates?
Is there some coherency/race condition with multiple accounts on a single email-oauth2-proxy instance?
Do I need to configure a test API under each Gmail account, rather than sharing the same client-ID/secret across multiple accounts (with each added as allowed test user)?
For the Google API, I have only enabled the Gmail API bundle. is there a different API needed for renewing tokens or something? The configuration documentation is a little vague on specific API(APIs?) to add..
I have other apps (e.g. TrueNAS) configured to send email with their own internal Gmail API OAuth2 connection that have worked for months and across upgrades without issue(i.e. have not had to re-auth), so unsure if I need to add some additional API library to the Google API project created for this proxy client-id/secret?
I have not tried using a "well known" client-ID/secret rather than test/dev "personal" created one...
Beta Was this translation helpful? Give feedback.
All reactions