ios - 如何使用新版 ADALiOS 2.1 注销

标签 ios adal

或者如何访问内部默认缓存存储?

如何清除默认缓存存储?

谢谢,

吉涅什。

最佳答案

在 ADAL iOS 2.1 中,提供了三个函数来删除缓存中的 token 项:

  • (BOOL)removeItem:(非空 ADTokenCacheItem *)item 错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;

  • (BOOL)removeAllForClientId:(NSString * __nonnull)clientId 错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;

  • (BOOL)removeAllForUserId:(NSString * __nonnull)userId clientId:(NSString * __nonnull)clientId 错误:(ADAuthenticationError * __nullable __autoreleasing * __nullable)错误;

你可以看看下面的文件:)

https://github.com/AzureAD/azure-activedirectory-library-for-objc/blob/master/ADAL/src/public/ios/ADKeychainTokenCache.h

关于ios - 如何使用新版 ADALiOS 2.1 注销,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36874719/

相关文章:

ios - iOS 中的富文本编辑器

ios - 尝试显示 UIAlertController 并显示消息 : Terminating app due to uncaught exception 'NSInvalidArgumentException' 时应用程序崩溃

azure - ADAL python 对 Windows 登录用户的支持

c# - 使用 Graph API 在 Azure Active Directory (B2C) 中使用 http post 请求创建新用户

iphone - 在应用程序中的越狱设备上安装应用程序

ios - 三角测量 - 如何找到 3 个球体的交点(iBeacons)

ios - Cordova 与 ConnectyCube 的视频聊天 : can't build on Xcode 9

python-2.7 - 根据类型或类别列出 Microsoft Azure 计算中的 VM 大小

azure - AcquireTokenAsync 返回 "invalid_grant"、 "AADSTS65001"

node.js - 如何使用 ADAL 和 MFA 登录 AAD