Commit Graph

38921 Commits

Author SHA1 Message Date
Javier Calvarro Nelson 0a4f42a7e2
Add support for static web assets in blazor client-side (#11042)
* Add support for static web assets in blazor client-side
* Blazor serve use MSBuild data instead of heuristics to run the app
* Remove blazor-client-side app Static Web Assets when hosted in an ASP.NET Core
2019-06-24 17:47:08 +02:00
Ryan Nowak 6ce8a879ae Add dynamic controller/page routes
Adds infrastructure for a common IRouter-based pattern. In this pattern,
an extender subclasses Route to post-process the route values before MVC
action selection run. The new infrastructure duplicates this kind of
experience but based on endpoint routing.

The approach in this PR starts at the bottom... meaning that this is the
most-focused and least-invasive way to implement a feature like this.
Similar to fallback routing, this is a pattern built with matcher
policies and metadata rather than a built-in feature of routing.

It's valuable to point out that this approach uses IActionConstraint to
disambiguate between actions. The other way we could go would be to make
the *other* matcher policy implementations able to do this. This would
mean that whenever you have a dynamic endpoint, you will not by using
the DFA for features like HTTP methods. It also means that we need to go
re-implement a bunch of infrastructure.

This PR also adds the concept of an 'inert' endpoint - a non-Routable
endpoint that's created when fallback/dynamic is in use. This seems like
a cleaner design because we don't start *matching* RouteEndpoint
instances for URLs that don't match. This resolves #8130
2019-06-24 08:08:54 -07:00
David Fowler 5ca92305c2
PR feedback from #11412 (#11474)
- Remove ExpectedMiddlewareCount since everything is middleware now
- Renamed everything adapter to middleware
- Added a regression test for an https scenario
- Don't send client certs for tests that don't expect it
2019-06-23 21:08:10 -07:00
Ryan Nowak 2420d8f0ac Simplify attribute splatting
Removes handling for IEnumerable<KVP<string, string>>. This isn't
something we really need for the main scenario and it MASSIVELY
complicates the codegen part of the feature. Requiring the dictionary to
be an object-valued dictionary should cover the cases we care about.
2019-06-23 20:26:13 -07:00
John Luo 6761dec9c6
Sign Windows zips (#11466) 2019-06-22 19:44:09 -07:00
Chris Ross 3ce6c1dc5b
Consolidate Windows Auth config #10530 (#11421) 2019-06-22 10:39:10 -07:00
Jacques Eloff 6ecfdf2c49
Merge pull request #11453 from aspnet/joeloff/LocUI
Tweak UI layout for non-ENU installs
2019-06-22 00:07:44 -07:00
Chris Ross 4ef204e13b
Remove or make public pubternals for Http #11312 (#11429) 2019-06-21 17:56:53 -07:00
Hao Kung f35564ba06
Move DataProtection and Extensions.Identity to netstandard2.0/2.1 (#11008) 2019-06-21 14:40:42 -07:00
Mikael Mengistu 655c29b7ef
Update Kestrel's dev cert error message (#11430) 2019-06-21 14:28:52 -07:00
Brennan 5b31a9540a
[SignalR] Pass a resource into IPolicyEvaluator for Hub method auth (#11070) 2019-06-21 14:08:50 -07:00
Dylan Dmitri Gray f9aa85a829
Dylan/stack policy (#11293)
* Initial StackPolicy implementation
2019-06-21 11:03:17 -07:00
Jacques Eloff 67e6351e6a Tweak UI layout for non-ENU installs 2019-06-21 09:56:03 -07:00
dotnet-maestro[bot] edf8bbe65d
[master] Update dependencies from aspnet/AspNetCore-Tooling aspnet/Blazor (#11307)
* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190617.1

- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19317.1
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19317.1
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19317.1
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19317.1

* Update dependencies from https://github.com/aspnet/Blazor build 20190617.1

- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview7.19317.1

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190619.3

- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19319.3
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19319.3
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19319.3
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19319.3

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190620.1

- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19320.1
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19320.1
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19320.1
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19320.1

* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190620.3

- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19320.3
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19320.3
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19320.3
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19320.3
2019-06-21 14:44:32 +00:00
John Luo 7f3e2acdac
Use Enterprise Queue to reduce provisioning issues (#11434) 2019-06-20 22:50:25 -07:00
Chris Ross f6c3f9e02a
Avoid calling AuthenticateAsync for IIS out-of-proc #7750 (#11390) 2019-06-20 21:53:09 -07:00
Doug Bunting 5ce20ebdde Do not exit cleanly after failed `msbuild` in `build.ps1`'s `finally` block
- part of aspnet/AspNetCore-Internal#2665
- should surface errors we're currently hiding

Also increase PowerShell logging to help debug build and test hangs

nit: Run `finally` block after catching an exception
2019-06-20 21:49:19 -07:00
Chris Ross 495f52920c
Remove redundant call to UseAuthentication (#11426) 2019-06-20 19:02:07 -07:00
Stephen Halter 0d92fee9d0
Work around potential race in PipeWriter (IIS Edition) (#11165) 2019-06-20 17:38:19 -07:00
Mikael Mengistu e95c3a08eb
Kestrel Override Client Cert Validation (#11423) 2019-06-20 17:37:42 -07:00
David Fowler 25d568885b
Remove connection adapters and move things to middleware (#11412)
* Remove connection adapters and move things to middleware
- Remove connection adapters from the public API surface (pubternal) and replace the existing adapters with connection middleware.
- Updated the tests
2019-06-21 00:26:09 +02:00
Andrew Stanton-Nurse c5d62b4a29
Quarantine some tests (#11420) 2019-06-20 15:20:34 -07:00
Ajay Bhargav Baaskaran 21fdbcd562
Allow @bind-value to be specified on its own (#11401) 2019-06-20 14:36:53 -07:00
Brennan e8181ae479
Pass options to HubConnectionContext (#11382) 2019-06-20 13:18:12 -07:00
Mikael Mengistu c987ce5b3c
Add Invoke API with with no completion result (#11399) 2019-06-20 12:54:22 -07:00
Steve Sanderson 56ffc6b582
On RenderTreeBuilder, add SetUpdatesAttributeName (#11375) 2019-06-20 09:52:12 +02:00
John Luo 0058a58372
Fix Template test runs on macOS and Linux (#11407) 2019-06-19 23:03:39 -07:00
Justin Kotalik 689b052509
Convert TLS connection adapter to connection middleware (#11109) 2019-06-19 20:02:44 -07:00
Justin Kotalik 0b5d4baa07
Remove copy race for IIS projects (#11394) 2019-06-19 19:58:47 -07:00
Justin Kotalik 50790068a8
Add file manifest for runtime and targeting pack (#11235) 2019-06-19 19:53:30 -07:00
Mikael Mengistu a9a9298d4f
Make SSEMessageFormatter internal and use new InternalsVisibleTo pattern (#11356) 2019-06-19 18:47:50 -07:00
Brennan 0648edf7c2 Temporarily skip SignalR TS client tests (#11398) 2019-06-19 15:40:37 -07:00
Pranav K a093059fce
Use the right data type for mouse event args (#11332)
* Use the right data type for mouse event args

Fixes https://github.com/aspnet/AspNetCore/issues/11224
2019-06-19 13:56:50 -07:00
Stephen Halter 5f2760e9bc
The TaskCompletionSource ctor takes Task*Creation*Options (#11294) 2019-06-19 11:44:43 -07:00
Javier Calvarro Nelson 2287abcc3e
Move SPA flows to use code (#11227)
* Move SPA flows to use code
2019-06-19 19:57:01 +02:00
Chris Ross 2df72072ad
Update facebook APIs to v3.3 #4684 (#11238)
Update Google error message
2019-06-19 10:16:20 -07:00
Nate McMaster 4fde84a7ad Replace KoreBuild with Arcade (#11122)
* Replace usages of $(CI) with $(ContinuousIntegrationBuild)

* Move RepoTasks to eng/tools/

* Remove dead code

* Update build.sh/ps1 to invoke Arcade instead of KoreBuild

* build/repo.props => eng/Build.props

* build/CodeSign.{props,targets} => eng/Signing.props

* build/repo.targets => eng/Build.props, eng/CodeGen.proj, and eng/AfterSolutionBuild.targets

* Remove AddAllProjectRefsToSolution.ps1

* Put selenium process tracking into artifacts/tmp/

* build/docker => eng/docker

* Move content from korebuild.json to global.json

* Remove cibuild.{sh,cmd} and update ci.yml

* Ensure vswhere detects BuildTools installations

* Remove sign check exclusions (Arcade does not support)

* list VS required components in global.json

* Update CodeCheck.ps1

* Update arcade (#11143)

* Fixups to broken build

* capture test results in xunit form
* attempt to fix code check
* restore before linux build
* remove duplicate signinfos

* More build fixes

* exclude node_modules from unique project check
* fixup signing props

* More build fixes

* Remove unused NoWarns
* Skip building site extension
* Suppress xunit color in console output
* Install x86 runtime

* Run KillProcesses.ps1 at end of build on CI

* activate env vars in codecheck.ps1

* Fix signing and generate build manifests

* Fixup code check and linux installers build

* Remove custom restore targets

* Import flaky test props

* Restore original manifest generation code and set warnAsErrors=false

* Alwasy restore the toolset

* More attempts at build fixes

* run restore before building deb/rpm packages
* pre-install Yarn.MSBuild
* Remove WIX workaround

* Attempt to fix RPM installers and x86 build

* Fix helix tests, java auto-detection, and code gen steps

* Globally disable MSBuild node resuse and capture MSbuild crash logs

* Cleanup build invocation for installers

* Set max time on xunit tests to 15 min

* Update helix-test.yml

* Fix Hosting tests

* Fix TestHost

* Fix Negotiate.Test

* Fix Mvc tests

* Capture results

* Fix Hosting tests

* Fix Kestrel tests

* Fix ServerComparison tests

* Fix DefaultBuilder functional tests

* Skip template tests

Need to run pack before running tests on mac/linux now

* Fix Identity test

* Fix ServerComparison tests

* Verify nginx installation on ubuntu

* Verify nginx installation?

* Try adding to path

* Try symlink

* Sudo?

* Woot it works

* Disable timeout

Template tests require more than 15 mins

* list env vars

* Use correct dotnet_home

* Prepent path instead

* Fix npmproj tests

* Fix CORS tests

* Debug signalr tests

* Debug signalr

* Capture bin

* Try building templates sequentially

* Debug signalr

* Cleanup

* Disable signalr npm tests

* Debug template test

* Try to fix templates again and make steps more reliable

* Cleanup

* Feedback
2019-06-19 10:03:38 -07:00
Arthur Vickers 730c3e0053 Update DatabaseErrorPageMiddleware to use HasTables 2019-06-19 09:58:39 -07:00
David Fowler 9ea20ddef3
Increase timeout to 30 seconds (#11358) 2019-06-19 17:43:33 +02:00
Javier Calvarro Nelson 75c95c56bf
Complete and make ignitor more extensible (#11289)
* Add support for sending dotnet calls from "JS"
* Add support for acknowledging render batches.
* Extract logic into a separate BlazorClient class so that it can be reused.
* Support non prerendered pages.
* Allow reacting to incoming JSInterop calls.
* Allow reacting to incoming RenderBatch.
2019-06-19 10:45:49 +02:00
Hao Kung b56108fc94
Make incorrect password error message consistent (#9556) (#11346) 2019-06-18 23:33:06 -07:00
Hao Kung ee0c9dcf35
Get rid of Authentication.Internal (#11341) 2019-06-18 23:31:41 -07:00
Hao Kung 51919cb631
Improve error message when no auth scheme specified (#11348) 2019-06-18 23:30:47 -07:00
Justin Kotalik a4bd1308ca Skip CORS tests (#11355) 2019-06-18 16:05:38 -07:00
Arthur Vickers 839cf89252 Update MusicStore and Identity to remove workarounds
Fixes #10714
Fixes #10668
2019-06-18 15:09:38 -07:00
Javier Calvarro Nelson f56c4c1c33
Fix yarn audit issues by lifting dependency versions (#11318) 2019-06-18 22:24:52 +02:00
Hao Kung 2191f073d7
Turn on new confirmation flow in templates (#9003) 2019-06-18 13:20:09 -07:00
Kahbazi bff78bdd11 Remove use of null-conditional operator for logger (#6579) 2019-06-18 11:18:43 -07:00
Chris Ross 9077b38805
Implement IHttpResetFeature in Kestrel #10886 (#11300) 2019-06-18 11:14:40 -07:00
Brennan 8984144db4
Update dev deps for SignalR (#11330) 2019-06-18 10:58:53 -07:00