简体   繁体   中英

One login for two projects in a solution

So I have two projects in my solution, one is an ASP.Net C# Web App and the other is a Silverlight application. My question is, instead of configuring users and security for both sites with the ASP.net Web Site Administration tool, can I somehow use just one to configure users for both?

To do this you simply need a shared storage mechanism for users from both sources. This would normally be a database.

我不确定在Visual Studio中,但是如果您要部署到IIS,则可以在更高级别配置表单登录,并将其用于每个应用程序。

Using single login is right way!

You can already use your aspnet membership in Silverlight. We use that way and this is the right thing.By this way you can share all your membership info,such as profile,groups.

http://blogs.msdn.com/b/kylemc/archive/2010/05/10/using-asp-net-membership-in-silverlight.aspx

http://www.silverlightshow.net/items/Leveraging-the-ASP.NET-Membership-in-Silverlight.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM