简体   繁体   English

ASP.NET Web应用程序和Silverlight业务应用程序之间是否可以进行共享身份验证

[英]Is it possible share authentication between Asp.NET web applications and silverlight business application

Is it possible share authentication between Asp.NET web applications and silverlight business application? Asp.NET Web应用程序和Silverlight业务应用程序之间是否可以进行共享身份验证?

Scenario: When uses logged in on either SL application or Asp.NET application using same browser, I want them to used active authentication. 方案:当使用相同的浏览器在SL应用程序或Asp.NET应用程序上登录时,我希望它们使用主动身份验证。 I have seen OpenId authentication can do such, But wondering can asp.net authentication is also able to do such. 我已经看过OpenId身份验证可以做到这一点,但想知道asp.net身份验证也可以做到这一点。

Yes the authentication infrastructure can be shared between ASP.Net and SilverLight. 是的,可以在ASP.Net和SilverLight之间共享身份验证基础结构。 If both the sites are under one domain, we can implement the standard authentication using ASP.Net Membership and role provider. 如果两个站点都在一个域中,则可以使用ASP.Net成员身份和角色提供程序来实现标准身份验证。
You can then use the WCF Authentication Service to and authorize user. 然后,您可以使用WCF身份验证服务来对用户进行授权。 This authentication is is good only for any server side functionality. 此身份验证仅对任何服务器端功能都有用。 If you want to authorize on client side (SilverLight) application you need to build your own infrastructure. 如果要在客户端(SilverLight)应用程序上进行授权,则需要构建自己的基础结构。 Role and Membership provider data available can help you in that. 可用的角色和成员资格提供者数据可以帮助您。

You can host your SL application in ASP.NET page and when somebody comes on this page do authentication. 您可以将SL应用程序托管在ASP.NET页中,然后当有人访问此页时进行身份验证。 For instance, you can use FormAuthentication on the site, so when you are navigating from some page to page with Silverlight - access will be hovered by very FormAuthentication. 例如,您可以在站点上使用FormAuthentication,因此,当您使用Silverlight从某页面导航到另一页面时-FormAuthentication将使访问徘徊。 OpenId you can use if ASP.NET app and Silverlight on different sites (domains), but if the Silverlight app is hosted on asp.net page you can also authenticate using asp.net infrastructure on server side. 如果ASP.NET应用程序和Silverlight在不同的站点(域)上,则可以使用OpenId,但是如果Silverlight应用程序托管在asp.net页上,则还可以使用服务器端的asp.net基础结构进行身份验证。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 与其他网站共享ASP.Net Web应用程序身份验证 - Share ASP.Net web application authentication with another web sites 如何在两个ASP.NET应用程序之间共享身份验证 - How to share authentication between two asp.net application 在控制台应用程序和asp.net Web应用程序之间共享配置 - share configuration between console application and asp.net web application ASP.NET应用程序之间的ASP.NET共享会话 - Asp.net share session between ASP.NET applications ASP.NET Web应用程序的身份验证系统? - Authentication system for ASP.NET web applications? ASP.NET中的应用程序之间的身份验证 - Authentication between applications in ASP.NET 如何在ASP.NET Web窗体应用程序和ASP.NET核心应用程序之间共享会话和Cookie? - How to share session and cookie between asp.net web form application and asp.net core application? 如何在SharePoint 2010网站和ASP.NET应用程序之间共享身份验证上下文 - How to share authentication context between a SharePoint 2010 Site and ASP.NET applications 在SharePoint和ASP.Net Web应用程序之间共享Windows身份验证 - Sharing Windows Authentication between SharePoint and ASP.Net Web Application ASP.NET Web应用程序之间的引用 - References between ASP.NET web applications
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM