問(wèn)題描述
我正在試驗(yàn) Windows Azure Active Directory.在客戶端(桌面)應(yīng)用程序中,用戶輸入其憑據(jù)并進(jìn)行身份驗(yàn)證以訪問(wèn) REST 服務(wù).我正在使用最新版本的 Active Directory 身份驗(yàn)證庫(kù).在我的場(chǎng)景中,我希望用戶插入他的憑據(jù)一次,因此我存儲(chǔ)刷新令牌并通過(guò)調(diào)用 AuthenticationContext 對(duì)象的 AcquireTokenByRefreshToken 方法使用它來(lái)更新訪問(wèn)令牌.我的問(wèn)題是:刷新令牌會(huì)過(guò)期嗎?我可以在獲得刷新令牌幾天或幾周后使用它嗎?
I am experimenting with Windows Azure Active Directory. In a client (desktop) application the user enter his credentials and authenticate to access a REST service. I'm using latest version of Active Directory Authentication Library. In my scenario I want that the user insert his credentials one time, so I store the refresh Token and use it to renew the access Token by calling AcquireTokenByRefreshToken method of AuthenticationContext object. My question is : Will the refreshtoken expire? Can I use the refreshtoken days or weeks after I obtained it?
推薦答案
是的,Refresh Token 確實(shí)過(guò)期了..我不確定,但我相信你可以在 WAAD 的設(shè)置中設(shè)置 TTL 或 token 的過(guò)期時(shí)間天藍(lán)色的屬性.我必須檢查一下,但我目前無(wú)法訪問(wèn) Azure.
Yes, the Refresh Token does expire.. I am not sure, but I believe you can set the TTL or expiration of the token in the setup of the WAAD properties on azure. I have to check, but I am not where I can access Azure at the moment.
這篇關(guān)于Windows Azure Active Directory - refreshtoken 過(guò)期的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!