用于联系人检索的PHP委派身份验证 [英] PHP Delegated Authentication for Contacts Retrieval

查看:59
本文介绍了用于联系人检索的PHP委派身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿那里,

我在PHP中委托身份验证时遇到了很多麻烦。我正在使用windowslivelogin.php(这是提供的PHP SDK)。您知道,我已经注册了我的申请( https://live.azure.com /Cloud/Provisioning/Services.aspx?projectid=0 )我打电话来创建一个WindowsLiveLogin类的实例:

I am having a lot of trouble with the delegated authentication in PHP. I am using windowslivelogin.php (which is the provided PHP SDK). Just so you know, I have registered my application (at https://live.azure.com/Cloud/Provisioning/Services.aspx?projectid=0) and I am making my call to create an instance of the WindowsLiveLogin class as such:

 

$applicationID = '(my app id)';
$secretKey = '(my secret key)';
$securityAlgorithm = 'wsignin1.0';
$policyUrl = 'http://path.to.my/policy.html';
$returnUrl = 'http://path.to.my/script.php';
$wll = new WindowsLiveLogin($applicationID, $secretKey, $securityAlgorithm, false, $policyUrl, $returnUrl);

政策网址有效且returnUrl与我输入的网址完全相同  https://live.azure.com/Cloud/Provisioning/Services.aspx?projectid=0 。当我getConsentUrl时,它给我以下错误。

The policy URL is valid and the returnUrl is the same exact URL as I typed into https://live.azure.com/Cloud/Provisioning/Services.aspx?projectid=0. When I getConsentUrl, it gives me the following error.

使用  path分享您的信息时出现问题。 to.my 。请稍后再试。

显然我的真实域名不是path.to.my.那就是那里,所以你们不能去我的代码并嘲笑它的可怜性:)
Obviously I have my real domain there instead of path.to.my. That's just there so you guys can't go to my code and laugh at it's pitifulness :)

推荐答案

嗨。请在 http://wlid-da.winlive.alex-media.nl http://happyfrog.winlive.alex-media.nl ,您也可以在这里获取源代码。
Hi. Please check out my samples at http://wlid-da.winlive.alex-media.nl and http://happyfrog.winlive.alex-media.nl , where you can also get the source code.


这篇关于用于联系人检索的PHP委派身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆