-
Notifications
You must be signed in to change notification settings - Fork 75
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
MSAL confirmation dialog in Xamarin iOS #114
Comments
@JohnLivermore : I think that this is iOS demanding the user to be aware of going to a specific URL. I don't think it can be disabled. |
@JohnLivermore Closing as by-design, we have no control over this dialog. cc: @jmprieur |
Thanks for the clarification. |
@JohnLivermore thanks for asking about it. we've had several customers ask about this. |
@SameerK-MSFT added an API, so you can opt out of seeing this screen now. Option to hide prompt in iOS, when user attempts to login, iOS 13+ shows a prompt to the user. MSAL now provides an option to hide the prompt. To hide the prompt, create an instance of // Hide the privacy prompt
SystemWebViewOptions systemWebViewOptions = new SystemWebViewOptions()
{ iOSHidePrivacyPrompt = true,};
var authResult = await App.PCA.AcquireTokenInteractive(App.Scopes)
.WithParentActivityOrWindow(App.ParentWindow)
.WithSystemWebViewOptions(systemWebViewOptions)
.ExecuteAsync(); This is in version 4.31.0 |
yes, you are right, we should get this fixed. The options should simply be ignored where they do not apply. Until then, you'll have to conditionally add those options, e.g. if (Device.OS == TargetPlatform.iOS)
{
builder = builder.WithSystemWebViewOptions();
} |
We are using the Microsoft MSAL library to authenticate our users. When a user needs to login, they are shown this dialog each time. Is there a way to disable this prompt so the login experience is more seamless?
The text was updated successfully, but these errors were encountered: