简体   繁体   English

SilverLight应用程序(不是Silverlight业务应用程序)中的Windows身份验证

[英]Windows authentication in SilverLight Application (not Silverlight Business Application)

I am trying to add Windows authentication to an existing website that I have created. 我试图将Windows身份验证添加到我创建的现有网站中。 All information that I have read regarding using Windows authentication in silverlight requires that you start with the Silverlight Business Applicaion template instead of the Silverliight application template. 我已阅读有关在Silverlight中使用Windows身份验证的所有信息,要求您从Silverlight Business Applicaion模板而不是Silverliight应用程序模板开始。 I already have a website that I started writing using the Silverlight Application template. 我已经有一个开始使用Silverlight应用程序模板编写的网站。 How can I add windows authentication to this existing website? 如何向此现有网站添加Windows身份验证?

If your application is hosted in IIS and this is a intranet site, you just need to set the application in IIS authentication method to Windows Authentication, then when the client tries to load the SL App a 401 challenge will trigger asking the user to enter in his/hers credentials. 如果您的应用程序托管在IIS中,并且这是一个Intranet站点,则只需将IIS身份验证方法中的应用程序设置为Windows身份验证,那么当客户端尝试加载SL App时,系统会触发401质询,要求用户输入他/她的凭证。 You can also set IE to pass with windows credentials to the server when the site is loaded. 您还可以将IE设置为在加载站点时将Windows凭据传递给服务器。 I have had spent quite a bit of time tweaking various properties to get the right functionality that i am looking for (especially with machine names being fully qualifies or not) but basically that's one thing to keep in mind when debugging this is that machines names play a role in how the server interprets a client trying to access the server. 我已经花了很多时间来调整各种属性,以获得我正在寻找的正确功能(尤其是机器名称是否完全合格),但是基本上,调试时要记住的一件事是机器名称会播放服务器解释客户端尝试访问服务器的方式的角色。

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

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