Windows Azure中的Active Directory - refreshtoken到期 [英] Windows Azure Active Directory - expiration of refreshtoken

查看:160
本文介绍了Windows Azure中的Active Directory - refreshtoken到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用Windows Azure Active Directory中。在客户端(台式机)应用程序的用户输入自己的凭证和验证访问REST服务。我使用Active Directory验证库的最新版本。在我的情况我想用户插入他的凭据一次,所以我存储刷新令牌,并用它调用AuthenticationContext对象AcquireTokenByRefreshToken方法来更新访问令牌。 我的问题是:请问refreshtoken过期吗?我可以使用refreshtoken天之后,​​我得到这周?

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?

推荐答案

是的,刷新令牌会过期..我不知道,但我相信你可以设置令牌的TTL或过期的WAAD的设置在蔚蓝的属性。我要检查,但我不是,我当时可以访问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到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆