Windows Azure Active Directory - refreshtoken 过期

Windows Azure Active Directory - expiration of refreshtoken(Windows Azure Active Directory - refreshtoken 过期)
本文介绍了Windows Azure Active Directory - refreshtoken 过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

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

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
How to store delegates in a List(如何将代表存储在列表中)
How delegates work (in the background)?(代表如何工作(在后台)?)
Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
Func Delegate vs Function(函数委托与函数)
CreateDelegate with unknown types(具有未知类型的 CreateDelegate)