Skip to content

refactor(console, core): add offline access to google SSO connector #7590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025

Conversation

simeng-li
Copy link
Contributor

Summary

Enable offline access in the Google Workspace SSO connector.

Unlike standard OAuth/OIDC connectors, Google Workspace does not support the offline_access scope. Instead, it uses an additional authorization parameter: access_type=offline to indicate that offline access is requested and a refresh token should be issued.

To support this, we've added a configuration option offlineAccess to the Google SSO connector. When enabled, the connector will include access_type=offline in the authorization request to Google.

Testing

test locally
image
image

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

Copy link

COMPARE TO master

Total Size Diff 📈 +1.26 KB

Diff by File
Name Diff
packages/console/src/pages/EnterpriseSsoDetails/Connection/OidcMetadataForm/index.tsx 📈 +476 Bytes
packages/console/src/pages/EnterpriseSsoDetails/types/oidc.ts 📈 +121 Bytes
packages/core/src/sso/GoogleWorkspaceSsoConnector/index.ts 📈 +209 Bytes
packages/phrases/src/locales/en/translation/admin-console/enterprise-sso-details.ts 📈 +486 Bytes

@simeng-li simeng-li requested review from a team July 25, 2025 02:29
@simeng-li simeng-li merged commit 5d65bc9 into master Jul 25, 2025
44 of 45 checks passed
@simeng-li simeng-li deleted the simeng-google-sso-connector-offline-access branch July 25, 2025 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Make it better size/s
Development

Successfully merging this pull request may close these issues.

2 participants