[英]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.