jpanchal
jpanchal

Reputation: 13

How can I logout using the new release of ADALiOS 2.1

Or how can I access internal default cache store?

How can I clear default cache store?

Thanks,

Jignesh.

Upvotes: 0

Views: 491

Answers (1)

jasoncoolmax
jasoncoolmax

Reputation: 71

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

Upvotes: 1

Related Questions