alist-org / alist

🗂️A file list/WebDAV program that supports multiple storages, powered by Gin and Solidjs. / 一个支持多存储的文件列表/WebDAV程序,使用 Gin 和 Solidjs。
https://alist.nn.ci
GNU Affero General Public License v3.0
42.55k stars 5.5k forks source link

WebDAV无法挂载个人版Onedrive #6707

Closed i207M closed 3 months ago

i207M commented 3 months ago

Please make sure of the following things

AList Version / AList 版本

v3.35.0

Driver used / 使用的存储驱动

WebDAV

Describe the bug / 问题描述

WebDAV挂载个人版Onedrive,vendor选择sharepoint之后,如果地址填d.docs.live.net会报错net tld not supported. 然而根据 WinSCP的教程,是(亲测)能以WebDAV形式通过d.docs.live.net访问Onedrive的。因此我觉得Alist理论上也可以支持,应该将my-sharepoint之类的域名替换为d.docs.live.net可以解决。

最后说明一下为什么不能用Onedrive driver来挂载个人版Onedrive:

新的个人版Onedrive账号自微软更新政策后无法创建应用程序和密码。自2024年6月起,必须激活Azure或者加入微软开发者计划后,才能创建“应用”,进而得到client_id和client_secret. 然而激活Azure需要验证银行卡,比较麻烦。

来源:https://learn.microsoft.com/en-us/entra/identity-platform/reference-breaking-changes#applications-must-be-registered-in-a-directory

Reproduction / 复现链接

N/A

Config / 配置

如WinSCP的教程,地址填d.docs.live.net,账号密码是Microsoft账号密码(未开启两步验证)

Logs / 日志

No response

github-actions[bot] commented 3 months ago

See

  1. 67% #6472
  2. 56% #4621
welcome[bot] commented 3 months ago

Thanks for opening your first issue here! Be sure to follow the issue template!

zhouqiqiqiqi commented 3 months ago

个人版挂载不了的,只能用商业版,教育版,e5这种

i207M commented 3 months ago

WinSCP是能挂载个人版的,可惜不开源

Simonzhang8 commented 3 months ago

直接用alist官网默认提供的client去get refresh token啊,不需要自己创建应用的,因为个人版没有组织管理员批准这一步,所以alist提供的是可以直接用的

i207M commented 3 months ago

@Simonzhang8 多谢,我最后是借别的账号的client拿的token. Alist官网提供的话,本issue的功能就不必要了. Closing

P.S. 我发现Azure拒绝退出登陆后还能偷偷创建client.

yifas commented 1 month ago

直接用alist官网默认提供的client去get refresh token啊,不需要自己创建应用的,因为个人版没有组织管理员批准这一步,所以alist提供的是可以直接用的

看了你回复才知道怎么挂载个人版