Azure App Registration 里应该设置为:
这是一个纯静态页面,不会上传、收集或发送你的 Client ID / Client Secret / Code。 数据只会保存在当前浏览器的 localStorage 里。换 token 时,Client Secret 会通过你复制的 curl 命令发送给 Microsoft。
当前页面是 file:// 打开的。建议用本地 HTTP 服务打开,例如: python3 -m http.server 8000,然后访问 http://localhost:8000/onedrive-refresh-token.html
python3 -m http.server 8000
http://localhost:8000/onedrive-refresh-token.html
当前 URL 里没有检测到 code。请先完成第一步授权。