簡體   English   中英

IIS 7.5我在做什么錯?

[英]IIS 7.5 What am I doing wrong?

在Windows 7 Utilmate下的IIS 7.5中,我有一個配置用於身份驗證的應用程序,如下所示:匿名&Windows

在ASP.NET網站中,我已將Forms身份驗證和身份模擬設置為true =我也拒絕了任何匿名用戶。

<authentication mode="Forms">
</authentication>
<identity impersonate="true"/>
<authorization>
<deny user="?">
</authorization>

IIS抱怨。 我在做什么錯...我想實現的目標:我希望Windows登錄用戶,以便我可以構建FormsAuthentication票證並將其傳遞給Passive STS。 因此,在IIS中,我有匿名用戶和Windows ...如果僅勾選了Windows,則無法進入Login.aspx頁面,因為我要從那里傳遞一個額外的參數。 因此,現在在webconfig中,然后我說拒絕user =“?”來禁用匿名用戶。 ,所以讓我由經過身份驗證的Windows用戶使用,而是使用Forms Authentication。您知道我的意思嗎?

http://msdn.microsoft.com/en-us/library/ff649264.aspx

如果看到表4 IIS的IIS集成Windows,則Web.config設置第三行,因此WindowsIdentity為Domian \\ Username。它適用於XP下的IIS 6.0 win2003 / IIS 5.1

如果這是一個利用基於聲明的身份的應用程序,則對用戶進行身份驗證的責任在STS本身中,而不在應用程序中。

如果將(Web)應用程序配置為信任外部STS,則身份驗證模式將為“ ”,並且配置文件中將包含“ Microsoft.identityModel ”的整個部分。 然后,您可以在此處配置STS地址( 頒發者屬性)。 像這樣:

<microsoft.identityModel>
<service>
  <audienceUris>
    <add value="https://aexpense-dev.adatum.com/" />
  </audienceUris>
  <federatedAuthentication>
    <wsFederation passiveRedirectEnabled="true" issuer="https://localhost/Adatum.SimulatedIssuer/" realm="https://aexpense-dev.adatum.com/" requireHttps="true" />
    <cookieHandler requireSsl="false" />
  </federatedAuthentication>
  <serviceCertificate>
    <certificateReference x509FindType="FindBySubjectDistinguishedName" findValue="CN=localhost"/>
  </serviceCertificate>
  <certificateValidation certificateValidationMode="None"/>
  <applicationService>
    <claimTypeRequired>
      <claimType type="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" optional="true" />
    </claimTypeRequired>
  </applicationService>
  <issuerNameRegistry type="Microsoft.IdentityModel.Tokens.ConfigurationBasedIssuerNameRegistry, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
    <trustedIssuers>
      <add thumbprint="f260042d59e14937984c6183fbc6bfc71baf5462" name="https://localhost/Adatum.SimulatedIssuer/" />
    </trustedIssuers>
  </issuerNameRegistry>
</service>

STS本身可能使用Forms身份驗證或其他方式,具體取決於實現方式。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM