技术解析
想用 onedrive 搭建一个个人网盘。
看了一些文档,好吧,当然技术不过关,基本没看懂。
于是乎,直接懒一点吧,用现成的程序,譬如:
oneindex.
https://github.com/donwa/oneindex
好了,开始了报错之路:
一开始用的是学校的邮箱:
绑定微软账号的时候提示:
error_description=AADSTS650051%3a+Using+application+'OneDrive+API'+is+currently+not+supported+for+your+organization+stu.xxxx.edu.cn+because+it+is+in+an+unmanaged+state.+An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+stu.xxx.edu.cn+before+the+application+OneDrive+API+can+be+provisioned.%0D%0ATrace+ID%3a+8fd3bb22-96d0-xxxxx-bd1a-9b97d95d6500%0D%0ACorrelation+ID%3a+ab213287-b2f8-xxxxxx-8d0b-b21943c714d2%0D%0ATimestamp%3a+2019-07-19+15%3a15%3a04Z
然后看样子是账号的管理员没有授权?
那就用自己的个人账号吧:
继续报错:
( OneDrive_SCF ):AADSTS50020: User account '[email protected]' from identity provider 'live.com' does not exist in tenant '默认目录' and cannot access the application '298004f7-xxxxxx-4d56-aba3-b058c0154fd2'(OneDrive API) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account. ( oneIndex ) Authentication_MissingOrMalformed: Access Token missing or malformed.
看样子需要新建一个租户?:
然后绑定微软账号的时候,继续报错:
:e?error=access_denied&error_description=AADSTS650051%3a+Using+application+%27OneDrive+API%27+is+currently+not+supported+for+your+organization+lujiaxxx.com+because+it+is+in+an+unmanaged+state.+An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+lujianzxxxx.com+before+the+application+OneDrive+API+can+be+provisioned.%0d%0aTrace+ID%3a+5fce01ca-5b52-4a1d-xxxxxxx-8a37ec032000%0d%0aCorrelation+ID%3a+3611f686-xxxx-4299-811c-f314abdb3461%0d%0aTimestamp%3a+2019-07-20+09%3a42%3a10Z
想问一下谁用过 oneIndex 的可否告诉我一下这咋肥事....