How can I logout using the new release of ADALiOS 2.1

和自甴很熟 提交于 2019-12-13 06:09:39

问题


Or how can I access internal default cache store?

How can I clear default cache store?

Thanks,

Jignesh.


回答1:


In ADAL iOS 2.1, three functions are provided for deleting token items in cache:

  • (BOOL)removeItem:(nonnull ADTokenCacheItem *)item error:(ADAuthenticationError * __nullable __autoreleasing * __nullable)error;

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

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

You can take a look at the following file :)

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



来源:https://stackoverflow.com/questions/36874719/how-can-i-logout-using-the-new-release-of-adalios-2-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!