只需一步,快速开始
donwa 发表于 2018-4-17 15:01 一天1G的出入站流量,终于超了
Q:能否使用自己的client_id、client_secret? A: 1、按照 https://moeclub.org/2017/03/17/24/ 教程获得 client_id、client_secret 2、修改 config/base.php 中的client_id、client_secret、redirect_uri(回调url)的值,获取code 3、访问 http://你的域名/?/install&code=你的code 完成账号绑定 Q:回调地址的功能和代码是什么?会不会影响程序使用 A:由于client_id、client_secret和callback_url是绑定的,为了实现一键绑定,添加了/onedrive-login作为中转 其功能仅为跳转回安装目录,代码如下: <?php if(!empty($_GET['state'])){ header('Location: '.$_GET['state'].'&code='.$_GET['code']); } 可自行使用 .com .org .tn 的域名进行部署。
AADSTS50011: The reply address 'https://ju.tn/onedrive-login' does not match the reply addresses configured for the application: '02bee11e-d714-4398-bce9-13e091706697'. More details: not specified
举报
千机 发表于 2018-4-17 16:42 小白求大佬指点,关于您的 Q&A 中的描述:
donwa 发表于 2018-4-17 17:58 redirect_uri 也要写你的。 然后获得code后,访问了 http://你的网站/?install&code=你获得的code值 ...
<?php if(!empty($_GET['state'])){ header('Location: '.$_GET['state'].'&code='.$_GET['code']); }
http://你的网站/?install&code=你获得的code值
plesk002 发表于 2018-4-17 18:36 Q:回调地址的功能和代码是什么?会不会影响程序使用 A:由于client_id、client_secret和callback_url是绑定 ...
donwa 发表于 2018-4-17 18:43 不用管那个
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2024-6-17 15:56 , Processed in 0.060630 second(s), 7 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.