1

我正在使用 Windows Azure 迈出第一步,从创建移动服务开始,因为我遇到了两个问题: - 如何个性化我的服务,以便在将存储在 DB 中的数据返回给我的客户之前对其进行一些处理。-是否可以实施您自己的身份验证服务以使用默认提供的配置文件(FB、twitter、google 和 windows live ID)

4

3 回答 3

2

这都是一个基于 REST 的界面,因此选项非常开放!也就是说,您真的想自己管理身份还是想将个人资料信息附加到由您提到的各种服务验证的身份。

我倾向于选择后者,在这种情况下,您可以收集其他数据并将其存储在与用户关联的 WAMS 中。如果您查看“使用脚本授权移动服务中的用户”,您会注意到您可以访问身份验证服务的“用户 ID”。该 id 可能是不透明的;但是,在您的“注册”WAMS 脚本中,您将能够记录您自己的有意义的数据以及 ID 提供者的唯一用户 ID 密钥。所以现在您正在维护个人资料信息,但不必自己进行身份验证!

当然,在 WAMS 脚本中,您可以访问与调用它的 CRUD 操作关联的表之外的其他表(和服务)。因此,例如,您可以使用user.userid作为参数传递到脚本中的参数作为您的配置文件信息表的索引,将您的“配置文件信息”表加入所有其他脚本中。您可以在此处将“治疗”添加到数据中。

于 2012-12-06T16:50:03.267 回答
1

There are three posts that you might find helpful regarding custom identity:

Here Josh walks through how he does this in his iSO todo app: http://www.thejoyofcode.com/Exploring_custom_identity_in_Mobile_Services_Day_12_.aspx

Chris also has two helpful posts: http://chrisrisner.com/Authentication-with-Windows-Azure-Mobile-Services and http://chrisrisner.com/Authentication-with-iOS-and-Windows-Azure-Mobile-Services

于 2013-05-01T05:20:28.540 回答
0

您还可以从 TechEd 2013 中找到关于自定义身份验证提供程序以及使用服务器端脚本或数据库本身处理您的一些数据的精彩会话。

http://channel9.msdn.com/Events/TechEd/NorthAmerica/2013/WAD-B338#fbid=sB9ZMarcc7_

于 2013-06-11T08:53:30.627 回答