mirror of
https://github.com/open-webui/open-webui
synced 2024-12-28 23:02:25 +00:00
feat: Add Google Drive client ID and API key config options
This commit is contained in:
parent
4215c8ac3f
commit
e4b2d29cba
@ -287,17 +287,29 @@ OAUTH_MERGE_ACCOUNTS_BY_EMAIL = PersistentConfig(
|
||||
OAUTH_PROVIDERS = {}
|
||||
|
||||
GOOGLE_CLIENT_ID = PersistentConfig(
|
||||
"GOOGLE_CLIENT_ID",
|
||||
"GOOGLE_CLIENT_ID",
|
||||
"oauth.google.client_id",
|
||||
os.environ.get("GOOGLE_CLIENT_ID", ""),
|
||||
)
|
||||
|
||||
GOOGLE_CLIENT_SECRET = PersistentConfig(
|
||||
"GOOGLE_CLIENT_SECRET",
|
||||
"oauth.google.client_secret",
|
||||
"oauth.google.client_secret",
|
||||
os.environ.get("GOOGLE_CLIENT_SECRET", ""),
|
||||
)
|
||||
|
||||
GOOGLE_DRIVE_CLIENT_ID = PersistentConfig(
|
||||
"GOOGLE_DRIVE_CLIENT_ID",
|
||||
"google_drive.client_id",
|
||||
os.environ.get("GOOGLE_DRIVE_CLIENT_ID", ""),
|
||||
)
|
||||
|
||||
GOOGLE_DRIVE_API_KEY = PersistentConfig(
|
||||
"GOOGLE_DRIVE_API_KEY",
|
||||
"google_drive.api_key",
|
||||
os.environ.get("GOOGLE_DRIVE_API_KEY", ""),
|
||||
)
|
||||
|
||||
GOOGLE_OAUTH_SCOPE = PersistentConfig(
|
||||
"GOOGLE_OAUTH_SCOPE",
|
||||
"oauth.google.scope",
|
||||
|
Loading…
Reference in New Issue
Block a user