Fix Google OAuth2 refresh token support #10732
Draft
+3
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Google OAuth2 sessions lose their access tokens after calling
updateSession()because Google doesn't return refresh tokens by default.Changes
access_type=offlineandprompt=consentparameters to authorization URLThis aligns with Google's OAuth2 requirements and matches the pattern used by Microsoft's implementation (
offline_accessscope).Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/repos/Nevay/spi/zipball/e7078767866d0a9e0f91d3f9d42a832df5e39002/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/Seldaek/jsonlint/zipball/1748aaf847fc731cfad7725aec413ee46f0cc3a2/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/appwrite/php-clamav/zipball/f3897169f5c1f365312238a516ae9465f804634f/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/appwrite/runtimes/zipball/7bd0cc3cb97de625d7b07230bd91b121f88e72ae/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/appwrite/sdk-generator/zipball/b4a2fd9e92903c2e156f17fc5dafe102e6cfdfda/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/brick/math/zipball/113a8ee2656b882d4c3164fa31aa6e12cbb7aaa2/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/chillerlan/php-qrcode/zipball/345ed8e4ffb56e6b3fcd9f42e3970b9026fa6ce4/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/chillerlan/php-settings-container/zipball/95ed3e9676a1d47cab2e3174d19b43f5dbf52681/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/composer/semver/zipball/198166618906cb2de69b95d7d47e5fa8aa1b2b95/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/darylldoyle/svg-sanitizer/zipball/0afa95ea74be155a7bcd6c6fb60c276c39984500/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/doctrine/annotations/zipball/901c2ee5d26eb64ff43c47976e114bf00843acf7/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/dragonmantank/cron-expression/zipball/8c784d071debd117328803d86b2097615b457500/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/laravel/pint/zipball/5016e263f95d97670d71b9a987bd8996ade6d8d9/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/matomo-org/device-detector/zipball/e53eed31bb1530851feebe52bd64c3451da19e77/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/matthiasmullie/minify/zipball/76ba4a5f555fd7bf4aa408af608e991569076671/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/matthiasmullie/path-converter/zipball/e7d13b2c7e2f2268e1424aaed02085518afa02d9/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/mustangostang/spyc/zipball/4627c838b16550b666d15aeae1e5289dd5b77da0/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/paragonie/constant_time_encoding/zipball/e30811f7bc69e4b5b6d5783e712c06c8eabf0226/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/php-fig/cache/zipball/aa5030cfa5405eccfdcb1083ce040c2cb8d253bf/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/php-http/discovery/zipball/82fe4c73ef3363caed49ff8dd1539ba06044910d/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/phpbench/container/zipball/a59b929e00b87b532ca6d0edd8eca0967655af33/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/phpbench/phpbench/zipball/bb61ae6c54b3d58642be154eb09f4e73c3511018/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/phpseclib/phpseclib/zipball/9d6ca36a6c2dd434765b1071b2644a1c683b385d/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/phpstan/phpstan/zipball/46e223dd68a620da18855c23046ddb00940b4014/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/539c6691e0623af6dc6f9c20384c120f963465a0/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/05d5692a7993ecccd56a03e40cd7e5b09b1d404e/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/sebastianbergmann/type/zipball/75e2c2a32f5e0b3aef905b9ed0b179b953b3d7c7/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/sebastianbergmann/version/zipball/c6c1022351a901512170118436c764e473f6de8c/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/console/zipball/cdb80fa5869653c83cfe1a9084a673b6daf57ea7/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/deprecation-contracts/zipball/63afe740e99a13ba87ec199bb07bbdee937a5b62/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/filesystem/zipball/edcbb768a186b5c3f25d0643159a787d3e63b7fd/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/finder/zipball/9f696d2f1e340484b4683f7853b273abff94421f/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/options-resolver/zipball/0ff2f5c3df08a395232bbc3c2eb7e84912df911d/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/380872130d3a5dd3ace2f4010d95125fde5d5c70/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/polyfill-php81/zipball/4a4cfc2d253c21a5ad0e53071df248ed48c6ce5c/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/process/zipball/f24f8f316367b30810810d4eb30c543d7003ff3b/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/service-contracts/zipball/f021b05a130d35510bd6b25fe9053c2a8a15d5d4/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/symfony/string/zipball/f96476035142921000338bad71e5247fbc138872/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/thephpleague/csv/zipball/e0221a3f16aa2a823047d59fab5809d552e29bc8/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/twigphp/Twig/zipball/0b6f9d8370bb3b7f1ce5313ed8feb0fafd6e399a/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/utopia-php/system/zipball/8e4a7edaf2dfeb4c9524e9f766d27754f2c4b64d/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/webmozarts/assert/zipball/541057574806f942c94662b817a50f63f7345360/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)https://api.github.com/repos/webmozarts/glob/zipball/8a2842112d6916e61e0e15e316465b611f3abc17/usr/bin/php8.3 -n -c /tmp/LLgN2q /usr/bin/composer install --no-interaction --ignore-platform-reqs(http block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.