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

[Bug] Unable to run AcquireTokenInteractive on iOS versions < 13 since version 4.8.1 #1621

Closed
steffos opened this issue Feb 10, 2020 · 4 comments
Assignees
Labels
Milestone

Comments

@steffos
Copy link

steffos commented Feb 10, 2020

Which Version of MSAL are you using ?
MSAL 4.8.1

Platform
Xamarin.Forms (iOS)

What authentication flow has the issue?
Mobile Interactive

Repro
Run 4.8.1 with AcquireTokenInteractive on iOS 10 and it will crash (4.7.1 will work).

Expected behavior
Login view should appear.

Actual behavior
App crashes with the following message:
Foundation.MonoTouchException
Message=Objective-C exception thrown. Name: NSInvalidArgumentException Reason: -[WKWebViewConfiguration defaultWebpagePreferences]: unrecognized selector sent to instance 0x1703a1340

Possible Solution
Not solution, but possible cause: 'defaultWebpagePreferences' was introduced in iOS 13 and therefore isn't available on ios 10. You can find reference to 'defaultWebpagePreferences' from this recent commit: b3e4397#diff-c49dff8cf6a7d53678d8a220af373ba1

Fix that and I reckon the problem should be gone.

@henrik-me henrik-me added this to the 4.9 milestone Feb 12, 2020
@henrik-me
Copy link
Contributor

@steffos : Are you saying any interactive request is failing? Can you pls. provide repro steps?

@steffos
Copy link
Author

steffos commented Feb 12, 2020

What I missed mentioning in description above is that this is related to the embedded web view option.

Retro steps:

@jennyf19
Copy link
Collaborator

@steffos Fix is in master now.

@jennyf19 jennyf19 modified the milestones: 4.9, 4.8.2 Feb 14, 2020
@jennyf19
Copy link
Collaborator

@steffos Released in 4.8.2

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

3 participants