Skip to content

Commit 753e32d

Browse files
authored
feat(source-google-drive): migrate OAuth scope to scopes object array (#75573)
1 parent 4f43360 commit 753e32d

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

airbyte-integrations/connectors/source-google-drive/metadata.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: file
1111
connectorType: source
1212
definitionId: 9f8dda77-1048-4368-815b-269bf54ee9b8
13-
dockerImageTag: 0.5.13
13+
dockerImageTag: 0.5.14
1414
dockerRepository: airbyte/source-google-drive
1515
githubIssueLabel: source-google-drive
1616
icon: google-drive.svg

airbyte-integrations/connectors/source-google-drive/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "0.5.13"
6+
version = "0.5.14"
77
name = "source-google-drive"
88
description = "Source implementation for Google Drive."
99
authors = [ "Airbyte <contact@airbyte.io>",]

airbyte-integrations/connectors/source-google-drive/source_google_drive/source.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ def spec(self, *args: Any, **kwargs: Any) -> ConnectorSpecification:
3131
Returns the specification describing what fields can be configured by a user when setting up a file-based source.
3232
"""
3333
oauth_connector_input_specification = OauthConnectorInputSpecification(
34-
consent_url="https://accounts.google.com/o/oauth2/v2/auth?{{client_id_param}}&{{redirect_uri_param}}&response_type=code&{{scope_param}}&access_type=offline&{{state_param}}&include_granted_scopes=true&prompt=consent",
34+
consent_url="https://accounts.google.com/o/oauth2/v2/auth?{{client_id_param}}&{{redirect_uri_param}}&response_type=code&{{scopes_param}}&access_type=offline&{{state_param}}&include_granted_scopes=true&prompt=consent",
3535
access_token_url="https://oauth2.googleapis.com/token?{{client_id_param}}&{{client_secret_param}}&{{auth_code_param}}&{{redirect_uri_param}}&grant_type=authorization_code",
36-
scope="https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.group.member.readonly https://www.googleapis.com/auth/admin.directory.user.readonly",
36+
scopes=[
37+
{"scope": "https://www.googleapis.com/auth/drive.readonly"},
38+
{"scope": "https://www.googleapis.com/auth/admin.directory.group.readonly"},
39+
{"scope": "https://www.googleapis.com/auth/admin.directory.group.member.readonly"},
40+
{"scope": "https://www.googleapis.com/auth/admin.directory.user.readonly"},
41+
],
3742
)
3843

3944
return ConnectorSpecification(

docs/integrations/sources/google-drive.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ By default, this stream is enabled and retrieves information about **users and g
324324

325325
| Version | Date | Pull Request | Subject |
326326
|---------|------------|----------------------------------------------------------|----------------------------------------------------------------------------------------------|
327+
| 0.5.14 | 2026-03-31 | [75573](https://github.com/airbytehq/airbyte/pull/75573) | Migrate OAuth scope to scopes object array for granular scopes support |
327328
| 0.5.13 | 2026-03-31 | [75368](https://github.com/airbytehq/airbyte/pull/75368) | Update dependencies |
328329
| 0.5.12 | 2026-03-17 | [74923](https://github.com/airbytehq/airbyte/pull/74923) | Update dependencies |
329330
| 0.5.11 | 2026-03-03 | [73119](https://github.com/airbytehq/airbyte/pull/73119) | Update dependencies |

0 commit comments

Comments
 (0)