如何允许匿名访问到一个文件夹上的ADFS管理网站 [英] How to allow anonymous access to a single folder on an ADFS managed site

查看:312
本文介绍了如何允许匿名访问到一个文件夹上的ADFS管理网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Asp.net网站部署到IIS7;该网站是由ADFS保护。我有必要允许匿名访问到一个文件夹在网站上。我怎样才能做到这一点?

Asp.net site deployed to IIS7; the site is protected by ADFS. I have the need to allow anonymous access to a single folder on the site. How can I do this?

推荐答案

像往常一样。

如果这是一个应用程序的WebForms,您创建一个本地的web.config 并添加配置为允许匿名访问的授权部分。

If this is a WebForms application, you create a local web.config and add an authorization section configured for anonymous access.

如果这是一个MVC应用程序,你把使用AllowAnonymous 控制器上。

If this is a MVC app, you put the AllowAnonymous on your controller.

该WS联合身份验证模块不应该重定向到ADFS。

The WS Federation Authentication module shouldn't redirect to ADFS.

顺便说一句。该网站是不是受保护ADFS。该ADFS只是一个外部认证,安全令牌服务,在wsfed条款。该网站是最有可能由 WSFederationAuthenticationModule模块也就是通常用于初始化wsfed握手和消费SAML令牌保护。

Btw. The site is not "protected by ADFS". The ADFS is just an external authentication source, the Security Token Service, in wsfed terms. The site is most probably protected by the WSFederationAuthenticationModule module that is commonly used for initializing wsfed handshake and consuming SAML tokens.

这篇关于如何允许匿名访问到一个文件夹上的ADFS管理网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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