简体   繁体   English

如何允许匿名访问ADFS托管站点上的单个文件夹

[英]How to allow anonymous access to a single folder on an ADFS managed site

Asp.net site deployed to IIS7; 将Asp.net网站部署到IIS7; the site is protected by ADFS. 该站点受ADFS保护。 I have the need to allow anonymous access to a single folder on the site. 我需要允许匿名访问站点上的单个文件夹。 How can I do this? 我怎样才能做到这一点?

As usual. 照常。

If this is a WebForms application, you create a local web.config and add an authorization section configured for anonymous access. 如果这是WebForms应用程序,则创建一个本地web.config并添加配置为匿名访问的授权部分。

If this is a MVC app, you put the AllowAnonymous on your controller. 如果这是MVC应用程序,则将AllowAnonymous放在控制器上。

The WS Federation Authentication module shouldn't redirect to ADFS. WS Federation身份验证模块不应重定向到ADFS。

Btw. 顺便说一句。 The site is not "protected by ADFS". 该站点不受“ ADFS保护”。 The ADFS is just an external authentication source, the Security Token Service, in wsfed terms. 用wsfed术语来说,ADFS只是一个外部身份验证源,即安全令牌服务。 The site is most probably protected by the WSFederationAuthenticationModule module that is commonly used for initializing wsfed handshake and consuming SAML tokens. 该站点很可能受到WSFederationAuthenticationModule module保护,该WSFederationAuthenticationModule module通常用于初始化wsfed握手和使用SAML令牌。

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

相关问题 如何允许匿名访问我的IIS站点,但使用Windows身份验证连接到SQL Server? - How do I allow anonymous access to my IIS site, but use Windows Authentication to connect to SQL Server? 如何允许匿名用户浏览样式文件夹 - How to allow anonymous user to browse the Style folder 允许对web.config中的单个文件夹进行匿名身份验证? - Allow anonymous authentication for a single folder in web.config? 允许匿名访问使用Windows身份验证的IIS站点中的目录 - Allow anonymous access to a directory in a IIS site that uses Windows Authentication 如何允许匿名用户访问虚拟目录 - How to allow anonymous user access to virtual directory ASP.NET web.config表单身份验证,拒绝匿名用户,允许匿名访问单个文件 - ASP.NET web.config Forms Authentication, deny anonymous users, allow anonymous access for single files 当站点具有全局AuthorizeAttribute时,ASP.NET允许匿名访问OData $ metadata - ASP.NET allow anonymous access to OData $metadata when site has global AuthorizeAttribute IIS 6 默认允许匿名访问 - IIS 6 Allow anonymous access by default 如何只允许匿名访问网站首页? - How to allow anonymous access only to the front page of a website? 如何允许匿名用户访问图像? - How do I allow anonymous users to access an image?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM