Commit Graph

40372 Commits

Author SHA1 Message Date
dotnet-maestro[bot] 573a8a83f5
Update dependencies from https://github.com/dotnet/arcade build 20200224.2 (#19495)
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.20124.2
- Microsoft.DotNet.GenAPI - 1.0.0-beta.20124.2
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.20124.2
2020-03-02 13:39:22 +00:00
dotnet-maestro[bot] b65cec045a
Update dependencies from https://github.com/dotnet/blazor build 20200228.1 (#19456)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20128.1
2020-02-29 00:15:31 +00:00
Pranav K 555cf52454
Initialize the runtime state correctly for debugging (#19426)
* Initialize the runtime state correctly for debugging

On startup the DebugProxy needs to know when the runtime
has initialized enough to be able to begin interaction
this is accomplished by breaking in mono_wasm_runtime_ready()
which the Proxy sees does initialization and then resumes from.
Simply setting mono_wasm_runtime_is_ready breaks that logic,
but even worse it appears that the variable is linked out
in the release version

* Regen webassembly.js

Co-authored-by: Larry Ewing <lewing@microsoft.com>
2020-02-28 08:17:24 -08:00
Steve Sanderson 0216ca2086
Stop service worker interfering with Identity UI (#19400) 2020-02-27 22:42:44 -08:00
dotnet-maestro[bot] 252576df5a
Update dependencies from https://github.com/dotnet/blazor build 20200227.1 (#19423)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20127.1
2020-02-28 00:05:34 +00:00
Javier Calvarro Nelson 2b72b637bf
[Blazor][Wasm] Add missing state callbacks (#19405)
* Adds missing callback when logging in and logging out successfully
2020-02-27 09:48:48 -08:00
Steve Sanderson eed3605ae5
In debug mode, don't enable the linker by default (plus other minor build fixes) (#19374)
* In debug mode, don't enable the linker by default

* Fixup

* Update Blazor.MonoRuntime.targets

* Ensure we have a true/false value. Stop inferring from BlazorLinkOnBuild.

* Avoid doing work for ServiceWorkerAssetsManifest when it's not being used

* React to BlazorLinkOnBuild->BlazorWebAssemblyEnableLinking rename

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-02-27 11:49:47 +00:00
dotnet-maestro[bot] 4319bbf722
Update dependencies from https://github.com/dotnet/blazor build 20200226.1 (#19387)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20126.1
2020-02-26 23:30:36 +00:00
Steve Sanderson d9ed5166ff Cache authentication configuration in IndividualLocalAuth && Hosted case 2020-02-26 17:43:03 +00:00
Steve Sanderson 90d7d0b368 Include favicon in service worker cache 2020-02-26 17:43:03 +00:00
Javier Calvarro Nelson b2d01f80d3
[Blazor] Fix error handling in AuthorizeService.ts 2020-02-26 09:08:38 -08:00
Javier Calvarro Nelson a52e708e55
[Blazor] Add instructions to configure the authority when it is missing
* For individual auth cases, when creating the template from Visual Studio there is no way to provide parameters.
* This change adds a message in the index.html to indicate the steps that need to be followed.
2020-02-26 07:39:28 -08:00
Steve Sanderson f3633f3c38
Remove unused DevToolsClient.cs source file (#19364) 2020-02-26 15:33:31 +00:00
dotnet-maestro[bot] 190e32370f
Update dependencies from https://github.com/dotnet/blazor build 20200225.2 (#19355)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20125.2
2020-02-26 02:30:31 +00:00
dotnet-maestro[bot] 74cd830fda
Update dependencies from https://github.com/dotnet/blazor build 20200225.1 (#19351)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20125.1
2020-02-25 22:55:34 +00:00
Pranav K d8ff2743a0
Target the Razor SDK in Driver app (#19344)
Fixes https://github.com/dotnet/aspnetcore/issues/19307
2020-02-25 13:33:49 -08:00
Artak 20a5d7a086
Include `inspectUri` in the launch profiles (#19308) 2020-02-25 10:33:47 -08:00
Steve Sanderson 34b165a0ef
Update Mono debug proxy (#19335)
* Update to match Mono sources at a8d34b2

* Update to match Mono sources at fafa41f

* Update to match Mono sources at ed012b6

* Change class/struct/enum types to internal

* Use ILogger in proxy code

* Update to match https://github.com/mono/mono/pull/19026
2020-02-25 14:51:46 +00:00
Steve Sanderson bfcf72dfdf
Fix boot json on mac/linux (#19332) 2020-02-25 11:48:31 +00:00
dotnet-maestro[bot] 461051ec78
Update dependencies from https://github.com/dotnet/blazor build 20200224.1 (#19301)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20124.1
2020-02-24 22:30:33 +00:00
Javier Calvarro Nelson 226f461806
[Blazor] Remove compression middleware from the template (#19285)
Remove response compression from the template
2020-02-24 11:03:00 -08:00
Ryan Nowak 9c16db3e89 Add service provider factory support
Fixes: #18814

This adds back support on the Blazor WASM Host for using
ISerivceProviderFactory<>.

We previously had this support when the Blazor WASM host was a clone of
generic host, but I accidentally lost it when simplifying the host
(sorry :( ).
2020-02-21 16:28:17 -08:00
dotnet-maestro[bot] e8d2d562aa
Update dependencies from https://github.com/dotnet/blazor build 20200221.1 (#19251)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20121.1
2020-02-21 22:36:03 +00:00
Pranav K 7ba8d06717
BlazorWASM: API review (#19219)
Fixes https://github.com/dotnet/aspnetcore/issues/13174
2020-02-21 12:58:02 -08:00
Steve Sanderson 6fe946e633
Blazor WebAssembly caching fixes (#19235)
* Support logging errors that happen really early

* Tolerate all the ways caching might be unavailable

* Include dotnet.js in blazor.boot.json

* Reorganize boot manifest to categorize files by role, not just by filename extension

* Enable cache-busting and SRI check on dotnet.js

* Change cache-busting to vary filename, not using querystring. Needed to make PWA manifest still work.
2020-02-21 17:35:36 +00:00
Javier Calvarro Nelson c9c06f573d
[Blazor] Adds support for statically pre-compressing assets using gzip (#19157)
* Adds a task to perform gzip compession.
* Gzips framework files incrementally
* Serves pre-compressed versions of the framework files when possible.
2020-02-21 09:32:07 -08:00
Javier Calvarro Nelson 0541e19ac2
[Blazor][Wasm] Adds support for AAD and AADB2C using msal.js (#19190)
* Adds a new library Microsoft.Authentication.WebAssembly.Msal that handles authentication for Blazor Webassembly applications using msal.js
2020-02-21 09:12:36 -08:00
Pranav K 4715de45eb
Fixup RuntimeDependenciesResolver test (#19208)
Fixes https://github.com/dotnet/aspnetcore/issues/12059
2020-02-21 08:35:20 -08:00
Javier Calvarro Nelson 9ded8e17d4
Change MapBlazorWebAssemblyApplication to UseBlazorFrameworkFiles (#19198) 2020-02-21 04:20:41 -08:00
dotnet-maestro[bot] c5f532511c
Update dependencies from https://github.com/dotnet/blazor build 20200220.1 (#19210)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20120.1
2020-02-20 22:35:30 +00:00
Steve Sanderson 06def5cee6 Workaround CacheStorage API bug 2020-02-20 21:31:19 +00:00
Marlon Regenhardt 6a85855fbb
[Blazor][Wasm] Move HttpClient from default services to Program.Main (#19119)
* [Blazor][Wasm] Move HttpClient from default services to extension method (#16929)

* Apply suggestions from code review

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-02-20 10:47:49 -08:00
Steve Sanderson e9ccd7fe08 Only the PWA template should produce ServiceWorkerAssetsManifest 2020-02-20 12:16:27 +00:00
Javier Calvarro Nelson c39bc6a6bd
[Blazor] Move to MapBlazorWebAssemblyApplication (#19147)
Move to MapBlazorWebAssemblyApplication as the way to map blazor files into a hosted application.
2020-02-19 23:56:43 -08:00
dotnet-maestro[bot] 09ee6a79b4
Update dependencies from https://github.com/dotnet/blazor build 20200219.2 (#19169)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20119.2
2020-02-19 22:25:34 +00:00
dotnet-maestro[bot] 2f6938e6c1
Update dependencies from https://github.com/dotnet/blazor build 20200219.1 (#19167)
- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview2.20119.1
2020-02-19 21:45:30 +00:00
Artak 6342a812f3
Update launchSettings.json for BlazorWASM (#19136)
* Update launchSettings.json for BlazorWASM

* Remove the `useWebAssemblyDebugging` setting as its no longer needed
2020-02-19 13:25:21 -08:00
Pranav K ffc7279369
Use RTM version of the SDK (#19130) 2020-02-19 11:17:10 -08:00
Pranav K 1dfbe75e9f
Rename Blazor.Mono -> Components.WebAssembly.Runtime (#19124)
* Rename Blazor.Mono -> Components.WebAssembly.Runtime
2020-02-19 09:06:50 -08:00
Steve Sanderson 38f3267208 Fix token in PWA manifest 2020-02-19 16:17:02 +00:00
Javier Calvarro Nelson 0e155fd7ca
[Fixes #12588][Blazor] Move Blazor to use Static Web Assets (#18409)
* [Blazor] Move Blazor to use Static Web Assets
* Plugs-in Blazor wasm through the static web assets infrastructure.
* Avoids the need for a custom Blazor.config file.
* Removes broken auto-rebuild and debug support.
* Removes unnecessary server-side Blazor helpers.
2020-02-19 04:05:03 -08:00
Pranav K 52c4598618
Fixup 2020-02-18 15:26:15 -08:00
Pranav K d90f5efa3c
Update WASM Runtime 2020-02-18 15:14:04 -08:00
Pranav K 92409e2e57 Make the dev-server log less (#18971)
* Make the dev-server log less
* Allow loading a user configured settings file
2020-02-18 15:08:30 -08:00
Pranav K 31f63d9e72 Add a perf scenario involing nested components + editing
* Adds additional scenarios to address https://github.com/dotnet/aspnetcore/issues/17011
* Include commit hash so we can track the build of Blazor WASM associated with a perf run
* Port some infrastructure fixes from master

Fixes https://github.com/dotnet/aspnetcore/issues/17011
2020-02-18 15:08:30 -08:00
Pranav K e521205b5d
Rename Blazor.Mono -> Components.WebAssembly.Runtime 2020-02-18 14:16:59 -08:00
Pranav K c935e9aa2d
Blazor WebAssembly package renames (#19026)
Fixes https://github.com/dotnet/aspnetcore/issues/18384
2020-02-18 10:54:28 -08:00
Javier Calvarro Nelson 07098b3d97
[Blazor][Wasm] Template changes to support auth in Blazor wasm (#18933)
* [Blazor] Adds a project template option for individual auth
* Handles hosted scenarios with Identity Server.
* Handles non-hosted scenarios with oidc-client.js.
* Handles AAD and B2C scenarios with an MSAL library (disabled for now).
2020-02-17 17:27:21 -08:00
Javier Calvarro Nelson 0dbb01bd8c
[Blazor] Adds an authentication library for Blazor webassembly (#18851)
* Adds a Microsoft.AspNetCore.Components.WebAssembly.Authentication
  library for performing authentication in Blazor webassembly.
* Includes a default implementation that supports OIDC capable IdPs
  using oidc-client.js
* Includes multiple primitives to deal with authentication flows and
  supports acquiring access tokens to call APIs.
  * RemoteAuthenticatorView is responsible for handling authentication
    operations at the user interface level.
  * RemoteAuthenticatorService is responsible for handling the lower
    level authentication details by using JavaScript interop to interact
    with the underlying javascript library implementing the auth protocol.
  * SignOutSessionStateManager handles CSRF protection for the logout
    path.
  * IAccessTokenProvider handles provisioning access tokens to call APIs.
2020-02-17 14:36:57 -08:00
Steve Sanderson 4628dfb005
Cache assemblies and wasm using content hashes (#18859) 2020-02-17 17:17:44 +00:00