Skip to content

Commit

Permalink
Jennyf/update dev app to handle IsSystemWebviewAvailable (#1323)
Browse files Browse the repository at this point in the history
* add IsSystemWebviewAvailable to dev app

* move back to var
  • Loading branch information
jennyf19 authored Aug 7, 2019
1 parent 65deb83 commit b8c7bea
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/devapps/XamarinDev/XamarinDev/AcquirePage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,14 @@ private async void OnAcquireClickedAsync(object sender, EventArgs e)
acquireResponseTitleLabel.Text = EmptyResult;

var request = App.MsalPublicClient.AcquireTokenInteractive(GetScopes())
.WithPrompt(GetPrompt())
.WithParentActivityOrWindow(App.RootViewController)
.WithUseEmbeddedWebView(true)
.WithExtraQueryParameters(GetExtraQueryParams());
.WithPrompt(GetPrompt())
.WithParentActivityOrWindow(App.RootViewController)
.WithExtraQueryParameters(GetExtraQueryParams());

if (!App.MsalPublicClient.IsSystemWebViewAvailable)
{
request.WithUseEmbeddedWebView(true);
}

var result = await request.ExecuteAsync().ConfigureAwait(true);

Expand Down

0 comments on commit b8c7bea

Please sign in to comment.