Windows Azure Active Directory - expiration of 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 过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Windows Azure Active Directory - refreshtoken 过期


基础教程推荐
- SSE 浮点算术是否可重现? 2022-01-01
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- c# Math.Sqrt 实现 2022-01-01
- 如何激活MC67中的红灯 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- MS Visual Studio .NET 的替代品 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- rabbitmq 的 REST API 2022-01-01