Hello,
I have built a connector which automates video upload to a Youtube channel using Youtube API v3, authenticating to Google using OAuth2 via Google API Client for PHP.
At first run, OAuth2 flow prompts user for consent (requiring physical attendance in the process), and then return access_token and refresh_token.
At next run, following access_token are regenerated programatically using the refresh_token.
My app has a status of "Testing", and is configured for external user type (a free Google user account, i.e. not a service account) and requires access to "youtube.force-ssl". As per this documentation, a refresh token will last only 7 days.
- Do I understand correctly that the webapp user will have to go manually into a consent screen every 7 days ?
- What are my options to extend this delay so that unattended video upload are not failing at some point (when refresh token has expired)?
- I am under the impression that "publishing" the Google Cloud app would make no sense since it is meant to be used exclusively by one Google Cloud user, which is in fine a private webapp that will be used only by a few people.
https://support.google.com/cloud/answer/13463073?visit_id=638569216585125383-2878329993&rd=1
https://support.google.com/cloud/answer/13464323/#exemptions
https://support.google.com/cloud/answer/13464321?sjid=3629655570747658492-EU - What if the webapp code is then hosted by others people totally unrelated to me and my instance, with their own Google account. Will they all have to "publish" their own Google App to obtain a long lasting refresh token?
Regards.
LXP200