问题标签 [windows-live]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
353 浏览

javascript - windows live登录获取邮箱地址

我正在尝试windows live使用他们的 javascript API 实现登录。我将此文档作为示例并使用以下代码:

上面的代码正在返回id,和其他字段name,但我也想通过在. 我浏览了WL.init 文档,并没有提到和值。有什么办法可以得到这两个字段?emailprofile picture urlgoogle+emailscopeemailprofile picture url scope

0 投票
2 回答
1165 浏览

oauth-2.0 - Windows Live Open ID Connect/Oauth 2.0 如何使用 Apache mod_auth_openidc 进行 SSO

我有 mod_auth_openidc 与 Google 合作,手卷版本的 phpOIDC 作为我的 OP,mod_auth_openidc 作为我的身份提供者。

我的问题似乎是 Microsoft 实施中的错误。

mod_auth_openidc 是一个很棒的 mod 并且做了相当多的验证日志。

JWT 中返回的内容之一是“aud”参数,即受众。

根据 Open ID Connect 规范:

aud REQUIRED. Audience(s) that this ID Token is intended for. It MUST contain the OAuth 2.0 client_id of the Relying Party as an audience value. It MAY also contain identifiers for other audiences. In the general case, the aud value is an array of case sensitive strings. In the common special case when there is one audience, the aud value MAY be a single case sensitive string.

我的客户 ID 是 00000001234(不是我的真实 ID,只是一个示例)。

我通过握手做到了,一切都很正常,我从 Windows Live 获得我的 nonce “代码”,然后我用它交换我的令牌,但我得到的令牌有一个“aud”值:

00000000-0000-0000-0000-00000001234

mod_auth_openidc 正确检查返回令牌中的“aud”值,并以错误响应,因为“aud”与配置的 cliend_id 不匹配,根据规范,这是应该的。

我的问题是,除了不验证令牌的受众之外,还有什么方法可以在 MS Developer 控制台中配置应用程序,以便它为返回的令牌中的“aud”值正确返回客户端 ID?

没有那个,在他们的实现中报告此类错误的最佳地点在哪里?

0 投票
1 回答
1073 浏览

calendar - 是否有直接 URL 可以订阅 Windows Live 日历上的 ICS url?

我正在寻找一个类似于http://www.google.com/calendar/render?cid=ICS_URLWindows Live 的 Google 日历的 URL。该 url 链接到日历 Web 应用程序,并显示用户是否要订阅外部 ICS 的弹出窗口。我想从应用程序打开此 URL 以引导用户订阅。有什么帮助吗?

谢谢。

0 投票
1 回答
126 浏览

ruby-on-rails - Windows Live invalid redirect_url (Rails)

I am trying to connect to Windows Live using oauth and I am getting an error "The provided value for the input parameter 'redirect_uri' is not valid. The expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registered for this client application."

Because Windows requires a domain for their api I have changed my localhost domain to 'blumelocal.com'

  • I am using the 'omniauth-windowslive' gem and here is my omniauth.rb file

    /li>
  • I navigate to 'blumelocal.com:3000/auth/windowslive' (I should add, that it redirects to 'www.blumelocal.com:3000/auth/windowslive', im not sure if this is part of the issue).

routes.rb

in the Microsoft Developer Center I have set my targetdomain to "blumelocal.com", and redirect url to "http://blumelocal.com" (and have experimented with a variety of different possibilities".

When I navigate to blumelocal.com:3000/auth/windowslive I get taken to an error page with the error at the top

0 投票
1 回答
112 浏览

php - Windows Live Contact API 在此服务器上找不到请求的 URL?

我正在尝试从 Windows Live Contacts API 获取我的 hotmail 联系人。我按照教程下载了 php 和 html 代码。尽管它应该可以工作并且它给了我一个钥匙,但它不会显示任何东西。

当我尝试获取联系人时,它首先征求我的许可,之后我会自动返回我自己的页面,这就是我收到错误的时候。

错误:未找到
在此服务器上未找到请求的 URL /result.php?code=xxxxxx-xxxxx-xxxxxxxx-xxxx。

索引.php

结果.php

配置文件

0 投票
0 回答
79 浏览

c# - Outlook.com REST API - 与 LiveID Live SDK 的向后兼容性

我正在使用新的统一 Outlook Rest API,它适用于 Office 365 帐户,但 Outlook.com 帐户经常抛出 MailboxNotEnabledForRESTAPI 异常。我知道现在正在进行过渡,这会将所有现有帐户转移到新的 API。是否有关于如何实现对旧版 LiveId/Windows Live SDK 的向后兼容调用的示例?应用程序注册门户在高级下有一个名为“Live SDK Support”的复选框。这是什么意思,当用户使用我的服务并且他们没有被转换时,我该如何编写回退逻辑?任何帮助将不胜感激,因为我们正试图在第二天左右提供这项服务。

0 投票
1 回答
56 浏览

asp.net-mvc - 使用 windows live smtp 从 .NET 发送电子邮件

我在 web.config 中配置了 smtp 设置,并且在本地计算机上工作时能够成功发送电子邮件。但是当我在服务器上上传代码时,它给了我以下异常

信箱不可用。服务器响应为:5.7.3 请求的操作已中止

与此同时,我还收到了一封来自微软的电子邮件,告诉我从新位置登录我的帐户的尝试被阻止了。我清楚地理解服务器与我通常登录 Windows Live 帐户的位置不同的问题。这就是为什么它阻止帐户登录的原因。但我希望它使用我的凭据从远程服务器登录并发送电子邮件。Windows Live 帐户中必须有一些设置,但我找不到。

0 投票
1 回答
94 浏览

javascript - 从 Windows Live 获取联系人的电话号码

我正在尝试使用 Javascript 从 Windows Live 导入联系人,这是我的代码:

我得到了联系人的基本信息和他们的电子邮件,但没有电话号码。我查看了 API 文档,没有看到任何有关导入联系人电话号码的信息。有人知道获取联系人电话号码的方法吗?

0 投票
0 回答
159 浏览

javascript - 使用 windows live connect 登录,类似于 Google 的“postmessage”

我的网络应用程序中有一个“使用 Google 登录”按钮,该按钮打开同意窗口,在用户登录后获取代码并将其发送到我的服务器,以进行服务器端验证。这是我使用的 Javascript 代码:

我正在尝试实现一个“使用 Outlook.com 登录”按钮,它应该做的完全一样,但它似乎缺少谷歌的一些功能,尤其是 'redirect_uri': 'postmessage' 重定向 URI 和 'approval_prompt' : '力量'。

这是我当前的 Microsoft Live Connect Javascript 代码:

那么有没有办法拥有与谷歌登录类似的功能?

MS Live 中是否有“postmessage”和“force”的替代方法?

是否有可能在处理程序中实现相同的目标,由redirect_uri 指向?我没有找到这个处理程序的任何示例,除了接收和传递代码之外,它应该关闭同意窗口。

0 投票
1 回答
656 浏览

live-sdk - Microsoft Live API - 访问令牌无效

我正在尝试实现“使用 Outlook.com 登录”流程,其中涉及客户端和服务器代码。流程是:

  1. 从客户端将用户重定向到:

https://login.live.com/oauth20_authorize.srf?client_id=<client_id>&response_type=code&redirect_uri=<登录html页面>&scope=openid+offline_access+profile+https:%2f%2foutlook.office.com%2fmail。发送+https:%2f%2foutlook.office.com%2fcontacts.read+onedrive.readwrite

  1. 我将代码返回到我的 html 页面并将其发布到我的 java 服务器。

  2. 在服务器端,我使用代码获取访问和刷新令牌,使用 POST 请求: https ://login.live.com/oauth20_token.srf

正文中的下一个参数:client_id、redirect_uri、client_secret、grant_type="authorization_code" 和 code=< 上一步中的代码 >。

我收到了 access_token 和 refresh_tokem,它们应该有效期为 1 小时。

  1. 还在服务器上,我调用 URL

https://apis.live.net/v5.0/me?access_token= <我刚拿到的access-token >

并得到错误 401:

这种流量可以吗?