简体   繁体   English

Microsoft Live Connect OAuth API停止返回用户信息中的电子邮件

[英]Microsoft Live Connect OAuth API stopped returning email in user information

I am using PHP Microsoft Live Oauth Signing using this library https://github.com/siftware/live-connect it used to work well, but now i noticed that once i login and request profile information i get no info only user id. 我正在使用此库https://github.com/siftware/live-connect使用PHP Microsoft Live Oauth签名,它曾经很好地工作,但是现在我注意到,一旦我登录并请求配置文件信息,我将获得仅用户ID的信息。

With my testing live login i should get at least email, but i dont get it from live api. 通过我的实时登录测试,我至少应该收到电子邮件,但是我没有从实时api收到电子邮件。

  • I am requesting neccessary scopes: $liveConnect->setScopes("wl.emails, wl.signin, wl.basic"); 我请求必要的范围:$ liveConnect-> setScopes(“ wl.emails,wl.signin,wl.basic”);

  • I checked my live profile on https://account.microsoft.com/ and it is true that i have empty name there, but the email is filled and should be available (and in the past it worked as i said). 我在https://account.microsoft.com/上查看了我的实时个人资料,的确是我的名字是空的,但是电子邮件已经填写并且应该可以使用(过去它按照我说的那样工作)。

  • I checked apps privacy settings for my live account and the certain web app and i see that the permissions were requested and granted successfully. 我检查了我的真实帐户和特定Web应用程序的应用程序隐私设置,发现权限已成功请求并授予。 That means following permissions are granted: 这意味着授予以下权限:

    • Access your email addresses 访问您的电子邮件地址
    • View your profile info and contact list 查看您的个人资料信息和联系人列表
    • Sign in automatically 自动登录

So why the live oauth api stopped sending email information of my account? 那么,为什么实时oauth api停止发送我帐户的电子邮件信息?

Maybe the api changed and the change is not reflected in the library, i will check it - it seems it is still actual. 也许api已更改且更改未反映在库中,我将对其进行检查-看来它仍然是实际的。

It seems that once i set first name and last name in the profile info on https://account.microsoft.com/ api starts to send all information about profile (name and email also). 似乎一旦在https://account.microsoft.com/ api上的配置文件信息中设置了名字和姓氏,api就开始发送有关配置文件的所有信息(也包括名称和电子邮件)。

Before it was sending email also when the name was empty. 在发送电子邮件之前,该名称也为空。 So it is probably some internal API change. 因此,可能是内部API发生了一些变化。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM