使用Windows Azure的Active Directory来注册新用户MVC 4的网站 [英] Use Windows Azure Active Directory to register new users for MVC 4 website

查看:155
本文介绍了使用Windows Azure的Active Directory来注册新用户MVC 4的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Windows Azure的Active Directory作为身份提供商为我的MVC 4应用程序,需要弄清楚如何实现用户注册功能。我知道,图形API可用于更新WAAD。但是,从阅读 http://msdn.microsoft.com/en-us /library/windowsazure/dn151791.aspx 我有,为了使用图形API,用户必须通过WAAD一个认证的感觉。只有到那时,他收到要与图形API使用的令牌。但是,如果我有一个未注册的用户谁想要注册吗?如何创建在WAAD为他的项目?我能以某种方式使用服务主体,以获得令牌,绕过无需登录的用户?我将如何做到这一点,如果是这样的话?

I'm trying to use Windows Azure Active Directory as an Identity Provider for my MVC 4 app and need to figure out how to implement a user registration functionality. I know that Graph API can be used for updating WAAD. However, from reading http://msdn.microsoft.com/en-us/library/windowsazure/dn151791.aspx I've got a sense that, in order to use Graph API, a user has to be authenticated through WAAD first. Only then will he receive a token to be used with Graph API. But what if I have an unregistered user who wants to register? How do I create an entry for him in WAAD? Can I somehow use the Service Principal to get the token, bypassing the user having to log in? How would I do that, if that's the case?

我会很感激,如果你可以点我在正确的方向,并为我提供了一套步骤,教程和code样品,我可以用它来解决我的问题。

I'll be very grateful if you could point me in the right direction and provide me with a set of steps, tutorials and code samples I can use to solve my problem.

推荐答案

我不相信这是必须首先注册的用户。它是拥有的权限读取/写入WAAD应用。如果应用程序是注册在WAAD,并包含必要的写权限,然后应用程序和查询WAAD,并添加新用户的目录。

I don't believe it is the user that has to be registered first. It is the application that holds the permissions to read/write to WAAD. If the application is registered in WAAD, and contains the necessary write permissions, then the app and query WAAD and add new users to the directory.

这篇关于使用Windows Azure的Active Directory来注册新用户MVC 4的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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