Commit Graph

43822 Commits

Author SHA1 Message Date
Chris R 13b867a90e #366 Add flag to disable synchronous IO 2017-07-05 15:51:16 -07:00
Ryan Nowak 647ce7515d Remove explicit scope managment 2017-07-05 15:47:46 -07:00
Nate McMaster bd19ba9533 Revert obsoleting CookieAuthenticationOptions.ExpireTimeSpan (#1296)
- Revert the obsoleting of CookieAuthenticationOptions.ExpireTimeSpan in aspnet/Security#1285
- Add test to ensure Cookie.Expiration is ignored
2017-07-05 15:43:43 -07:00
Pranav K 922c120762 React to https://github.com/aspnet/Mvc/issues/6009 2017-07-05 15:35:11 -07:00
Ryan Nowak 7408bcd025 Rewrite of code rendering context 2017-07-05 15:32:54 -07:00
Nate McMaster 74c1e19e6c React to changes in CookieAuthenticationOptions 2017-07-05 15:24:37 -07:00
Chris R 658f4621b1 #1208 Clean up JWT and OIDC issuer handling 2017-07-05 14:44:23 -07:00
Hao Kung a79aea3bf3 Tweak null guard 2017-07-05 14:39:27 -07:00
Chris R 283f09e80c React to ISession cancellation changes 2017-07-05 14:37:29 -07:00
Chris R b9541be20d React to ISession cancellation changes 2017-07-05 14:34:48 -07:00
Hao Kung d632c6a1a1 Merge branch 'haok/null' into dev 2017-07-05 14:32:17 -07:00
Hao Kung 4e644ef41c React to Auth 2017-07-05 14:30:45 -07:00
Chris R 1a1e4c309f #167 Add cancellation tokens and defualt timeouts for Load/CommitAsync. 2017-07-05 14:22:43 -07:00
Pranav K 8963b83dd3 Remove ParseOptions and CompilationOptions from RazorViewEngineOptions (#6487)
* Remove ParseOptions and CompilationOptions from RazorViewEngineOptions

Fixes #6009
2017-07-05 14:18:49 -07:00
Ryan Nowak 8dfba25d59 Streamline collections
Makes our collections sealed instead of abstract.

Only the IntermediateNodeCollection needs to have a read only variant.
2017-07-05 13:46:37 -07:00
Hao Kung 98eb31194c Guard against null 2017-07-05 13:33:39 -07:00
Hao Kung 1c30f33c92 Remove AddXyzAuth extension methods 2017-07-05 13:00:40 -07:00
John Luo 255d244241 Update Microsoft.Azure.KeyVault version 2017-07-05 12:33:37 -07:00
Ryan Brandenburg 3333161313 Remove TargetFallback 2017-07-05 12:15:17 -07:00
Nate McMaster 1eb7f9e032 Add CookieBuilder to CookieTempDataProviderOptions and obsolete duplicate API (#6472) 2017-07-05 10:19:13 -07:00
Nate McMaster d4abd5499a React to API changes in CookieAuthenticationOptions 2017-07-05 10:16:00 -07:00
Kiran Challa 780897f44a Updated License.txt 2017-07-05 10:09:53 -07:00
Nate McMaster a7bf561b1c Add CookieBuilder to CookieAuthenticationOptions and obsolete the duplicated properties 2017-07-05 10:05:10 -07:00
Nate McMaster 968237d751 Replace configure method on Twitter, RemoteAuthentication, and OpenIdConnect options with CookieBuilder 2017-07-05 09:56:12 -07:00
Nate McMaster 6f4f34a0bf Remove SessionOptions.SameSideMode (#176) 2017-07-05 09:40:55 -07:00
Chris R 85402d4bd6 Add CancellationToken to ISession Load/CommitAsync 2017-07-05 09:05:01 -07:00
Javier Calvarro Nelson ef43b100a6 Fix a null reference exception and add some null checks 2017-07-04 14:24:40 -07:00
Ryan Nowak 8d9c16132a Fix #6479 - remove IFileProvider constructor
The RazorProject implementation used by MVC at runtime has a constructor
that takes an IFileProvider (used by tests). This causes ambiguities
when a user registers an IFileProvider in DI.

Cleaning up tests to use a mock instead of the file provider directly
2017-07-04 13:48:56 -07:00
Ryan Nowak a23307e2b1 Check for properties that can't befound
If you give ModelExpressionProvider a lambda with a private property
you'll end up here. This wasn't common before, but it seems like users
are more likely to try it with pages.

Model Metadata and Model Binding don't handle private properties, so
supporting it in Model Expressions seems less than useful.

This isn't a breaking change because this case would have resulted in a
null-ref. Addresses #6400
2017-07-04 13:26:17 -07:00
John Luo bb1d80be2a Create common manifest file
This will trim additional packages such as runtime.win-arm64.runtime.native.system.data.sqlclient.sni
2017-07-03 18:36:30 -07:00
Murat Girgin 66b939725e https://github.com/aspnet/Security/issues/1265. Check Auth failures and log them. 2017-07-03 18:04:05 -07:00
Doug Bunting c351712419 Add `FloatingPointTypeModelBinderProvider` and related binders
- #5502
- support thousands separators for `decimal`, `double` and `float`
- add tests demonstrating `SimpleTypeModelBinder` does not support thousands separators for numeric types
- add tests demonstrating use of commas (not thousands separators) with `enum` values
2017-07-03 17:55:04 -07:00
Petr Onderka 354facf4ad Use localization middleware (#801)
* Use localization middleware
2017-07-03 17:52:39 -07:00
David Fowler f21f5039b2 Replace ConnectionContext with HubConnectionContext (#629)
* Replace ConnectionContext with HubConnectionContext
- The SocketDelegate implementation owns the transport pipe,
it's a single producer single consumer model. SignalR needs to support
multiple producers so that broadcast, return values and sending to individual
connections works. This change introduces a multi producer channel that is used
by all producers to copy data to the transport safely. This will make the move
to pipelines easier.
2017-07-03 17:44:28 -07:00
Mike Harder 95831af3eb Set "TreatWarningsAsErrors" before NuGet restore (#255)
* Ensures our build stays clean of NuGet warnings
2017-07-03 17:40:05 -07:00
Mike Harder 8608131b4e Set "TreatWarningsAsErrors" before NuGet restore (#115)
* Ensures our build stays clean of NuGet warnings
2017-07-03 17:39:59 -07:00
Mike Harder b70ca8056e Set "TreatWarningsAsErrors" before NuGet restore (#249)
* Ensures our build stays clean of NuGet warnings
2017-07-03 17:38:48 -07:00
Mike Harder 1c80d8fcf8 Set "TreatWarningsAsErrors" before NuGet restore (#71)
* Ensures our build stays clean of NuGet warnings
2017-07-03 17:38:32 -07:00
N. Taylor Mullen d36838ed88 Handle imported @page directives.
- Prior to this imported `@page` directives would flow through the Razor system without error. This resulted in inconsistent behavior between MVC and Razor. Now, imported `@page` directives result in diagnostics on the page directive node.
- Added two tests to verify that we still treat views with imported page directives as Razor pages BUT we also log a diagnostic on the page directive node.
- Renamed the `ViewComponentDiagnosticFactory` class to `RazorExtensionsDiagnosticFactory` so it can be used for more than just view component diagnostics. This way we can ensure that our diagnostics don't end up overlapping.

#1503
2017-07-03 17:11:17 -07:00
Javier Calvarro Nelson c50f55d1de Add a default sliding expiration of 30 seconds on Memory and Distributed Cache Tag Helpers. 2017-07-03 17:06:47 -07:00
Mike Harder f292fa8db5 Set "TreatWarningsAsErrors" before NuGet restore (#150)
* Ensures our build stays clean of NuGet warnings
2017-07-03 16:56:46 -07:00
Ryan Nowak 8a9bf9c71a Rewrite of code rendering context 2017-07-03 16:29:34 -07:00
Ryan Nowak 35889cba81 Add properties to the body node that it needs
Removes a usage of TagRenderingContext
2017-07-03 16:29:34 -07:00
Mike Harder c9ff84b7e5 Revert "Temporarily remove TreatWarningsAsErrors to unblock build (#809)" (#813)
This reverts commit f28400f986.
2017-07-03 16:24:50 -07:00
Ryan Brandenburg ddef61485b DiagnosticSource to 4.4.1 2017-07-03 15:09:38 -07:00
Ryan Brandenburg 654d6bee4a DiagnosticSource to 4.4.1 2017-07-03 15:06:56 -07:00
Ryan Brandenburg 057a853de7 DiagnosticSource to 4.4.1 2017-07-03 15:03:34 -07:00
Ryan Brandenburg 81544958b8 DiagnosticSource to 4.4.1 2017-07-03 15:02:01 -07:00
Sébastien Ros 13e76c24d3 Dispose CancellationTokenSource created in CacheTagHelper (#6293)
Fixes #5649
2017-07-03 14:59:48 -07:00
Pranav K 954e186261 Update LICENSE.txt text 2017-07-03 14:08:32 -07:00