Azure-Samples / ms-identity-mobile-apple-swift-objc

An iOS sample in Swift that authenticates Microsoft Account and Azure AD users and calls the Graph API using OAuth 2.0
https://aka.ms/aaddev
74 stars 37 forks source link

[MOVED] Signing in as 2 users, when switching users, the second sign in returns credentials for the first user. #72

Closed mmacy closed 4 years ago

mmacy commented 4 years ago

Moved here from https://github.com/MicrosoftDocs/azure-docs/issues/42546

@azav, this has been confirmed by @brandwe to be a bug in this sample. I've moved your issue here and will close the issue in the docs repository.

The sample currently linked-to in the source doc is:

https://github.com/Azure-Samples/active-directory-ios-swift-native-v2/archive/master.zip

Issue detail:

Using this sample app, we set up auth against our non prod end point and entered two users.

When switching users, signing in as the second user for the first time works as expected. Signing in as the second user for the second time returns the email credential for the first user.

Also, the sign out button always returns a keychain error.

Keychain find status: -25300 TID=4607242 MSAL 1.0.0 iOS Sim 12.2 [2019-11-11 15:35:40] (Default accessor) No accounts found in default accessor.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

oldalton commented 4 years ago

Looks like a duplicate of https://github.com/AzureAD/microsoft-authentication-library-for-objc/issues/560 based on the symptoms. Please take a look at the resolution in the linked item and let me know if you are still facing issues. Thanks.

mmacy commented 4 years ago

Closing due to inactivity.

@azav, if you are still encountering this issue after reviewing https://github.com/AzureAD/microsoft-authentication-library-for-objc/issues/560, please open a new issue. Thanks.