问题描述
我正在试验 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 过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!