cal.com icon indicating copy to clipboard operation
cal.com copied to clipboard

Google Calendar automatically refresh credentials

Open Jinra opened this issue 1 year ago • 1 comments

Is your proposal related to a problem?

This is a feature request for an issue related to #7564. I'm using Cal.com as a self-hosted instance for myself and family. For this I have a GCP app with the appropriate setup that is working as expected. However, since "testing" status apps on GCP only have a 7 day life for both access and refresh tokens, this can cause an issue if it's been longer than 7 days since the last time I use the app. If it's been longer than 7 days, I get the same issue as #7564 where I have to reauth the connection.

Since the connection requires sensitive scopes, Google requires you to have a privacy page, demo video on why you need scopes, and other requirements in order to Publish the app and allow for 200 day refresh tokens. This isn't as practical for a non-business/organization.

From Google:

Authorizations by a test user will expire seven days from the time of consent. If your OAuth client requests an offline access type and receives a refresh token, that token will also expire.

Describe the solution you'd like

I'd like to request a feature for Cal.com to perform an unattended refresh of the tokens every <7 days so users with a "testing" app don't have to reauth when they haven't used the service in a week or more.

Describe alternatives you've considered

n/a

Additional context

n/a

Requirement/Document

Google Publishing/Verification Status Doc


House rules
  • If this issue has a 🚨 needs approval label, don't start coding yet. Wait until a core member approves feature request by removing this label, then you can start coding.
    • For clarity: Non-core member issues automatically get the 🚨 needs approval label.
    • Your feature ideas are invaluable to us! However, they undergo review to ensure alignment with the product's direction.
    • Follow Best Practices lined out in our Contributor Docs

Jinra avatar Nov 09 '24 00:11 Jinra