I downloaded the sample login page from the ACS portal for my application, which is a html file. I then configured my application with WIF, and everything worked perfectly.
由于我们需要处理和挽救即将到来的问询,因此,在用户被贴上标签之后,可以稍后使用查询,因此,我们需要将html的标识页移到一个星页。
The problem is that when I change the issuer for WIF in the web.config file to the aspx file, it stops working. When it works it looks like this:
<certificateValidation certificateValidationMode="None" />
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="true" issuer="http://localhost:81/acstest/WebSiteAdvancedACSLoginPageCode.html" realm="http://localhost:81/acstest/" requireHttps="false" />
<cookieHandler requireSsl="false" />
</federatedAuthentication>
但是,当我把它改为我的牛页时,我刚刚把《法典》的所有内容移到html网页上,我甚至连页上载:
<certificateValidation certificateValidationMode="None" />
<federatedAuthentication>
<wsFederation passiveRedirectEnabled="true" issuer="http://localhost:81/acstest/WebSiteAdvancedACSLoginPageCode.aspx" realm="http://localhost:81/acstest/" requireHttps="false" />
<cookieHandler requireSsl="false" />
</federatedAuthentication>
当时,当我拿着编成的x子档案时,我可以假装地看到,有些权利是 right的。 它试图取得,并不断“在这里:” 这是要求:
GET http://localhost:81/acstest/WebSiteAdvancedACSLoginPageCode.aspx?wa=wsignin1.0&wtrealm=http%3a%2f%2flocalhost%3a81%2facstest%2f&wctx=rm%3d0%26id%3dpassive%26ru%3d%252facstest%252fWebSiteAdvancedACSLoginPageCode.aspx&wct=2011-11-23T09%3a33%3a30Z HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: sv-SE
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Connection: Keep-Alive
Host: localhost:81
Cookie: ACSChosenIdentityProvider-10001951=Google
In the end it throws an exception that the querystring is too long. The error and warning of the request:
MODULE_SET_RESPONSE_ERROR_STATUS
ModuleName UrlAuthorization
Notification AUTHORIZE_REQUEST
HttpStatus 401
HttpReason Unauthorized
HttpSubStatus 0
ErrorCode Åtgärden har slutförts. (0x0)
ConfigExceptionInfo
任何反馈或交换解决办法都得到了评估。