Justin Kotalik
da513bd8d8
Get build.cmd working and cleanup ignored files.
2018-04-10 14:21:00 -07:00
Justin Kotalik
df9efa0770
Code changes to get ANCM current working on github
2018-04-10 14:19:53 -07:00
Justin Kotalik
b594130020
Adds source code from VSTS
2018-04-10 14:19:53 -07:00
Pavel Krymets
157e7f4fdd
Creates two separate projects for ANCM V1 and V2.
2018-04-10 14:19:32 -07:00
FabianMeiswinkel
bec259f976
#364 - Expose HTTP_503_RESPONSE_VERBOSITY option ( #447 )
2018-04-10 12:08:33 -07:00
Pavel Krymets
6629236a0e
Merge pull request #767 from aspnet/pakrym/perf
...
Improve performance
2018-04-10 12:07:26 -07:00
Jass Bagga
da32f45f58
Do not set sslPort if HTTPS not configured ( #458 )
...
Addresses #457
2018-04-10 12:02:10 -07:00
Pavel Krymets
d63e8c5558
CPP
2018-04-10 11:04:34 -07:00
Pavel Krymets
ee2e46a614
What about now?
2018-04-10 09:08:13 -07:00
Kristian Hellang
6b18dea711
Replace Constants.CompletedTask with Task.CompletedTask ( #235 )
2018-04-10 08:58:39 -07:00
Kristian Hellang
61f7c82d49
Replace Helpers.CompletedTask and Helpers.CanceledTask ( #446 )
2018-04-10 08:57:25 -07:00
Pavel Krymets
80e799d17c
PR comments
2018-04-10 08:30:37 -07:00
David Fowler
b030ab7e49
Update Connections.Abstractions.csproj ( #2473 )
2018-04-09 17:55:14 -07:00
Pavel Krymets
e32b51d6e6
ENdpoint
2018-04-09 16:47:01 -07:00
Pavel Krymets
f0eab4410a
Cleanup
2018-04-09 15:20:28 -07:00
Pavel Krymets
7a14be006d
Fast reads
2018-04-09 15:16:47 -07:00
Pavel Krymets
5e5aa90575
Remove continue with
2018-04-09 14:26:28 -07:00
Pavel Krymets
0feb83b637
Dont format some things
2018-04-09 12:10:32 -07:00
Pavel Krymets
dca31cc6f6
Perf
2018-04-09 10:34:44 -07:00
Pavel Krymets
8f1781f7eb
Cleanup LogEvent calls
2018-04-08 19:21:55 -07:00
David Fowler
4760cce6aa
Remove IConnection ( #2472 )
2018-04-07 18:55:59 -07:00
Nate Barbettini
a6bdb9b1ec
Fix typos in code documentation ( #1012 )
...
* Fix typos in code documentation
* Add missing detail to code documentation
2018-04-06 08:09:48 -07:00
Justin Kotalik
47c7c1ad8f
Disable global loading of RequestHandler for in-process ( #732 )
2018-04-05 10:36:15 -07:00
Jass Bagga
4236f0e51c
Fix AllowedHosts configuration ( #452 )
...
Addresses #451
2018-04-05 10:08:40 -07:00
Phil Henning
8a368b5610
Add supportedAuthentication for NoAuth in templates which have NoAuth ( #443 )
...
* Add supportedAuthentication for NoAuth in templates which have NoAuth
This is to work around an issue in Visual Studio
* Remove spurious ,
* Add supportedAuthentications to F# Web API vs-2017.3.host.json
2018-04-04 18:10:04 -07:00
Chris Ross (ASP.NET)
2ee0d6e337
Delay loading the dev cert #2422
2018-04-04 14:54:27 -07:00
Chris Ross (ASP.NET)
953496a970
Merge branch 'release/2.1' into dev
2018-04-04 13:44:56 -07:00
Chris Ross (ASP.NET)
9ea2c50068
Add SNI support #2357
2018-04-04 12:49:29 -07:00
Andrei Amialchenia
70ce044778
Corrects spelling of some comments ( #2461 )
2018-04-03 15:55:17 -07:00
Jass Bagga
52ffc89fef
Remove duplicated UseHttpsRedirection ( #437 )
...
Addresses #436
2018-04-03 14:02:52 -07:00
Pavel Krymets
81bf9fb66b
Merge release/2.1 into dev ( #421 )
2018-04-03 10:45:34 -07:00
Pavel Krymets
ba06c58bcb
Merge release/2.1 into dev ( #2460 )
2018-04-03 10:45:31 -07:00
Pranav K
6ee08a985d
React to Mvc changes
2018-04-03 10:11:52 -07:00
Pavel Krymets
5210323385
Merge release/2.1 into dev
2018-04-03 10:11:36 -07:00
Stephen Halter
623c27ab01
Dispose SocketAsyncEventArgs when we dispose the Socket ( #2459 )
2018-04-02 19:48:17 -07:00
Pavel Krymets
ba2b883db0
Reaction to *Memory changes ( #2446 )
2018-04-02 16:44:13 -07:00
Jass Bagga
f52359d202
Update AJAX CDN links ( #430 )
2018-04-02 16:25:24 -07:00
David Fowler
6b183c5ac0
Use 4K as the minimum segment size ( #2452 )
...
- This normalizes the behavior for kestrel no matter what memory pool implementation is used. The transports should behave the same (ask for 1/2 full blocks) across pool implementations.
- Declare the minimum segment size in KestrelMemoryPool
- Updated the AdaptedPipeline to use MinimumSegmentSize / 2
2018-04-02 16:14:40 -07:00
Justin Kotalik
6e957e436a
Support inprocess hosting in IISExpressDeployer via switching the HostingModel property. ( #1368 )
2018-04-02 12:01:53 -07:00
Nate McMaster
6d4a632b96
Fix race condition in test code waiting for dotnet-watch to restart
2018-04-02 10:10:57 -07:00
Jass Bagga
56fc40dbca
Revert "Revert "Update jquery-validation-unobtrusive ( #421 )"" ( #426 )
...
This reverts commit e6112a0911 .
2018-04-01 23:29:52 -07:00
David Fowler
a37fa83aee
Fixed a parser bug found when trying out the array pool ( #2450 )
...
- When using the array pool, we get terrible block density and as a result
the header parser was failing.
- This fixes the case where the parser needed to skip 2 blocks at the end
(which is unrealistic). Comparing the current index to the reader index is incorrect
since we may end up at the same index in another segment.
2018-04-01 00:04:02 -07:00
Pavel Krymets
a76d51c46b
Revert "Update jquery-validation-unobtrusive ( #421 )"
...
This reverts commit ac9addabcc .
2018-03-31 16:24:07 -07:00
David Fowler
7382198356
Copy connection middleware when using ListenLocalHost ( #2447 )
...
- Connection middleware got removed during Clone when using ListenLocalhost
2018-03-31 07:29:35 -07:00
Pavel Krymets
6ca61a8fc7
Merge release/2.1 to dev
2018-03-30 16:33:44 -07:00
Andrew Stanton-Nurse
2c2a8dae01
Merge pull request #2445 from aspnet/release/2.1
...
Add IConnection to Connections.Abstractions (#2444 )
2018-03-30 15:21:48 -07:00
David Fowler
67cb8a0e11
Add IConnection to Connections.Abstractions ( #2444 )
2018-03-30 15:20:31 -07:00
Jass Bagga
ac9addabcc
Update jquery-validation-unobtrusive ( #421 )
...
Addresses #15
2018-03-30 15:04:50 -07:00
Justin Kotalik
fd6c217336
Revert "Build runtime specific metapackages"
...
This reverts commit ec184bc361 .
2018-03-30 13:02:45 -07:00
David Fowler
9eb41ca571
Remove buffer size argument ( #232 )
...
- We're removing the buffer arugment from the API as a result of a mini review. This is a pre-emptive reaction to avoid breakage when the change comes in.
2018-03-30 10:47:12 -07:00
Jass Bagga
cb7942abe4
Add no-https option for all templates ( #413 )
...
Addresses #322
2018-03-29 13:59:47 -07:00
Jass Bagga
aca30fe8a2
--no-https option for RazorPagesWeb-CSharp template ( #362 )
2018-03-29 13:49:20 -07:00
Javier Calvarro Nelson
ecafbe7f7a
[ Fixes #11 ] Add functional tests for the libraries
2018-03-27 21:33:13 -07:00
Chris Ross (ASP.NET)
f25f411b68
Add HostFiltering configuration to templates
2018-03-27 12:13:24 -07:00
Pranav K
ade5ae534d
Set DebugType=full for .NET Framework projects
2018-03-27 08:59:54 -07:00
David Fowler
46ab09ca36
Merge branch 'release/2.1' into dev
2018-03-27 02:08:35 -07:00
David Fowler
be04ccac6e
Move DuplexPipe into Kestrel.Core as internal ( #2428 )
2018-03-27 02:02:15 -07:00
Javier Calvarro Nelson
a8246e2a99
[ Fixes #327 ] Replace AAD template code with packages
...
* Add Microsoft.AspNetCore.Authentication.AzureAD.UI package.
* Add Microsoft.AspNetCore.Authentication.AzureADB2C.UI package.
* Remove AccountController.
* Remove Pages/Views related to authentication.
2018-03-26 20:37:46 -07:00
Pranav K
804eeede11
Use the correct application part factory by default
...
Fixes https://github.com/aspnet/Mvc/issues/7543
2018-03-26 16:40:45 -07:00
Tornhoof
e80d0b000a
Make BufferedReadString public and add doc ( #1011 )
2018-03-26 16:03:16 -07:00
Stephen Halter
68ff406862
Merge branch 'release/2.1' into dev
2018-03-26 14:51:21 -07:00
Hao Kung
e1cb3f25ac
Switch to AddDefaultIdentity
2018-03-26 12:18:01 -07:00
Stephen Halter
a1de323ff4
Make LibuvTransport(Factory) pubternal ( #2426 )
2018-03-26 11:39:51 -07:00
David Fowler
f0629dcbe4
Merge branch 'release/2.1' into dev
2018-03-24 03:14:59 -07:00
David Fowler
6701339835
Expose DefaultConnectionContext POCO ( #2421 )
...
- Made TransportConnecton derive from ConnectionContext
- Less objects, less opinions about what the ConnectionContext is. This diverges from what we do with HttpContext but it seems better overall.
- Made DefaultConnectionContext
- Usable for unit testing
- Usable for benchmarking
2018-03-24 03:12:53 -07:00
Nate McMaster
7e13e83348
Remove PackageArtifactCategory
2018-03-23 16:34:43 -07:00
John Luo
2dc1858f90
Merge branch 'release/2.1' into dev
2018-03-23 16:02:42 -07:00
pan-wang
731f05df38
call exit to force shutdown in case of timeout ( #726 )
2018-03-23 15:19:00 -07:00
John Luo
26578f5079
Reenable API check
2018-03-23 15:01:50 -07:00
Chris Ross (ASP.NET)
0e7f12bfb3
Add HostFiltering to the default web host
2018-03-23 14:41:22 -07:00
John Luo
ec184bc361
Build runtime specific metapackages
2018-03-23 13:40:27 -07:00
John Luo
63fd1e1a4d
Re-enable api check
...
- Disable api check for Transport.Libuv due to breaking change
- Add empty baseline files for unreleased packages
2018-03-23 12:55:06 -07:00
Javier Calvarro Nelson
f49270d9d6
Add Azure AD package + tests
2018-03-23 12:25:17 -07:00
John Luo
e3894a4609
Remove EF.Tools reference
2018-03-23 12:09:46 -07:00
Chris Ross (ASP.NET)
05d1a6eb0e
Refactor Generic Host lifetimes to work better with ServiceBase #1347
2018-03-23 12:02:44 -07:00
Chris Ross (ASP.NET)
49b447d626
Merge branch 'release/2.1' into dev
2018-03-23 09:19:06 -07:00
Chris Ross (ASP.NET)
3d9a19d865
Merge branch 'release/2.1' into dev
...
# Conflicts:
# build/dependencies.props
# korebuild-lock.txt
2018-03-23 09:16:55 -07:00
Patrick Westerhoff
72210e4078
Add AuthenticationProperties.Parameters ( #1008 )
...
Add a `Parameters` bag to the authentication properties that allow
passing arbitrary parameters to an authentication handler. These values
are not intended for serialization of persistence, only for flowing data
between call sites.
Also make existing `Items` collection helpers protected to allow them to
be reused in subclasses, make string-based helpers public as a public
way to work with the collection, and add helper methods to interact with
the `Parameters` dictionary.
2018-03-23 09:13:02 -07:00
David Fowler
0753f4b4f4
Merged release/2.1
2018-03-22 21:56:29 -07:00
David Fowler
abdcb47b8f
Renames from API review ( #2413 )
...
* Renames from API review
- Rename Microsoft.AspNetCore.Protocols.Abstractions to Microsoft.AspNetCore.Connections.Abstractions.
- Renamed IConnectionHandler to IConnectionDispatcher (and related properties and types)
- Added ConnectionHandler and UseConnectionHandler extension method to Connections.Abstractions.
- Use ActivatorUtilties to create the ConnectionHandler
2018-03-22 21:38:14 -07:00
Javier Calvarro Nelson
8f42ce8492
Application parts cleanups
2018-03-22 20:13:10 -07:00
Ajay Bhargav Baaskaran
77200410d6
Updated Razor views
2018-03-22 19:17:31 -07:00
Patrick Westerhoff
06c93669d6
Allow overwriting parameters on challenge requests
...
Add a way to overwrite query arguments that are passed as part of the
challenge request to the external authentication provider in OAuth-based
authentication providers, including OpenID Connect.
This uses the new `AuthenticationProperties.Parameters` collection to
pass parameters to the authentication handler which will then look for
special items within that property bag, overwriting previously
configured values within the authentication options.
This can be used for example to overwrite the OAuth scopes that are
requested from an authentication provider, or to explicitly trigger a
reauthentication by requiring a login prompt with OpenID Connect. By
being able to specify this on individual challenge requests (using
`HttpContext.ChallengeAsync`), this is independent from the global
scheme configuration.
Custom ~ChallengeProperties types, e.g. `OAuthChallengeProperties` for
OAuth-based authentication providers, provide assistance in setting the
challenge request parameters but are not required to make the handlers
use the overwritten values.
- Adjust authentication handlers to respect the custom parameters, and
add ~ChallengeProperties types.
- Introduce `OAuthHandler.FormatScope(IEnumerable<string>)` to format a
custom set of scopes. Subclasses requiring a different scope format
should override this method instead of the parameterless overload.
Overriding just `FormatScope()` will prevent handlers from supporting
overwriting the OAuth `scope` in a challenge request.
- Refactor GoogleHandler to support parameterization through both the
`Parameters` and the `Items` collection (former is preferred) to keep
compatibility with the old behavior.
- Add an OpenIdConnect sample to overwrite the prompt argument in a
challenge request.
- Add extensive tests.
2018-03-23 02:09:05 +01:00
Jass Bagga
4acda9dd9b
Set userBrowserLink to false for VS host file ( #395 )
...
Addresses #394
2018-03-22 17:04:09 -07:00
Pavel Krymets
ed801f0e88
Do not return 200 for exceptions
2018-03-22 16:43:11 -07:00
Javier Calvarro Nelson
9e61d6bd98
Update application parts implementation
2018-03-22 14:31:21 -07:00
Javier Calvarro Nelson
de86071b2c
React to changes in Virtual schemes
2018-03-22 13:39:45 -07:00
Javier Calvarro Nelson
af05248042
[ Fixes #4 ] Adds an Azure Active Directory B2C package
...
* Adds extension methods to configure Azure Active Directory B2C
authentication for Web applications and APIs.
* Adds all the supporting controllers/pages to support handling UI
flows.
* Adds a sample using B2C to authenticate in a web application.
2018-03-22 13:22:13 -07:00
Justin Kotalik
f1058f8575
Cleanup ReadAsync calls, make IISHttpContext private ( #696 )
2018-03-22 11:13:06 -07:00
Jass Bagga
b24e3b2e78
Use applicationUrl instead of ASPNETCORE_URLS ( #390 )
...
Addresses #328
2018-03-22 10:32:20 -07:00
Nate McMaster
12abcd2f68
Merge branch 'release/2.1' into dev
2018-03-21 22:16:12 -07:00
Nate McMaster
54e538dcb5
Remove dotnet tool install from instructions on using dotnet-dev-certs
2018-03-21 22:10:48 -07:00
Nate McMaster
899a298534
Fix package metadata to match default settings for aspnetcore ( #389 )
2018-03-21 18:10:31 -07:00
Nate McMaster
d61d723cba
Update package metadata to include commit hash ( #713 )
2018-03-21 17:42:18 -07:00
Chris Ross (ASP.NET)
90064ce9df
Add ClaimActions for bulk add and remove. #1609
2018-03-21 16:35:37 -07:00
Ryan Brandenburg
1bac12716d
Updating baselines
2018-03-21 15:32:09 -07:00
Ryan Brandenburg
c8f5b2e3ae
Set 2.0 baselines
2018-03-21 15:20:30 -07:00
Ryan Brandenburg
bb52bcf11b
Set 2.0 baselines
2018-03-21 14:54:59 -07:00
pan-wang
ffeebfc8b9
support shutdown timeout for inprocess application ( #703 )
2018-03-21 13:37:26 -07:00
Ryan Brandenburg
46e62b2b67
Set 2.0 baselines
2018-03-21 11:46:17 -07:00
Chris Ross (ASP.NET)
e5cffe685b
Do not rely on the implicit StringValues to array converter.
2018-03-21 09:42:20 -07:00
David Fowler
5748898fc4
Make the RequestServicesContainerMiddleware thinner ( #1360 ) ( #1362 )
...
- Today the request services middleware is responsible for making sure there are request scoped services.
This PR tries introduces some breaking changes that are hopefully acceptable in order to gain some performance.
- Here are the assumptions this PR makes:
- Since this middleware is first in the pipeline, the only thing that can
set a default service provider would be the server itself. Since we have no servers that do that
I removed that code that tries to noop if there's an existing service provider.
- This PR no longer restores the previous service provider feature since it gets replaced every request
anyways. Kestrel also clears out the feature on each request so it shouldn't be a problem (in theory).
Once again, since this middleware is first, it is the last thing that runs before the server re-gains
control on the way out so there's no need to restore anything.
- We use the RegisterForDispose method to dispose of the IServiceProvider instead of doing it inline.
2018-03-21 08:58:03 -07:00
pan-wang
5baa53393f
fixing fowarding handler for AsyncCompletion ( #669 )
...
to make sure ANCM does not release IIS pipeline until all WinHttp handlers get closed.
2018-03-20 15:56:16 -07:00
Jass Bagga
586c4ff780
Move layout and partial script to Shared dir ( #368 )
...
Addresses #340
2018-03-20 15:17:50 -07:00
Ryan Brandenburg
f38ebee489
Set 2.0 baselines
2018-03-20 14:46:34 -07:00
Ryan Brandenburg
7dd0424825
Set 2.0 baselines
2018-03-20 14:44:10 -07:00
Kiran Challa
69f52cc3b6
Removing Microsoft.AspNetCore.SpaTemplates project and friends
2018-03-20 13:46:11 -07:00
Ryan Brandenburg
424c0b0209
Set 2.0 baselines
2018-03-20 11:50:45 -07:00
Ryan Brandenburg
f91db5b794
Set 2.0 baselines
2018-03-20 11:49:29 -07:00
Ryan Brandenburg
07db6cc038
Set 2.0 baselines
2018-03-20 11:48:38 -07:00
Jass Bagga
f786df9dc9
Use partial tag helper ( #375 )
...
Addresses #338
2018-03-20 10:36:08 -07:00
Pavel Krymets
f1d8ca3045
Add CommitHash to file info ( #700 )
2018-03-20 09:20:37 -07:00
Stephen Halter
5fa658c800
Never run continuation inline in SocketAwaitable.OnCompleted ( #2407 )
2018-03-19 17:29:49 -07:00
Jass Bagga
cbdc7bd3b8
Remove tools references and explicit EF.Design reference ( #370 )
...
Addresses #99 and #357
2018-03-19 16:27:54 -07:00
Kiran Challa
fa8fcc9a62
Made wwwroot 'copyOnly' to avoid modifications in it's files
2018-03-19 16:15:34 -07:00
pan-wang
2bb9a8aaf9
Adding handlerSettings configuration to aspnetcore schema for future use ( #689 )
2018-03-19 15:30:55 -07:00
Ryan Brandenburg
3edca24004
Set 2.0 baselines
2018-03-19 13:43:59 -07:00
Jass Bagga
79b4cafe68
Remove BOM from json files ( #369 )
...
Addresses #276
2018-03-19 10:11:00 -07:00
Ryan Brandenburg
5e9dd7a5fc
Set 2.0 baselines
2018-03-19 10:10:50 -07:00
Ryan Brandenburg
dc07aba935
Set 2.0 baselines
2018-03-19 09:27:10 -07:00
Ryan Brandenburg
7c50704c69
Set 2.0 baselines
2018-03-19 09:26:55 -07:00
richardhopton
f6f89554c9
Fix trimming line if CR not directly before LF ( #1006 )
...
If the line contains a CR in any location than directly before the LF it would detect a valid line and then trim 2 characters from the end of the line, losing a "real" character.
2018-03-19 09:09:57 -07:00
Justin Kotalik
cf4874997e
Heap allocate HTTP_DATA_CHUNK if the size of the response is too large. ( #683 )
2018-03-16 16:56:23 -07:00
Ryan Brandenburg
2fb65200ee
Set 2.0 baselines
2018-03-16 16:08:10 -07:00
Chris Ross
fbc5b64cd8
React to new SocketHttpHandler ( #434 )
2018-03-16 10:56:36 -07:00
Ryan Brandenburg
ca15b2fbf6
Set 2.0 baselines
2018-03-16 10:50:27 -07:00
Ryan Brandenburg
8553647ce8
Set 2.0 baselines
2018-03-16 10:50:18 -07:00
Ryan Brandenburg
3584e5f2ab
Set 2.0 baselines
2018-03-16 10:50:05 -07:00
Ryan Brandenburg
4cf0b5d033
Set 2.0 baselines
2018-03-16 10:49:52 -07:00
Justin Kotalik
5e74b36c53
Verify read/write buffers, use offset parameter when reading. ( #652 )
2018-03-16 10:11:20 -07:00
Justin Kotalik
8ff9ce70c9
Fixes spelling ( #679 )
2018-03-16 09:27:40 -07:00
Ben Adams
2527face16
Query EndPoints once during reset ( #2398 )
2018-03-15 23:55:51 -07:00
Javier Calvarro Nelson
acf7584d13
Reenable API Check
2018-03-15 21:44:34 -07:00
David Fowler
181dc0de24
React to pipelines changes
2018-03-15 16:58:53 -07:00
pan-wang
e5661a46b7
do cleanup inside inprocessapplication destrutor ( #676 )
2018-03-15 16:47:21 -07:00
pan-wang
8e54e792fb
do shutdown check before processing request ( #677 )
2018-03-15 16:46:50 -07:00
Pavel Krymets
3ef9dd1640
Fix http_stop_calls_into_managed typo ( #673 )
2018-03-15 15:59:57 -07:00
David Fowler
d31512528d
Items is now a first class property on ConnectionContext ( #2395 )
...
* Metadata is now a first class property on ConnectionContext
- Make IConnectionMetadata a manatory top level feature on ConnectionContext
- TransportConnection will lazily manifest ConnectionMetadata on first access.
This should avoid allocations since Kestrel isn't using this today.
2018-03-14 20:56:30 -07:00
pan-wang
9d064b24c7
enable debug print in aspnetcore.dll ( #663 )
2018-03-14 14:29:25 -07:00
Stephen Halter
9901f0f3e4
Default to the managed socket transport ( #2392 )
2018-03-14 11:50:10 -07:00
David Fowler
6de76c5e69
Respect the buffer size arguments on options ( #230 )
...
* Respect the buffer size arguments on options
- Allocate a buffer for receives and pass into CreateFromStream.
2018-03-14 08:48:45 -07:00
David Fowler
04eef791bc
Added transfer format to Protocol.Abstractions ( #2391 )
2018-03-14 08:16:38 -07:00
Ben Adams
e65e58daf3
Reduce Sockets mainloop Send/Receive statemachine size ( #2376 )
...
* Use Completion to Advance in Error
* Drop ReadResult from statemachine
2018-03-13 23:04:12 -07:00
David Fowler
572627e88c
Handle posting to the libuv thread after StopAsync ( #2388 )
...
- Check if the post handle is disposed and noop if it is.
We also catch an ObjectDisposedException because it's an inherent race condition.
2018-03-13 19:37:39 -07:00
Ben Adams
f6108928d8
Pass ReadOnlySequence via in ( #2389 )
...
* Pass ReadOnlySequence via in
2018-03-13 17:54:01 -07:00
Chris Ross (ASP.NET)
bfdb48717f
Host header format validation
2018-03-13 16:37:03 -07:00
Justin Kotalik
810c4bcb0a
Fix two AVs with InProcess ( #656 )
2018-03-13 16:07:55 -07:00
pan-wang
d246c6f201
add port info to event log ( #660 )
2018-03-13 16:06:01 -07:00
pan-wang
7a511d6a94
websocket handler changes ( #661 )
...
add debug logging and reset connection in case of failure
2018-03-13 16:05:32 -07:00
David Fowler
bcea8330c4
Clean up some left overs ( #2385 )
2018-03-13 14:10:06 -07:00
Nate McMaster
016fa66640
Map properties DotNetRestoreSources => RestoreSources for metapackage builds ( #955 )
2018-03-13 12:23:18 -07:00
Hao Kung
7db6925ffc
Split sqllite and sql server migrations ( #348 )
...
* Split sqllite and sql server migrations
* Fix casing, move files around
* Remove if defs and add check
2018-03-13 11:41:16 -07:00
Hao Kung
bee77ebf91
Rename VirtualScheme => PolicyScheme ( #1665 )
...
* VirtualScheme => PolicyScheme
* Use SignInHandler base for cookies
* PolicySchemeHandlers throw NotImplemented by default
* Remove redundant interface
2018-03-13 11:09:43 -07:00
Nate McMaster
349acb5bb3
Condense restore feed configuration to single location and remove package mirroring ( #945 )
2018-03-13 10:56:09 -07:00
David Fowler
2d8f3d95fe
Feature/clean up proto abstractions ( #2383 )
...
- This change aims to clean up the feature interfaces
used by kestrel and exposed by protocol absractions. It splits out the
IConnectionTransportFeature into smaller features that may or may
not be implemented on the connection.
- Added all of the features from Socket.Abstractions
in an attempt to make it go away completely. As a result
the helper methods and extensions have all been added here.
- Change IConnectionHandler to take TransportConnection. This cleans up the interface and makes it more explicit what features are required by Kestrel
2018-03-13 10:27:04 -07:00
Jass Bagga
dbc5e38d04
Match launchSettings variable to sourceName in template.json ( #354 )
...
Addresses #346
2018-03-13 09:52:20 -07:00
Scott Addie
0879dbd082
Convert ValuesController return types to ActionResult<T> ( #351 )
...
Addresses #339
2018-03-13 09:50:39 -07:00
David Fowler
fa3229b489
Revert "Clean up protocol abstractions ( #2381 )" ( #2382 )
...
This reverts commit ddd0b4c260 .
2018-03-13 02:04:42 -07:00
David Fowler
ddd0b4c260
Clean up protocol abstractions ( #2381 )
...
- This change aims to clean up the feature interfaces
used by kestrel and exposed by protocol absractions. It splits out the
IConnectionTransportFeature into smaller features that may or may
not be implemented on the connection.
- Added all of the features from Socket.Abstractions
in an attempt to make it go away completely. As a result
the helper methods and extensions have all been added here.
- Change IConnectionHandler to take TransportConnection. This cleans up the interface and makes it more explicit what features are required by Kestrel
2018-03-13 01:43:49 -07:00
Stephen Halter
2a7bbeb8d7
Revert "React to pipelines changes ( #2378 )"
...
This reverts commit 2421df85d6 .
2018-03-13 00:32:52 -07:00
David Fowler
2421df85d6
React to pipelines changes ( #2378 )
2018-03-12 23:59:04 -07:00
David Fowler
e7d3b0c5f9
Remove KestrelThreadPool abstraction and replaced it with PipeScheduler ( #2371 )
2018-03-12 14:49:19 -07:00
Scott Addie
12c3cf028c
Assign language and template type to 3 C# item templates ( #343 )
...
Addresses #341
2018-03-12 11:22:07 -07:00
pan-wang
02abb69cb2
fix missing reference/dereference handler ( #651 )
2018-03-10 09:50:48 -08:00
Stephen Halter
71bff00c0d
Use LibuvThread inspired IO Queue in Socket transport ( #2368 )
2018-03-09 15:04:20 -08:00
pan-wang
0b07894ea7
fix srwlock initialize ( #647 )
2018-03-09 11:47:54 -08:00
Justin Kotalik
cb49b98b6f
Follow windows conventions for file versions ( #646 )
2018-03-08 16:28:27 -08:00
Pavel Krymets
77c5d2a971
Update to new corefx ( #642 )
2018-03-08 14:23:16 -08:00
Pavel Krymets
fc80c15a65
Update to new corefx ( #2369 )
2018-03-08 14:23:07 -08:00
pan-wang
8dca8f030c
moving recycle and shutdown to applicationinfo ( #639 )
...
fix a race condition in processing request and app_offline, and optimize code logic
2018-03-08 12:24:25 -08:00
Justin Kotalik
ad82bd31d8
Fix argument parsing for hostfxr, add native unit tests. ( #635 )
2018-03-08 11:53:12 -08:00
Justin Kotalik
00b1948937
Adds websocket feature detection, test cleanup. ( #624 )
2018-03-08 09:52:45 -08:00
Justin Kotalik
ad4b172660
Remove build warnings and turn on warning as errors in IISLib. ( #641 )
2018-03-07 21:15:57 -08:00
Justin Kotalik
4eea754dc3
Don't create std log file for out of process when logs are disabled ( #640 )
2018-03-07 16:12:50 -08:00
Chris Ross (ASP.NET)
b6dc00229d
Convert TestHost ResponseStream to use Pipes.
2018-03-07 15:22:20 -08:00
Chris Ross (ASP.NET)
42fbba3520
More detailed request timeout exceptions #2245
2018-03-07 12:23:06 -08:00
pan-wang
419ae06935
fixing double locking issue ( #637 )
2018-03-07 12:02:04 -08:00
Chris Ross (ASP.NET)
dbd557c965
Exclude the upgrade feature if the OS does not support it #427
2018-03-07 11:53:58 -08:00
pan-wang
f32addd408
Update RecycleApplication function ( #634 )
...
removing hostingmodel input from recycleapplication call and fix memory leak in recycle out of process application
2018-03-07 11:45:51 -08:00
pan-wang
0e28f34c1a
Add general logging event to be used by the RequestHandler ( #633 )
2018-03-06 21:18:49 -08:00
pan-wang
c833e7b994
change the logic on handling configuration change and adds shutdown logic ( #610 )
2018-03-06 16:47:02 -08:00
Nate McMaster
e552b5861a
Switch default implementation of Pbkdf2 on Linux/macOS to Rfc2898DeriveBytes ( #301 )
...
Requires adding .NET Core 2.0 target framework to the package because only SHA1 is supported in .NET Standard 2.0
2018-03-06 09:31:03 -08:00
Chris Ross (ASP.NET)
1df139eb6d
Clone tickets for sliding refresh #1607
2018-03-06 08:56:45 -08:00
Justin Kotalik
4e8a9d2493
Move reading and writing of Pipelines to a single loop; Cancel Read every time we write. ( #582 )
2018-03-04 19:52:41 -08:00
Javier Calvarro Nelson
978938b7c3
Initial commit
2018-03-03 14:44:32 -08:00
pan-wang
cbffeb33ea
fixing a stress issue ( #619 )
2018-03-02 17:34:09 -08:00
Pavel Krymets
850ce33edf
Remove keyvault hosting startup ( #159 )
2018-03-02 14:59:28 -08:00
Nate McMaster
1f5379e38d
Merge branch 'release/2.1' into dev
2018-03-02 14:11:38 -08:00
Nate McMaster
ad1c9d7137
Merge branch 'release/2.1' into dev
2018-03-02 14:02:11 -08:00
Nate McMaster
19c38d0af0
Merge branch 'release/2.1' into dev
2018-03-02 13:57:53 -08:00
Chris Ross (ASP.NET)
9839799645
Add CookiePolicy logging #1588
2018-03-02 09:53:03 -08:00
pan-wang
17dd3e85cb
fix missing event log descriptions ( #622 )
2018-03-01 20:53:57 -08:00
Jass Bagga
c4d1f20c78
Remove bundleconfig.json files from project templates ( #335 )
...
Addresses #326
2018-03-01 11:58:18 -08:00
Ben Adams
300453396a
Pass StringValues via in ( #2295 )
2018-02-28 19:54:44 -08:00
Nate McMaster
0c7ff81a9f
Handle FileNotFoundException when it is thrown while attempting to send a file ( #233 )
2018-02-28 16:18:33 -08:00
Pavel Krymets
2dac2e34fa
Reac to pipes in corefx ( #618 )
2018-02-28 12:42:09 -08:00
Pavel Krymets
2c108d9ba1
React to pipes in corefx ( #2337 )
2018-02-28 12:41:51 -08:00
pan-wang
fcbe74fbf1
fix coding guideline issue. Use BOOL instead of bool ( #620 )
2018-02-28 12:02:15 -08:00
Nate McMaster
9bd4a67f7d
Remove Microsoft.NETCore.Platforms from tool package nuspec
2018-02-28 11:05:50 -08:00
Chris Ross (ASP.NET)
21acbf06e8
Update google auth endpoint to v2 #1307
2018-02-28 10:51:13 -08:00
Chris Ross (ASP.NET)
cc8acdff57
Update facebook API version to 2.12 #1306
2018-02-28 09:48:07 -08:00
Ajay Bhargav Baaskaran
63f0322810
Allow whitespace and backslash in path
2018-02-27 15:24:36 -08:00
Nate McMaster
3cd6add095
Revert "Return HTTP 404 if FileNotFoundException is thrown when attempting to send a file ( #232 )"
...
This reverts commit 6d7269dafb .
2018-02-27 15:00:07 -08:00
John Luo
d9778252d0
Sort header and query values
2018-02-27 13:42:46 -08:00
pan-wang
71b90a31a9
websocket enabled check ( #612 )
2018-02-27 11:28:27 -08:00
pan-wang
792b72e71a
adding error description which was commented out previously ( #613 )
2018-02-27 09:41:09 -08:00
Chris Ross (ASP.NET)
d95109c96d
#43 Add Microsoft.AspNetCore.Authentication.WsFederation, samples, and tests.
...
#1443 Block unsolicited wsfed logins by default.
#1520 Update WsFed to use the 2.0 event structure
#1425 Implement WsFed remote signout cleanup
Rework WsFed RemoteSignOutPath logic to work with ADFS #1581
Update versions, dependencies.
2018-02-26 15:31:39 -08:00
Justin Wyer
83bf2375b3
#2035 Do not await OnCompleted handlers before sending the Response ( #2324 )
2018-02-25 18:10:04 -07:00
Ben Adams
de7e2a2573
Use enum for method rather than string compares ( #2294 )
2018-02-23 14:29:42 -08:00
Nikita Tsukanov
39951e892e
Don't throw in HttpRequestStream.Flush ( #2342 )
...
Because read-only streams apparently can have Flush semantics and this behavior is expected by some of built-in stream wrappers (e. g. CryptoStream)
https://github.com/dotnet/corefx/pull/27327#pullrequestreview-98384813
https://github.com/aspnet/KestrelHttpServer/issues/2341
2018-02-23 09:51:09 -08:00
Ben Adams
6728e756b7
Sanitize and centralize exception throws ( #2293 )
...
* Sanitize and centralize exception throws
2018-02-23 09:24:20 -08:00
Ben Adams
6252ffd86a
Flatten exception handling ( #2313 )
...
3 nested try blocks with 3 finallies in same function O_o
2018-02-22 16:46:18 -08:00
Ben Adams
c57784447e
Speed up TryGetAsciiString ( #1973 )
...
* Widen
* Remove TryGetAsciiStringVectorCheckShifts
* Add Span version to benchmarks
2018-02-22 16:45:31 -08:00
Ben Adams
c0f88ebdc1
Faster IFeatureCollection.Get<TFeature> ( #2290 )
2018-02-22 16:44:38 -08:00
John Luo
c29531f2eb
Delimit key values for query strings
2018-02-22 14:57:59 -08:00
Jass Bagga
8cac91b15e
Update jQuery ( #307 )
2018-02-22 14:39:18 -08:00
Nate McMaster
590c621c6f
Update README to reflect that dotnet-watch et. al. are bundled in the CLI
2018-02-22 12:55:03 -08:00
pan-wang
dc62b9ba38
adding mof file for freb log ( #603 )
2018-02-22 11:14:29 -08:00
John Luo
b85ed9d5cd
Commas in doc comments
2018-02-22 10:44:59 -08:00
Justin Kotalik
4775706bbc
Add version numbers on aspnetcore.dll and aspnetcorerh.dll, remove unnecessary files ( #601 )
2018-02-22 10:03:51 -08:00
Nate McMaster
70dcbf6ed6
Add UnprotectKeysWithAnyCertificate
2018-02-22 08:50:03 -08:00
pan-wang
782b563a58
fixing empty logfile name in event log ( #602 )
...
Empty log file path was logged as we reset the stru too earlier. Changing the code order
2018-02-21 14:08:26 -08:00
Nate McMaster
6d7269dafb
Return HTTP 404 if FileNotFoundException is thrown when attempting to send a file ( #232 )
2018-02-21 13:22:31 -08:00
Justin Kotalik
21b1febf2b
Adds environment variable feature for inprocess ( #583 )
2018-02-21 12:36:39 -08:00
pan-wang
1f6e2c8029
grant the config setting on 502.5 page setting ( #600 )
...
grant the config setting on 502.5 page setting
2018-02-21 11:27:48 -08:00
pan-wang
e3d3b088ae
adding logging for outprocess start and application recycle ( #573 )
...
adding logging for outprocess start and application recycle
2018-02-21 10:58:34 -08:00
Steve Sanderson
873cfa9adf
In SpaProxy, don't fail if there are non-forwardable headers. Fixes #1543 .
2018-02-21 14:03:30 +00:00
Steve Sanderson
7debea272c
Update Angular template content to match @angular/cli@1.7.0
2018-02-21 13:56:19 +00:00
David Fowler
3fc69dc71f
Updated Streams to override Memory and Span overloads ( #2333 )
...
- Also plumbed Memory/Span through Kestrel over ArraySegment.
- Throw synchronously from the HttpRequestStream instead of async in some cases.
2018-02-21 00:00:46 -08:00
Justin Kotalik
ff496ca580
Fix absolute paths to dotnet ( #597 )
2018-02-20 15:03:37 -08:00
Justin Kotalik
c395db12e6
Fix path searching for where.exe and request handler parsing ( #595 )
2018-02-20 08:10:13 -08:00
brightcr
a72e5db797
Removed code to set response headers - connection and upgrade as it should be set by caller e.g. WebSockets Middleware ( #2329 )
2018-02-19 08:36:28 -08:00
Ben Adams
1f8591184e
Use ReferenceEquals not MulticastDelegate.equals ( #2330 )
...
It never inlines because its such a chunky method
2018-02-17 08:13:15 -08:00
Mike Harder
4afaa386db
Remove unnecessary usings ( #2326 )
2018-02-16 14:04:16 -08:00
Nate McMaster
eea8c1a146
Support decrypting keys with X509Certificate that is not in the X509Store
...
The default implementation of EncryptedXml doesn't support using the RSA
key from X509Certificate to decrypt xml unless that cert is in the X509
CurrentUser\My or Localmachine\My store. This adds support for
decrypting with the X509Certificate directly. This is useful for Linux
(often Docker) scenarios, where the user already has a .pfx file, but
may not have added it to X509Store.
2018-02-16 12:11:20 -08:00
Justin Kotalik
87c3ca4752
Send stderr logs to anonymous pipe instead of file when logging is disabled. ( #549 )
2018-02-15 18:43:06 -08:00
Ryan Brandenburg
00b0329059
No more ExperimentalProjectVersionPrefix
2018-02-15 16:00:08 -08:00
Ryan Brandenburg
66714b5fc0
Use ExperimentalPackageVersion
2018-02-15 12:08:50 -08:00
Ryan Brandenburg
f1e63e0f9e
Use ExperimentalPackageVersion
2018-02-15 11:44:08 -08:00
Alessio Franceschelli
14332c5daf
Allows Content-Length for 304 Not Modified response ( #2321 )
2018-02-14 16:01:07 -08:00
Justin Kotalik
4ca45d951f
Increment index by 1 as indexOf is inclusive when searching for dotnet.exe ( #589 )
2018-02-14 15:28:15 -08:00
Ryan Brandenburg
a6165304b3
Add ExperimentalPackageVersion
2018-02-14 12:48:27 -08:00
Alessio Franceschelli
9341f72b8d
Consumes request before closing connection ( #2314 )
2018-02-14 11:46:13 -08:00
Chris Ross (ASP.NET)
d20d47924c
Add HostString.MatchesAny #2863
2018-02-13 14:40:14 -08:00
Daniel Roth
db8e0127c7
Remove hyphen from the dev-certs tool name
2018-02-13 09:33:02 -08:00
David Fowler
2156030460
Clean up some of protocol abstractions ( #2311 )
...
* Clean up some of protocol abstractions
- Renamed PipeConnection to DuplexPipe
- Removed MemoryPool from ConnectionContext
- Work around value tuple issue on net471
2018-02-10 10:39:21 -08:00
Javier Calvarro Nelson
2f42f8f8b4
Merge branch 'release/2.1' into dev
2018-02-09 15:07:53 -08:00
Javier Calvarro Nelson
e81e124586
Fix whitespaces
2018-02-09 15:07:33 -08:00
Javier Calvarro Nelson
46bfdf1d14
Merge branch 'release/2.1' into dev
2018-02-09 14:57:10 -08:00
Javier Calvarro Nelson
1f3a26051d
Fix duplicated namespace on startup
2018-02-09 14:56:18 -08:00