用于联系人检索的PHP委派身份验证 [英] PHP Delegated Authentication for Contacts Retrieval
问题描述
嘿那里,
我在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 。请稍后再试。
推荐答案
嗨。请在 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屋!