-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removeAll(forClient: ) does not work on update 2.7.3 #1341
Comments
Hi. When you say it doesn't work, can you please provide more details on the exact issue you're facing? Thanks. |
Please make sure you provide a reference to ADAuthenticationError so you can get the error back if something failed:
|
Hi, Thanks |
Could you please send your logs to this email [email protected]? |
Any update on this situation? I have been experiencing the same issues, using the same method. |
@nitaeduard, we weren't able to reproduce it ourself. Would you be able to provide ADAL logs for us, so we can investigate further? Please see instructions on logging here. Please send logs to [email protected]. |
Alternatively to logs, you can execute following code and copy the output:
Note that you need to replace @"myclient_id" with your own client id. |
@AndreaGrantu, can you confirm that your issue also reproduces with ADFS authentication? |
Yes, it is |
Great, so it should be fixed by ADAL 2.7.7 |
This should be now fixed in ADAL 2.7.7 release. Please retry and let us know if it's fixed now. |
Yes, it is fixed in version 2.7.7.
Thank you.
On 23 Dec 2018, at 02:09, Olga Dalton <[email protected]<mailto:[email protected]>> wrote:
This should be now fixed in ADAL 2.7.7 release<https://github.com/AzureAD/azure-activedirectory-library-for-objc/releases/tag/2.7.7>. Please retry and let us know if it's fixed now.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#1341 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AG8X2R_B724LMQszZxKy6qrQleyuqUIuks5u7te4gaJpZM4YQp3f>.
|
Hi. This is not working for versions 4.0.x (recently working with 4.0.3). ADKeychainTokenCache.defaultKeychain().removeAll(forClientId: ServiceConfig.clientId, error: nil) doesn't clean the token cache. We should't use the 2.7.x version as it's using UIWebView which is deprecated and will be reject on Apple Review. We also can't use MSAL, bacause we authenticate the internal company users with AD, not ADB2C. All best. |
Hi @jakkornat. MSAL also supports AAD flows, just like ADAL. |
Yes, the problem still exists. |
@oldalton If you mean that the web view is appearing for a while and then it disappear and the user is logged in again with previous credentials than yes, it does. |
@oldalton any update on this? |
Hi @jakkornat. Sorry for a delay. I think this is because of cookies in the WebView. ADAL 4.x uses WKWebView, and 2.7.x UIWebView. Cookies work differently between those two. ADAL also tries to share datastore between multiple WKWebView instances to maximize SSO. There're a few things you can try out:
Let me know if any of these worked. |
@oldalton thanks a lot! Have just checked also with a clean WKWebView instance, which also works if we want to manage this by ourselves. Thanks a lot! Note: Tested at ADAL 4.0.3, Xcode 11, iOS 13 / iPadOS 13 |
Hi,
I recently update ADAL from 2.6.2 to 2.7.3 and the first thing I noticed is that the
ADKeychainTokenCache.defaultKeychain().removeAlll(forClientId: client, error: nil) does not work and don't even catch any error., while everything is ok on 2.6.2 version.
How to solve this?
Thanks!
Andrea
The text was updated successfully, but these errors were encountered: