Storage for EDD via OneDrive - Complete Description
Category: WordPress Plugins • Platform: PHP
Storage for EDD via OneDrive is a powerful extension for Easy Digital Downloads that allows you to store and deliver your digital products using Microsoft OneDrive cloud storage. This plugin provides seamless integration with Microsoft Graph API, featuring OAuth2 authentication and secure download links.
Key Features
- OneDrive Integration: Store your digital products securely in Microsoft OneDrive
- OAuth2 Authentication: Secure and easy connection to your Microsoft account
- Temporary Download Links: Generates secure temporary download URLs via @microsoft.graph.downloadUrl
- Easy File Management: Upload files directly to OneDrive through WordPress admin
- Media Library Integration: Browse and select files from your OneDrive within WordPress
- Folder Support: Navigate and organize files in folders
- Security First: Built with WordPress security best practices
- Developer Friendly: Clean, well-documented code with hooks and filters
Configuration
Step 1: Register an Azure AD Application
- Go to Azure App Registrations
- Click “New registration”
- Enter a name for your application
- Select “Accounts in any organizational directory and personal Microsoft accounts”
- Click “Register”
Step 2: Configure API Permissions
- In your app registration, go to “API permissions”
- Click “Add a permission” > “Microsoft Graph” > “Delegated permissions”
- Add these permissions:
- Files.Read
- Files.ReadWrite
- Files.Read.All
- Files.ReadWrite.All
- User.Read
- offline_access
- Click “Grant admin consent” if available
Step 3: Add Redirect URI
- Go to “Authentication” in your app registration
- Click “Add a platform” > “Web”
- Add this Redirect URI:
https://your-site.com/wp-admin/admin-post.php?action=odse_oauth_callback - Replace
your-site.comwith your actual domain
Step 4: Create Client Secret
- Go to “Certificates & secrets”
- Click “New client secret”
- Add a description and set expiration
- Copy the secret Value (not the ID) immediately
Step 5: Connect in WordPress
- Go to Downloads > Settings > Extensions > OneDrive Storage
- Enter your Application (client) ID and Client Secret
- Save settings
- Click “Connect to OneDrive”
- Authorize the connection in the Microsoft popup
- You’re connected!
Usage
Browsing and Selecting Files
- When creating or editing a download in Easy Digital Downloads
- Click on “Upload File” or “Choose File”
- Select the “OneDrive Library” tab
- Browse your OneDrive storage using the folder navigation
- Use the breadcrumb navigation bar to quickly jump to parent folders
- Use the search box in the header to filter files by name
- Click “Select” to use an existing file for your download
Uploading New Files
- In the “OneDrive Library” tab, click the “Upload” button in the header row
- The upload form will appear above the file list
- Choose your file and click “Upload”
- After a successful upload, the file URL will be automatically set with the OneDrive prefix
- Click “Back” to return to the file browser without uploading
External services
This plugin connects to Microsoft Graph API (OneDrive) to manage files, create download links, and handle authentication.
It sends the necessary authentication tokens and file requests to Microsoft servers. This happens when you browse your OneDrive files in the dashboard, upload files, or when a customer downloads a file.
- Service: Microsoft Graph API (OneDrive)
- Used for: Authentication, file browsing, uploading, and generating download links.
- Data sent: OAuth tokens, file metadata, file content (during upload).
- URLs:
https://graph.microsoft.com(API calls)https://login.microsoftonline.com(Authentication)
- Legal: Terms of Service, Privacy Policy
Support
For support and bug reports, please use the WordPress.org plugin support forum.
If you find this plugin helpful, please consider leaving a review on WordPress.org.
Other Storage Providers
Looking for a different storage provider? Check out our other plugins:
- Storage for EDD via Box – Use Box for your digital product storage
- Storage for EDD via Dropbox – Use Dropbox for your digital product storage
- Storage for EDD via S3-Compatible – Use S3-compatible services like MinIO, DigitalOcean Spaces, Linode, Wasabi, and more
Privacy Policy
This plugin requires authorization to access your Microsoft OneDrive account for file storage and retrieval. It does not collect or store any personal data beyond the OAuth tokens needed to maintain the connection. All file storage and delivery is handled through Microsoft’s secure infrastructure.