如何自定义登录帐户在ASP.NET登录控件,如果我们通过的Micorosoft联合会认证的? [英] How to customize login account for Login control in ASP.NET if we are authenticated by Micorosoft Federation?

查看:141
本文介绍了如何自定义登录帐户在ASP.NET登录控件,如果我们通过的Micorosoft联合会认证的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我使用Microsoft.IdentityModel.Web.WSFederationAuthenticationModule身份验证的网站。它重定向我(在登录外单我网站)登录页面,在登录时,我重定向到默认页面。

currently I have a website with authentication using Microsoft.IdentityModel.Web.WSFederationAuthenticationModule. It redirects me to login page (single sign-on outside my website) and upon login, I am redirected to default page.

现在,当我使用的CreateUserWizard asp.net控制,似乎是在创建用户,控制试图用我的机器名登录到数据库服务器(即'\\ $'),而不是使用具有SSO登录刚刚完成。

Now, when I was using CreateUserWizard asp.net control, it seems that upon creation of user, the control tried to use my machine name to login to db server (i.e. '\$') instead of using SSO login which has just been done.

是否有人知道如何自定义使用联邦登录连接到数据库服务器的控制?此外,如何设置,以使控制会使用某些特定的SQL帐户登录到数据库服务器?

Does anybody know how to customize the control to use federation login to connect to db server? In addition, how to set so that the control will use certain specified sql account to login to db server?

推荐答案

当你靠联合身份,你通常不会创建用户。这些会由身份提供商处理。你可能要考虑重新思考你的应用程序一点点。例如:考虑到用户会为你提供(通过IDP),这是什么道理在你的应用程序呢? (例如关联用户,管理AuthZ的,等等)。但很可能不是创造的人。

When you rely on federated identity, you typically won't "create users". Those would be handled by the identity provider. You might want to consider rethinking your app a little bit. For example: given that users will be provided for you (through the IdP), what does it make sense to do in your app? (e.g. associate users, manage authZ, etc). But likely not "create ones".

这篇关于如何自定义登录帐户在ASP.NET登录控件,如果我们通过的Micorosoft联合会认证的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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