radiens_drive_catalog.auth
auth.py
Service account authentication for the Google Drive API.
Functions
build_drive_service
Build an authenticated Google Drive API service client.
Uses a service account credentials file for authentication. The Drive folders you want to access must be shared with the service account email found in the credentials JSON.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
credentials_path
|
str
|
Path to the Google service account credentials JSON file. |
required |
Returns:
| Type | Description |
|---|---|
DriveService
|
An authenticated Drive API service object (read-only scope). |