Commit Graph

40869 Commits

Author SHA1 Message Date
William Godbe 01429973ee
[release/3.1] Pass access token as query string when running SignalR in the browser (#20466)
* Pass access token as query string when running SignalR in the browser

* WEBASSEMBLY -> BROWSER
2020-04-14 12:59:06 -07:00
dotnet-maestro[bot] 8dc0b49ea7
[release/3.1] Update dependencies from dotnet/arcade (#20815)
* Update dependencies from https://github.com/dotnet/arcade build 20200413.4

- Microsoft.DotNet.Arcade.Sdk: 1.0.0-beta.20113.5 -> 1.0.0-beta.20213.4
- Microsoft.DotNet.GenAPI: 1.0.0-beta.20113.5 -> 1.0.0-beta.20213.4
- Microsoft.DotNet.Helix.Sdk: 2.0.0-beta.20113.5 -> 2.0.0-beta.20213.4

Dependency coherency updates

- Microsoft.AspNetCore.Analyzer.Testing: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.BenchmarkRunner.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ActivatorUtilities.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.CommandLineUtils.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.HashCodeCombiner.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.HostFactoryResolver.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.Logging.Testing: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ParameterDefaultValue.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.TypeNameHelper.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.Extensions.ValueStopwatch.Sources: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.NETCore.App.Internal: 3.1.4-servicing.20181.2 -> 3.1.4-servicing.20202.1 (parent: Microsoft.Extensions.Logging)
- Internal.AspNetCore.Analyzers: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)
- Microsoft.AspNetCore.Testing: 3.1.4-servicing.20181.5 -> 3.1.4-servicing.20202.2 (parent: Microsoft.EntityFrameworkCore)

* Fixup nuget.config

* Only update from Arcade

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: William Godbe <wigodbe@microsoft.com>
2020-04-14 19:58:09 +00:00
dotnet-bot e3bd613f37 Merge in 'release/3.1' changes 2020-04-14 18:01:07 +00:00
William Godbe 8218d6e0e7
Fix various "Type or namespace not found" errors (#20736)
* Add manual packageReferences where needed

* Add more explicit packageRefs

* Fix typo

* undo changes to blazor.server.js

* Fix typo

* Don't gen ref assemblies in CodeCheck
2020-04-14 10:57:26 -07:00
Pranav Krishnamoorthy 8d09403118 Merged PR 7268: Avoid caching JsonSerializer
Avoid caching JsonSerializer
2020-04-14 17:49:57 +00:00
Daniel Roth 468af978a3 Update Blazor WebAssembly survey link for 3.2.0-preview5 2020-04-14 10:11:55 -07:00
Pranav K 9dda113d60 Make Ignitor tests flaky 2020-04-14 09:37:09 -07:00
Pranav K f3a1fb6ad3 Fixups 2020-04-14 09:37:09 -07:00
Safia Abdalla b289633533 Do not override existing web.config during IIS publish 2020-04-14 09:37:09 -07:00
Pranav K 38285eb9ba
Pin shared fx version to 3.1.0 (#20802) 2020-04-14 09:36:40 -07:00
Pranav K 1e70883e87
Create a ref-assembly package for HttpHandler (#20382)
* Create a ref-assembly package for HttpHandler

Fixes #19202
2020-04-13 14:07:15 -07:00
Steve Sanderson 05990683cf
Unconditionally enable razor pages in hosted template. Fixes #20791 (#20792) 2020-04-13 17:53:54 +01:00
Pranav K 17b4bc2b6d
Merge pull request #20749 from dotnet/blazor-wasm-preview5
Blazor wasm preview5
2020-04-13 09:18:31 -07:00
Pranav K 0dda6426bc
Update to preview5 (#20723) 2020-04-13 09:15:25 -07:00
Javier Calvarro Nelson 546b52004c
[Blazor][Wasm] Adds HttpMessageHandler to automatically attach tokens to outgoing requests (#20682)
* Adds an authorization handler for integration with HttpClient in different scnearios.
* Adds a message handler to streamline calling protected resources on the same base address.
2020-04-13 04:27:53 -07:00
Pranav K cc0407877f
Merge branch 'blazor-wasm' into blazor-wasm-preview5 2020-04-10 21:49:10 -07:00
dotnet-maestro[bot] 4a2b5a5e32
Update dependencies from https://github.com/dotnet/corefx build 20200410.3 (#20739)
- System.Net.Http.Json: 3.2.0-preview4.20177.1 -> 3.2.0-preview5.20210.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2020-04-10 23:10:37 +00:00
dotnet-bot a22e71fff9 Merge in 'release/3.1' changes 2020-04-10 19:26:55 +00:00
Pranav K e4b9a28416 Turn off SDL validation 2020-04-10 12:25:34 -07:00
dotnet-maestro[bot] 294c2cf07c Update dependencies from https://github.com/dotnet/blazor build 20200410.1
- Microsoft.AspNetCore.Components.WebAssembly.Runtime: 3.2.0-preview4.20205.1 -> 3.2.0-preview5.20210.1
2020-04-10 11:08:41 -07:00
Safia Abdalla c4703acfa7
Enable reading and editing from same Configuration object (#20647) 2020-04-10 09:59:05 -07:00
dotnet-bot 7633def913 Merge in 'release/3.1' changes 2020-04-09 23:02:44 +00:00
William Godbe 546640876f
Pin 2 CoreFx dependencies (#20695) 2020-04-09 16:01:28 -07:00
Javier Calvarro Nelson 43bd9dbf3e
[Blazor][Wasm] API review feedback (#20652)
* UserFactory->AccountClaimsPrincipalFactory
* Change constants to static readonly
* Make applicationpaths provider and RemoteAuthenticatorViewCore dependencies internal
* Change collection types, make properties get only where possible
* Change state constraint to extend RemoteAuthenticationState
2020-04-08 16:08:43 -07:00
Artak 93eec70bb8
Added `aspnet-blazor-eng` as a code-owner for the `src/Components` (#20593)
* Added `aspnet-blazor-eng` as a code-owner for the `src/Components`

* Fixed the alias
2020-04-07 00:51:44 +00:00
dotnet-bot a9d1e2a26f Merge in 'release/3.1' changes 2020-04-06 23:20:44 +00:00
Doug Bunting 31203f0a99
Merge/release/2.1 to release/3.1 (#20578)
- no-op merge
2020-04-06 16:17:50 -07:00
Doug Bunting bf61530887
Merge remote-tracking branch 'origin/release/2.1' into merge/release/2.1-to-release/3.1 2020-04-06 16:15:32 -07:00
Javier Calvarro Nelson f34ef732d2
[Blazor][Wasm] Auth cleanups (#20587)
* Avoid using query parameter when passing messages to the error UI.
* Adds an additional parameter to automatically perform the redirect.
* Fix provisioning additional tokens in MACWA.
* Fix create solution with spaces
* Cleanup Msal startup APIs.
* Rename UserFactory -> AccountClaimsPrincipalFactory
2020-04-06 16:07:17 -07:00
Steve Sanderson 3224092fdd
Update ws-proxy sources to match Mono commit c5149e31b4d7c (#20579) 2020-04-06 22:52:14 +01:00
dotnet-maestro[bot] 96e70ebe0e
[blazor-wasm] Update dependencies from dotnet/blazor dotnet/arcade (#20531)
* Update dependencies from https://github.com/dotnet/blazor build 20200403.1

- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview4.20203.1

* Update dependencies from https://github.com/dotnet/blazor build 20200404.1

- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview4.20204.1

* Update dependencies from https://github.com/dotnet/blazor build 20200405.1

- Microsoft.AspNetCore.Components.WebAssembly.Runtime - 3.2.0-preview4.20205.1

* Update dependencies from https://github.com/dotnet/arcade build 20200402.9

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.20202.9
- Microsoft.DotNet.GenAPI - 1.0.0-beta.20202.9
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.20202.9

* Add dotnet-tools

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-04-06 14:08:17 -07:00
Artak c2afc704a6
Enable doc comments generation (#20564)
Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-04-06 10:41:28 -07:00
Pranav K 351eba767c
Cleanup Blazor standalone publish output (#20470)
* Remove stray content from Blazor's publish output.
* Introduce BlazorPrunePublishOutput as a way for users to opt-out of this.

Fixes https://github.com/dotnet/aspnetcore/issues/17018
2020-04-06 08:50:27 -07:00
Javier Calvarro Nelson 8232c6a4d8
[Fixes #19644][Blazor] Support brotli compression for framework files (#20363)
* [Blazor] Support brotli compression for framework files
* Adds a new tool to the Blazor.Build package to perform brotli compression.
* Performs brotli compression at publish time
* Centralizes hashing computation in one place and creates hash files for
  performing incremental compilations
2020-04-06 08:29:24 -07:00
dotnet-bot a68e5e2c42 Merge in 'release/3.1' changes 2020-04-05 22:31:12 +00:00
Doug Bunting 5019088694
[3.1] Remove Code_check job from publish-build-assets.yml `dependsOn` (#20558)
- nit: remove redundant conditions for easier reading
2020-04-05 15:29:43 -07:00
dotnet-bot 95e1891b7b Merge in 'release/3.1' changes 2020-04-05 03:20:02 +00:00
Doug Bunting 27aa26ef4b [release/3.1] Don't run Code Check in official builds 2020-04-04 20:18:43 -07:00
Javier Calvarro Nelson fd9c786165
[Blazor] More auth fixes (#20192)
* Introduces customization options for mapping user claims principals.
* Supports login/logout flows extensibility.
* Improves E2E test reliability
* Improves reliability on the AuthenticationService
* Improves the experience by trying to silently log-in users on startup.
* Avoids loading the Blazor application when within a hidden iframe.
2020-04-04 04:06:25 -07:00
Matt Mitchell 1aa1069bbf
Update package baseline (#20527) 2020-04-03 14:42:15 -07:00
Safia Abdalla e67e7a08ca
Remove WebAssemblyLoggerFactory and refactor logging setup (#20432)
**Changes in this PR**
 - Replaces `WebAssemblyLoggerFactory` with `LoggerFactory` from logging extensions package
 - Moves WebAssemblyConsoleLogger and PrependMessageLogger to provider model

Now that we are using the standard `LoggerFactory` support for config options like `SetMinimumLevel` and `AddProvider` is available.

Compared to what is currently in the `blazor-wasm` branch, the changes in this PR add an additional 12 kb to the total compressed size.

Addresses #19737
2020-04-03 10:22:05 -07:00
Pranav K 41a9588353
Move specifying default Blazor linker config to props file (#20458)
Fixes #20443
2020-04-03 09:04:38 -07:00
Pranav K b906b1033c
Preserve files being published to the publish root and the wwwroot (#19938)
* Preserve files being published to the publish root and the wwwroot

Fixes https://github.com/dotnet/aspnetcore/issues/19926
2020-04-02 16:29:04 -07:00
Pranav K 1b2cb0b93c
Apply suggestions from code review
Co-Authored-By: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-04-02 15:21:42 -07:00
Pranav K a127eb86da
Fixup 2020-04-02 15:14:48 -07:00
Pranav K 861e88c61b
Fixup tests 2020-04-02 15:14:44 -07:00
Pranav K a7c2d25ffa
Remove constraints on WebAssembly.Build package
Make Blazor-Wasm projects not-packable by default
2020-04-02 15:13:35 -07:00
Pranav K 0c614ff9c7
Fixup 2020-04-02 15:13:34 -07:00
Pranav K a9494214fa
Preserve files being published to the publish root and the wwwroot
Fixes https://github.com/dotnet/aspnetcore/issues/19926
2020-04-02 15:13:33 -07:00
James Newton-King b53179267a Merged PR 6773: Fix routing policy exit destination
**Description**

An infinite loop can happen in routing if there is a catch all route with host name matching.

This problem is caused by the DFA matcher builder giving an incorrect exit destination to policies. Currently the exit destination is the catch all state, so the policy will transition to itself when there is no match. It will run again, transition to itself again, run again, etc. This causes the policy to run forever.

What should happen is the host name policy fails, it transitions to the final state with no candidates, and the route matcher does not match any endpoints. The browser is returned a 404 status.

**Customer Impact**

This problem shows up in this situation:
1. If a customer has configured a catch all route in their app
2. The catch all route has host matching
3. A browser makes a request to the server that matches the catch all route but doesn't match the host name

The route matcher will run forever, using up a threadpool thread. When threadpool threads are exhausted the server will stop responding.

**Regression?**

No.

**Risk**

Medium. The fix is simple but route matching is complex, and routing runs with every request.
2020-04-02 20:30:18 +00:00