mirror of
https://github.com/open-webui/open-webui.git
synced 2025-10-10 21:03:02 +02:00
@@ -3,7 +3,8 @@ import { v4 as uuidv4 } from 'uuid';
|
|||||||
|
|
||||||
class OneDriveConfig {
|
class OneDriveConfig {
|
||||||
private static instance: OneDriveConfig;
|
private static instance: OneDriveConfig;
|
||||||
private clientId: string = '';
|
private clientIdPersonal: string = '';
|
||||||
|
private clientIdBusiness: string = '';
|
||||||
private sharepointUrl: string = '';
|
private sharepointUrl: string = '';
|
||||||
private sharepointTenantId: string = '';
|
private sharepointTenantId: string = '';
|
||||||
private msalInstance: PublicClientApplication | null = null;
|
private msalInstance: PublicClientApplication | null = null;
|
||||||
@@ -49,8 +50,8 @@ class OneDriveConfig {
|
|||||||
this.sharepointUrl = config.onedrive?.sharepoint_url;
|
this.sharepointUrl = config.onedrive?.sharepoint_url;
|
||||||
this.sharepointTenantId = config.onedrive?.sharepoint_tenant_id;
|
this.sharepointTenantId = config.onedrive?.sharepoint_tenant_id;
|
||||||
|
|
||||||
if (!this.newClientIdPersonal && !this.newClientIdBusiness) {
|
if (!this.clientIdPersonal && !this.clientIdBusiness) {
|
||||||
throw new Error('OneDrive client ID not configured');
|
throw new Error('OneDrive personal or business client ID not configured');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user