问题
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