Skip to content

WebView2

Bogdan Gavril edited this page Feb 24, 2021 · 15 revisions

What is WebView2

A modern embedded browser based on Microsoft Edge, capable of performing Windows Hello, log in with FIDO keys etc. This browser replaces the old embedded webview, based on an outdated version of Internet Explorer.

Where is it available?

  • All Windows versions
  • MSAL version 4.28.0 or higher
  • WebView2 Runtime installed on the machine

Changes to call pattern


var pca = PublicClienntApplicationBuilder.Create("client_id")
.WithDesktopFeatures()
.Build()

Behaviour

Embedded WebView Default WebView
NET Fx WebView2, fallback to Legacy Embedded
NET Core WebView2 only Embedded
NET 5 WebView2 only Embedded

Getting started with MSAL.NET

Acquiring tokens

Web Apps / Web APIs / daemon apps

Desktop/Mobile apps

Advanced topics

FAQ

Other resources

Clone this wiki locally