使用webclient C#进行WEB单点登录 [英] WEB Single Sign-On using webclient C#

查看:203
本文介绍了使用webclient C#进行WEB单点登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推荐答案

您已将客户端配置为使用默认凭据。如果没有为Windows身份验证配置Web服务器,那么这将不起作用。这实际上取决于您要连接的URL。

You have configured your client to use default credentials. If the web server isn't configured for Windows auth then that won't work. It really depends upon that URL you're connecting to though.

如果您在浏览器中键入该URL,它是否正确下载文件?这真的是客户所做的一切。如果在浏览器中执行此操作会触发登录提示,则客户端也将失败。如果URL实际上是一个HTML页面,允许您下载文件
,那么客户端将只下载HTML。

If you type that URL in the browser does it download the file correctly? That is really all the client is doing. If doing that in the browser triggers a login prompt then the client will fail as well. If the URL is actually an HTML page that allows you to download a file then the client will just download the HTML.


这篇关于使用webclient C#进行WEB单点登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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