"Canlı Devredilen kimlik doğrulaması" alınamıyor

0 Cevap php

Ben Canlı Temsilcili Kimlik Doğrulama e-posta adreslerini okuma amacıyla işe almak için deneyin.

Iam windowslivelogin kütüphane yardımı ile PHP yapıyor. Sorun i bir hata olsun.

Ben yanlış ne yapıyorum emin değilim, ben Azure web sayfasında benim uygulamayı tescil ve Appıd ve koduna sırrı var. Bu i Canlı Kütüphane başlatmak için ne kullanın:

$o = new WindowsLiveLogin();
$o->setAppId('000000004801B670');
$o->setSecret('secret');
$o->setSecurityAlgorithm('wsignin1.0');
$o->setDebug(true);
$o->setPolicyUrl('http://www.google.com/aides.html');
$o->setReturnUrl("http://michaelp.dev.gamepoint.net/framework/mainsite/contactimporter/?service=live");
return $o;

then i call $this->LiveLibrary->getLoginUrl()
And after i Login in to Live, it posts 2 things back, $_POST['stoken'] and $_POST['action']. As soon as i call $this->LiveLibrary->processLogin($_REQUEST); it fails and gives back an error that the token is invalid.

I tried getting Consent straight away by making redirecting to $this->LiveLibrary->getConsentUrl("Contacts.View");

ama bu bir 3007 hata verir ve bu bilgileri paylaşmak olamaz diyor

According to MS this means the following : 

3007


Consent Service API failed in the <method name> method. The application verifier is invalid.


The offer security level requires that a valid application verifier be passed with the request.

Iam kütüphanesi tarafından oluşturulan aşağıdaki URL'yi kullanarak

https://consent.live.com/Delegation.aspx?ps=Contacts.Invite&ru=http%3A%2F%2Fmichaelp.dev.gamepoint.net%2Fframework%2Fmainsite%2Fcontactimporter%2F%3Fservice%3Dlive&pl=http%3A%2F%2Fwww.google.com%2Faides.html&app=appid%3D000000004801B670%26ts%3D1251722931%26sig%3DD2gkM%252F%252FwlRXXfS64NMrV%252Bkt50v6dAOcESblfRk7j%252FUE%253D

Microsoft, bu şey üzerinde olan belgelerin çoğu anlamıyorum, bence bu gerçekten belirsiz ve kaotik. Ayrıca ben denedim örnek çalışmıyor. Ben bir hata mesajı alıyorum, bu belirteci çözmek / doğrulamak olamaz. I processLogin çalıştığınızda aynı i get ().

Teşekkür peşin,

Michael

0 Cevap