{% extends "base.html" %} {% block title %}OneDrive Setup{% endblock %} {% block content %}
Configure the Microsoft OneDrive integration for DocuElevate using our setup wizard.
Current Status:
OneDrive integration is {% if is_configured %} configured. {% else %} not configured. {% endif %}
{% if folder_path %}Target folder: {{ folder_path }}
{% endif %}Note: You only need to create an Azure application and get credentials. The setup wizard will handle the rest automatically.
{{ request.url.scheme }}://{{ request.url.netloc }}/onedrive-callbackFiles.ReadWriteoffline_accessUse "common" for personal accounts or your organization's Tenant ID for corporate accounts
Enter the folder path where files should be uploaded (e.g., Documents/Uploads)
{% if is_configured %} OneDrive integration is properly configured! Your refresh token is valid. {% else %} OneDrive integration is not completely configured or token may be invalid. {% endif %}
Copy these environment variables to configure all worker nodes:
ONEDRIVE_CLIENT_ID={{ client_id_value }}
ONEDRIVE_CLIENT_SECRET={{ client_secret_value|default('YOUR_CLIENT_SECRET', true) }}
ONEDRIVE_TENANT_ID={{ tenant_id }}
ONEDRIVE_REFRESH_TOKEN={{ refresh_token_value|default('YOUR_REFRESH_TOKEN', true) }}
ONEDRIVE_FOLDER_PATH={{ folder_path|default('Documents/Uploads', true) }}
Add these variables to your .env file or environment configuration.
For detailed instructions and troubleshooting, refer to the OneDrive Setup Documentation.