mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Adds support for Microsoft’s OAuth2 Device Authorisation Flow, enabling the client to authenticate using device and user codes on a second device. This is particularly useful for headless or limited-input environments where interactive browser login is not possible. Includes: - Initiating device code requests and displaying user instructions - Polling token endpoint until user authorises the device or the code expires - Error handling for pending, declined, and expired authorisation states - Countdown display showing remaining authorisation window This feature is enabled via the `use_device_auth` config option
This commit is contained in:
parent
c91eafb9b9
commit
810197cc05
7 changed files with 366 additions and 126 deletions
3
config
3
config
|
|
@ -178,6 +178,9 @@
|
|||
## Only upload changes to OneDrive, do not download from cloud.
|
||||
#upload_only = "false"
|
||||
|
||||
## Authenticate using the Microsoft OAuth2 Device Authorisation Flow
|
||||
#use_device_auth = "true"
|
||||
|
||||
## Single Sign-On (SSO) via Intune using the Microsoft Identity Device Broker
|
||||
#use_intune_sso = "true"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue