Azure培訓套件包含一個標題爲「IntroToACS2」的實驗室。其中,您創建WebRole並啓用ACS,以便您可以使用Google,Live或Yahoo ID進行登錄。登錄後,如果我等待10分鐘左右,然後刷新頁面,我將重定向回登錄頁面。如何增加Azure ACS登錄超時
如何增加Azure ACS登錄超時?
Azure培訓套件包含一個標題爲「IntroToACS2」的實驗室。其中,您創建WebRole並啓用ACS,以便您可以使用Google,Live或Yahoo ID進行登錄。登錄後,如果我等待10分鐘左右,然後刷新頁面,我將重定向回登錄頁面。如何增加Azure ACS登錄超時
如何增加Azure ACS登錄超時?
這裏是我的發現:
http://msdn.microsoft.com/en-us/library/gg185906.aspx#BKMK_5
令牌生存
的令牌生存屬性允許您指定由ACS發給依賴方應用程序的安全令牌的時間量保持有效。默認情況下,在ACS中,此值設置爲10分鐘(600秒)。在ACS中,此值必須大於零但小於或等於24小時(86400秒)。
雖然最大壽命爲24小時有可能通過添加以下6行的代碼在ShowSigninPage功能自動更新ACS令牌,剛剛超過identityProviders現有循環之前:
for (var i in identityProviders) {
if (cookieName !== null && cookieName == identityProviders[i].Name) {
window.location = identityProviders[i].LoginUrl;
return null;
} }
// Loop through the identity providers for (var i in identityProviders) {
...
欲瞭解更多信息自動更新的方法,請參閱:http://social.msdn.microsoft.com/Forums/en-US/windowsazuresecurity/thread/0430c4aa-ab10-4a72-b115-91b2600bfcd0
我想你真正想要的是我增加您的應用程序的會話生存期,並且不是 ACS頒發的令牌生存期。
How do I increase session timeout with W.I.F/SAML tokens/FedAuth cookie
請閱讀對該msdn線程的響應。有很多人給我這個人的建議,就像我剛剛給你的那樣=) – 2012-04-12 18:35:17