2015-01-09 29 views
0

我正在使用DotNetOpenAuth進行身份驗證,一旦客戶端請求DotnetOpenAuth服務提供商進行身份驗證,它將重定向到登錄頁面應用程序,成功登錄後返回到網址中帶有大查詢字符串的ReturnPageDotNetOpenAuth服務提供程序返回太大的查詢字符串

我得到了下面的問題,而在IIS服務器

HTTP Error 404.15 - Not Found 
The request filtering module is configured to deny a request where the query string is too long. 

運行它,我用下面的代碼提供返回頁面URL。

Global.PendingOAuthAuthorization = requestAuth;字符串 redirect = System.Configuration.ConfigurationManager.AppSettings [「OauthRedirect」]。ToString(); HttpContext.Current.Response.Redirect( 「/ IdentityProvider /站點/ Authorize.aspx /」);

回答

0

您可以更改最大允許查詢字符串長度的網絡配置設置爲這樣:

<httpRuntime targetFramework="4.5" maxQueryStringLength="10240" enable="true" />

+0

我已經嘗試過了沒工作,我已經設置不同域的FormAuthentication –

相關問題