2013-06-12 23 views
0

在Intuit應用程序中心,當用戶點擊我的應用程序時,它們應該被髮送到www.myweb.com \ OpenIdHandler.aspx。page_load重定向到它時沒有被調用

提琴手顯示:

GET https://appcenter.intuit.com/app/b7nyqfscsm 
302 Found to https://myweb.com/OpenIdHandler.aspx 

CONNECT http://myweb.com:443 
200 Connection Established() 

CONNECT http://myweb.com:443 
200 Connection Established() 

GET https://appcenter.intuit.com/app/b7nyqfscsm 
302 Found to https://myweb.com/OpenIdHandler.aspx 

CONNECT http://myweb.com:443 
200 Connection Established() 

CONNECT http://myweb.com:443 
200 Connection Established() 

CONNECT http://myweb.com:443 
200 Connection Established() 

GET https://myweb.com/OpenIdHandler.aspx 
302 Found to /Default.aspx 

GET https://myweb.com/Default.aspx 
302 Found to /Login.aspx 

GET https://myweb.com/Login.aspx 
200 OK (text/html) 

我有記錄在OpenIdHandler.aspx打開Page_Load中,並沒有什麼得到記錄,所以我知道OpenIdHandler.aspx Page_Load中是沒有得到調用。

如果我去https://myweb.com/OpenIdHandler.aspx登錄登錄頁面(但不登錄)後,所有工作如預期(它指出我通過Intuit App Center/Intuit OpenID登錄)。

問:爲什麼不調用OpenIdHandler.aspx Page_load?

+0

問題是什麼? –

+0

爲什麼不調用OpenIdHandler.aspx Page_load? – ginalster

+0

如果我不得不猜測,您的Forms Authentication登錄頁面是Login.aspx,並且它繞過了OpenIdHandler.aspx的請求。您是否嘗試將OpenIdHandler.aspx邏輯放入Login.aspx頁面? –

回答

2

從fiddler輸出看起來您沒有登錄,OpenIdHandler.aspx將重定向到Default.aspx,然後將其重定向到Login.aspx。

檢查您的身份驗證設置,如果OpenIdHandler.aspx需要授權,重定向將在頁面上的任何代碼執行之前發生。看起來你需要確保OpenIdHandler.aspx不需要授權。

0

感謝您對這樣一個模糊問題的猜測。

罪魁禍首是Global.asax.cs中:

void Session_Start(object sender, EventArgs e) 
    { 
     // Code that runs when a new session is started 
     Response.Redirect("Default.aspx"); //<-------------- 
    } 

如果評論說出來,那麼所有的快樂!

相關問題