使用ACS的RESTful认证 [英] RESTful authentication using ACS

查看:133
本文介绍了使用ACS的RESTful认证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写在ASP .NET MVC的Web应用程序3.我使用ACS进行身份验证我的用户,我定义谷歌的Windows Live,雅虎和Facebook的身份提供者。

I have a web application written in ASP .NET MVC 3. I'm using ACS for authenticating my users and I defined Google, Windows Live, Yahoo! and Facebook as identity providers.

现在我要揭露一个REST API的应用程序(我想创建一个WP7应用程序)。有些电话要求用户进行身份验证,所以我想我应该通过一个令牌在请求的认证头。什么是ACS要做到这一点,最好的方法?是ACS能够给我提供这些种类的记号或者我负责编写code生成这些令牌?

Now I want to expose a REST API for the application (I want to create an app for WP7). Some of the calls require that the user is authenticated so I thought I should pass a token in the authentication header of the request. What is the best approach to do this with ACS? Is the ACS able to provide me these kind of tokens or am I responsible for writing the code that generates these tokens?

推荐答案

是的。 ACS支持此方案以简单的Web令牌(SWT)。请参见这里,还是在ACS任何释放的文档。 ACS V2,currenlty在实​​验室中,已经扩大了WS-美联储,WS-信任,支持等(这是你使用的是什么今天)。

Yes. ACS supports this scenario with "Simple Web Tokens" (SWT). See here, or any of the "released" documentation in ACS. ACS v2, currenlty in labs, has expanded support for WS-Fed, WS-trust, etc (this is what you are using today).

下面是一个<一个href=\"http://blogs.msdn.com/b/eugeniop/archive/2011/03/24/authentication-in-wp7-client-with-rest-services-part-i.aspx\"相对=nofollow>博客文章我的详细信息写的电话。

Here's a blog post I wrote with more information for the phone.

这篇关于使用ACS的RESTful认证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆