Commit Graph

38958 Commits

Author SHA1 Message Date
Isaac Levin 49a5ca979b fix merge 2019-06-29 19:24:30 -04:00
Isaac Levin 9e28412a7a updates 2019-06-29 19:21:30 -04:00
Isaac Levin 343d6e4b9a
Update Startup.cs
Update to template to remove RazorPages extension if not an auth template
2019-06-25 12:00:28 -04:00
Isaac Levin cefeb6ba00
merge (#7)
merge

Co-authored-by: Pranav K <prkrishn@hotmail.com>
Co-authored-by: null <dotnet-maestro-bot@microsoft.com>
Co-authored-by: Justin Kotalik <jukotali@microsoft.com>
Co-authored-by: Arthur Vickers <ajcvickers@hotmail.com>
Co-authored-by: Nate McMaster <natemcmaster@users.noreply.github.com>
Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Co-authored-by: Balint Farkas <balint.farkas@windowslive.com>
Co-authored-by: Mikael Mengistu <mikaelm12@users.noreply.github.com>
Co-authored-by: Brennan <brecon@microsoft.com>
Co-authored-by: Chris Ross <Tratcher@Outlook.com>
Co-authored-by: Kahbazi <A.Kahbazi@gmail.com>
Co-authored-by: Hao Kung <HaoK@users.noreply.github.com>
Co-authored-by: Javier Calvarro Nelson <jacalvar@microsoft.com>
Co-authored-by: David Fowler <davidfowl@gmail.com>
Co-authored-by: Stephen Halter <halter73@gmail.com>
Co-authored-by: Ryan Brandenburg <rybrande@microsoft.com>
Co-authored-by: John Luo <johluo@microsoft.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
Co-authored-by: Ajay Bhargav Baaskaran <ajaybhargavb@gmail.com>
Co-authored-by: Andrew Stanton-Nurse <andrew@stanton-nurse.com>
Co-authored-by: null <42748379+dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: Jacques Eloff <joeloff@users.noreply.github.com>
Co-authored-by: Dylan Dmitri Gray <d.dylan.g@gmail.com>
Co-authored-by: Ryan Nowak <rynowak@microsoft.com>
Co-authored-by: Alessio Franceschelli <alessio@franceschelli.me>
Co-authored-by: Loïc Sharma <sharma.loic@gmail.com>
Co-authored-by: Arthur Irgashev <arthur.irgashev@gmail.com>
Co-authored-by: Kevin Pilch <kevinpi@microsoft.com>
Co-authored-by: dudu <dudu@cnblogs.com>
Co-authored-by: Fabien Barbier <8518235+GoldenCrystal@users.noreply.github.com>
2019-06-25 11:45:52 -04:00
Fabien Barbier bf95c946ec Blazor: Decode URL segments in RouteContext (#8759)
* Decode URL segments in RouteContext
2019-06-25 16:27:24 +02:00
dudu c6718d054d Any instead of Count in IIS UrlRewriteFileParser (#11540)
* Any instead of Count in IIS UrlRewriteFileParser

* Remove unnecessary null check in IIS UrlRewriteFileParser
2019-06-25 06:33:37 -07:00
David Fowler 73e1b5de9e
Moved the static assets extension method to WebHostBuilderExtensions. (#11541)
* Moved the static assets extension method to WebHostBuilderExtensions.

* Updated the refs
2019-06-25 06:28:40 -07:00
David Fowler 6608b3b178
Make the platform benchmarks work again (#11537)
- Make it compile
- Removed a few pubternal usages
2019-06-24 23:50:27 -07:00
dudu e79fafc2e3 Improve IIS UrlRewrite parsing (#11533) 2019-06-24 23:07:48 -07:00
Chris Ross f3f9a1cdbc Remove Hosting.Internal APIs (#11505)
* Remove Hosting.Internal APIs #11312
2019-06-24 21:55:09 -07:00
Kevin Pilch 5ace0efa49
Update sample data (#11510)
Addresses internal bug 890301 (https://dev.azure.com/devdiv/DevDiv/_workitems/edit/890301)
2019-06-24 20:44:44 -07:00
John Luo 94f84c4776
Build SiteExtensions (#11409) 2019-06-24 19:37:51 -07:00
Ryan Nowak 1552e9f842 Use ValueTask for DynamicRouteValuesTransformer 2019-06-24 19:13:35 -07:00
Ajay Bhargav Baaskaran bff743aced
Removed unnecessary preceding @s (#11520) 2019-06-24 18:04:44 -07:00
Pranav K 397a27f810
Add JsonExtensionData to ProblemDetails (#11460)
* Add JsonExtensionData to ProblemDetails
Fixes https://github.com/aspnet/AspNetCore/issues/6202
2019-06-24 17:30:31 -07:00
Pranav K c7df3aae4c
Update refs (#11512) 2019-06-24 16:30:48 -07:00
Pranav K 6c5374db0d
Changes per PR 2019-06-24 16:14:46 -07:00
Pranav K 6b36c377f6
Update ref assemblies 2019-06-24 16:01:02 -07:00
Pranav K bed3542a9b
Add JsonExtensionData to ProblemDetails
Fixes https://github.com/aspnet/AspNetCore/issues/6202
2019-06-24 16:01:02 -07:00
David Fowler b31bdd4373
Moved things around (#11508)
- Put middleware in th middeware folder
- Rename PipelineExtensions to BufferExtensions
- Move DuplexPipe to shared
2019-06-24 15:18:09 -07:00
Steve Sanderson f162ba1961
For two-way bindings, enforce consistency between .NET model and DOM by patching old tree. Fixes #8204 (#11438) 2019-06-24 23:15:33 +01:00
Pranav K 151ae52661
JSON error handling (#11190)
* Exception handling with SystemTextJsonInputFormatter

* Additional tests

* Update ref package

* PR feedback

* Test fixes and feedback

* Update refs

* Restructure tests

* Cleanup
2019-06-24 14:30:38 -07:00
Arthur Irgashev 590958376e Add debugg logging for DataProtectorTokenProvider.ValidationAsync (#10739) 2019-06-24 14:30:09 -07:00
David Fowler 9b59fe40cf
Added some doc comments to bedrock APIs (#11487)
* Added some doc comments to bedrock APIs
- Also cleaned up some HttpContext doc comments

* Apply suggestions from code review

PR feedback

Co-Authored-By: Andrew Stanton-Nurse <andrew@stanton-nurse.com>

* Apply suggestions from code review

Co-Authored-By: Justin Kotalik <jukotali@microsoft.com>
2019-06-24 14:06:01 -07:00
Loïc Sharma 7994b509f8 Update "feature request" GitHub issue template (#11302) 2019-06-24 13:33:02 -07:00
dotnet-maestro[bot] 114f760d64 [master] Update dependencies from 3 repositories (#11458)
* Update dependencies from https://github.com/aspnet/AspNetCore-Tooling build 20190621.2
- Microsoft.NET.Sdk.Razor - 3.0.0-preview7.19321.2
- Microsoft.CodeAnalysis.Razor - 3.0.0-preview7.19321.2
- Microsoft.AspNetCore.Razor.Language - 3.0.0-preview7.19321.2
- Microsoft.AspNetCore.Mvc.Razor.Extensions - 3.0.0-preview7.19321.2

* Update dependencies from https://github.com/aspnet/Blazor build 20190623.1
- Microsoft.AspNetCore.Blazor.Mono - 0.10.0-preview7.19323.1

* Update dependencies from https://github.com/dotnet/arcade build 20190623.4
- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19323.4
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19323.4
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19323.4

* fix build (tests) - thanks @ajaybhargavb
2019-06-24 11:48:20 -07:00
David Fowler c63cd0c3ad
Simplified HttpConnection (#11488)
- Don't register callbacks until we have a request processor
- Remove the IConnectionTimeoutFeature from the feature collection, it was used by connection adapters but isn't needed anymore.
- Rename OnInputOrOutputCompleted to OnConnectionClosed
2019-06-24 11:42:27 -07:00
Alessio Franceschelli 7d4258b186 Api Explorer: multiple complex properties 2019-06-24 11:15:39 -07:00
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