This Electron app solves OneDrive authentication with onedrive (abraunegg) through a user-friendly GUI.
This Electron app provides:
- Automatic browser opening: The auth window opens automatically
- URL handoff: Automatically detects and forwards the auth URL
- User-friendly GUI: No manual URL entry required
-
Start the app:
npm run dev
-
OneDrive authentication:
- Click "Start OneDrive Authentication"
- A browser window opens automatically
- Sign in with your Microsoft account
- The app detects the redirect and closes the window
-
Monitor status:
- All steps are shown in the status history
- Click the info icon for detailed messages
Electron Main Process (index.js)
├── OneDrive Auth Process (spawn)
├── Auth Window (BrowserWindow)
└── URL Handling (will-navigate)
- Start auth process:
onedrive --auth-files request:response - Wait for URL: Watch the
request.urlfile - Open browser: Automatically load the auth URL
- Detect redirect: Automatically detect the response URL
- Save response: Write to
response.url
index.js: Main process with OneDrive integrationindex.html: User interfacepreload.js: IPC bridge
The app uses the default OneDrive configuration:
- Config directory:
~/.config/onedrive - Auth files:
~/.config/onedrive/auth/request.urlandresponse.url
onedrive(abraunegg) must be installed- Node.js and npm
- Electron
npm run buildCreates an AppImage for Linux.
