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

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

相关文档推荐

The reference assemblies for framework .NETCore, Version=v5.0 were not found(未找到框架 .NETCore,Version=v5.0 的参考程序集)
Good-practices: How to reuse .csproj and .sln files to create your MSBuild script for CI?(良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 MSBuild 脚本?)
Run an MSBuild target only if project is actually built(仅在实际构建项目时运行 MSBuild 目标)
MS-Build BeforeBuild not firing(MS-Build BeforeBuild 未触发)
Build project with Microsoft.Build API(使用 Microsoft.Build API 构建项目)
Add a msbuild task that runs after building a .NET Core project in Visual Studio 2017 RC(添加在 Visual Studio 2017 RC 中构建 .NET Core 项目后运行的 msbuild 任务)