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

Error when changing the MSALAuthority URL on iOS #2434

Open
pc-morandi opened this issue Dec 17, 2024 · 2 comments
Open

Error when changing the MSALAuthority URL on iOS #2434

pc-morandi opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels

Comments

@pc-morandi
Copy link

I am encountering an issue when changing the MSALAuthority URL in an iOS application. The error occurs because the environment is different from the previous one, and I receive the following error message:
Could not acquire token: Error $Domain=MSALErrorDomain$ $Code=-50002$ "(null)" UserInfo={$MSALErrorDescriptionKey=No$ token matching arguments found in the cache, user interaction is required, $MSALCorrelationIDKey=549E6D93-FC68-4BA5-9E1D-B13BD87EE102$}
Steps to Reproduce:
Change the MSALAuthority URL in the iOS application to a new environment.
Attempt to acquire an authentication token.
Expected Result:
The application should be able to acquire a new authentication token without errors.
Actual Result:
The application fails to acquire a token and presents the error message mentioned above.
Additional Information:
MSAL Version: 1.6.2
iOS Version: 17.2

@antonioalwan
Copy link
Contributor

Hi @pc-morandi, did you implement the acquireTokenInteractively as explained here.

@pc-morandi
Copy link
Author

I had implemented this. the cached check if Authority is the same, but in this project we changed the url.

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