带有智能电视的Microsoft Azure ACS

时间:2012-09-14 07:51:43

标签: azure acs television

智能电视应用(三星,LG和其他一些应用)正在使用HTML5 + js + CSS进行编码。我想知道将Microsoft Azure ACS集成到这些智能电视中的可行性。我从样本中做了asp.net mvc 3和windows phone来构建ACS,但我真的不知道如何将ACS集成到智能电视应用程序中。

我认为它的工作方式更像是windows phone 7的方法,但即使我得到了代码(它只是开箱即用),仍然没有找到确切的Windows Windows 7上的ACS工作流程。

这里的任何人都可以提出一些意见和建议,这将是很有帮助的。

感谢。

2 个答案:

答案 0 :(得分:0)

WP7的工作流程可在the source here

中找到
    /// Initiates a token request from ACS following these steps:
    /// 1) Get the list of configured Identity Providers from ACS by calling the discovery service
    /// 2) Once the user selects their identity provider, navigate to the sign in page of the provider
    /// 3) Using the WebBrowser control to complete the passive token request complete
    /// 4) Get the token
    /// 5) If a RequestSecurityTokenResponseStore is specified, set the token.
    /// 6) return the token using the RequestSecurityTokenResponseCompleted callback

但我怀疑你是否想走这条路,除非SmartTV有像浏览器控件那样的东西。另一种解决方案是:

  1. 显示custom login page(您可以获取JSON格式的身份提供商列表)
  2. 用户选择身份提供商(例如,将重定向到Windows Live登录页面)
  3. 用户登录并通过POST请求重定向回http://smarttv.local/something(智能电视中应用的网址,如果它甚至有网址?)
  4. 在您的应用中处理POST请求(甚至可以在SmartTV中使用?)

答案 1 :(得分:0)

任何可以呈现网页的平台都可能使用ACS。如果不支持WP7示例中使用的标准window.external.Notify()机制,您可以创建自己的网页,接受来自ACS的帖子,并将令牌按摩到电视应用程序需要的任何类型的HTML或脚本中。消耗。 不过,这是一个有趣的场景。是否真的存在人们在电视上输入联合应用程序的用户名和密码的情况?