問題描述
我正在試驗 Windows Azure Active Directory.在客戶端(桌面)應用程序中,用戶輸入其憑據并進行身份驗證以訪問 REST 服務.我正在使用最新版本的 Active Directory 身份驗證庫.在我的場景中,我希望用戶插入他的憑據一次,因此我存儲刷新令牌并通過調用 AuthenticationContext 對象的 AcquireTokenByRefreshToken 方法使用它來更新訪問令牌.我的問題是:刷新令牌會過期嗎?我可以在獲得刷新令牌幾天或幾周后使用它嗎?
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 確實過期了..我不確定,但我相信你可以在 WAAD 的設置中設置 TTL 或 token 的過期時間天藍色的屬性.我必須檢查一下,但我目前無法訪問 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.
這篇關于Windows Azure Active Directory - refreshtoken 過期的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!