Skip to content
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

microsoft-authentication-library-for-objc Returning Account name as nil #1357

Closed
alexxxx12 opened this issue Aug 5, 2021 · 4 comments
Closed
Assignees
Labels

Comments

@alexxxx12
Copy link

Hi Team,
We are in the middle of integrating the Microsoft-authentication-library with our Enterprise App, but the ios app is returning current and previous Accounts as nil. Even though we have installed Microsoft Authenticator and other Microsoft Apps are working fine.

Here are details of the environment: Version 12.5 (12E262)
MSAL Package using: Swift Dependency Manager.
let me know if you need further information .love to provide the sample code we are using, even though it's primarily derived from your sample code provided.
thanks.

unnamed

@kaisong1990 kaisong1990 self-assigned this Aug 5, 2021
@kaisong1990
Copy link
Contributor

@alexxxx12 Could you provide more info? Did you not get any account, or you were able to get account, but account name is nil?

Also, the screenshot shows as sign out page, so not sure which steps you were in.

Make sure your app has correct setup by following here

@alexxxx12
Copy link
Author

Hi Kai,
No, we do not see any account(current and previous); the sign-out button is only active after installing the Microsoft Authenticator app, which is weird. I have also added the sample code (but I need to remove all the identifiers due to privacy and code protection)
We have opened an internal ticket with a Microsoft Azure team as well.

AzureAD.zip

@stale
Copy link

stale bot commented Sep 3, 2021

This issue has been automatically marked as stale because it has not had recent activity. Please provide additional information if requested. Thank you for your contributions.

@stale stale bot added the stale-issue label Sep 3, 2021
@kaisong1990
Copy link
Contributor

@alexxxx12 As discussed today, the current account is the account you have signed in to the current app, not the account which was signed in to other applications (eg Outlook.Teams). You will need to call acquire token interactively first.

Closing this for now and feel free to reopen for other questions

@stale stale bot removed the stale-issue label Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants