1

我遇到的问题是,当定向到 FileUploadWAP 应用程序中的页面时,我收到了第二个登录请求。如果登录代码和配置部署到根默认站点,则共享身份验证有效。我怀疑cookie的路径是问题或machineKey。

IIS 中的网站 DefaultWebSite Other Application1 Other Application2 StaffLocal(是一个应用程序) FileUploadWAP(是 StaffLocal 下的一个应用程序)

Web Config file in StaffLocal  
<authentication mode="Forms">
        <forms loginUrl="login.aspx" 
         name="StaffWeb"
         timeout="610" 
         path="/" 
         slidingExpiration="true"
         enableCrossAppRedirects="true" 
         protection="All">
        </forms>        
</authentication>

Web Config file in StaffLocal/FileUploadWAP  
<authentication mode="Forms">
    <forms loginUrl="../Login.aspx" (If the .. are removed get error can’t find Login.aspx.)
    name="StaffWeb"
    timeout="610" 
    path="../"     (have tried / and ../ and other variants)
    slidingExpiration="true" 
    enableCrossAppRedirects="true"
    protection="All">
    </forms>
</authentication>

Same in both configs
<machineKey 
    decryption="DES" 
    decryptionKey="966CF55FB064D15A13789E90CF5B91E640436E07AB6C71A3" 
    validation="SHA1" 

validationKey="E329E5ECDD7EE4B3BDF27A563F91A38888FA95E5259914DBADD86F9ED681A41732E609F8338" />

4

1 回答 1

0

回答我自己的问题。我将配置更改为使用 AES,并且身份验证开始工作。

于 2019-01-03T20:19:58.433 回答