Commit Graph

40929 Commits

Author SHA1 Message Date
Hisham Bin Ateya 1b4ccd0ddf Add 'UseServer' 2016-02-04 17:04:59 -08:00
Ajay Bhargav Baaskaran 8e8de413f8 Re-enable few tests on Mono 2016-02-04 16:53:09 -08:00
N. Taylor Mullen fc99082ea8 Make `TagHelperAttribute` immutable.
- Remove a lot of the ugly generic work done in `TagHelperAttributeList`/`ReadOnlyTagHelperAttributeList`.
- Removed error cases where we'd check on addition of `TagHelperAttribute`s that their `name` was not `null`. This was due to the pre-existing `string` indexer for `TagHelperAttributeList`. It no longer sets `TagHelperAttribute`s directly, instead it's `[key] = value` (instead of `[key] = new TagHelperAttribute(...))`.
- Updated tests to account for new immutability/string indexer format.
- Removed copy ctor from `TagHelperAttribute` since its immutability kills the value.
- Changed `ReadOnlyTagHelperAttributeList` to inherit from `ReadOnlyCollection`

#604
2016-02-04 16:38:30 -08:00
N. Taylor Mullen 59334dcf17 React to aspnet/Razor#604 2016-02-04 16:37:30 -08:00
Prasanna V. Loganathar edb1a1045a Correct Typo 2016-02-04 16:29:50 -08:00
Ajay Bhargav Baaskaran 49c553ec7b Updated Json.Net version 2016-02-04 16:13:22 -08:00
Ajay Bhargav Baaskaran 9445574aa1 Updated Json.Net version 2016-02-04 16:04:44 -08:00
Ajay Bhargav Baaskaran fa181819c1 Update Json.Net version 2016-02-04 15:33:16 -08:00
John Luo 57dad8df8c Merge branch 'dev' of git://github.com/hishamco/Antiforgery into hdev 2016-02-04 14:59:32 -08:00
Hao Kung 7ba61d6c6f UserManager should normalize role name 2016-02-04 14:09:11 -08:00
moozzyk ca6bef4c11 Adding missing [Fact] attribute 2016-02-04 13:28:33 -08:00
Hao Kung ada5756c87 Add more IdentityDbContext ctors 2016-02-04 13:23:42 -08:00
Ryan Nowak 9ea5a939cf Move Antiforgery.GetHtml() to MVC as an extension 2016-02-04 13:08:38 -08:00
moozzyk 79df7c9ca7 Resolving relative application base paths 2016-02-04 12:48:48 -08:00
Ryan Nowak 063bc1f8e8 Replace comparer with a bespoke BinarySearch 2016-02-04 11:25:34 -08:00
Ryan Nowak 33e3001d53 Remove GetHtml
It's being moved to MVC
2016-02-04 11:22:26 -08:00
jacalvar 1a87f6d91a [Fixes #3915] Update FormFileModelBinder to avoid re-parsing the ContentDisposition header 2016-02-04 11:17:11 -08:00
Cesar Blum Silveira ce2f823c7d Build with dotnet (#70). 2016-02-04 11:15:27 -08:00
Ryan Nowak 3a2d09b066 Move exceptions from the store to the facade
My earlier change to add TryValidateRequestAsync didn't go far enough,
because the store will still throw when the tokens aren't present. This
change is to make the store just return null tokens in these cases, and
move the exceptions to DefaultAntiforgery.
2016-02-04 11:11:45 -08:00
Doug Bunting c91f0ee667 Clean up some tests
- avoid mocking `HttpContext`
- change `DefaultAntiforgeryTest` to mock token generators consistently
2016-02-04 10:11:05 -08:00
Ryan Nowak 0b39ee0468 Remove Routing.Extensions 2016-02-04 10:03:30 -08:00
Ryan Nowak d97947e229 Move routing extensions to .Routing 2016-02-04 09:55:09 -08:00
Hisham Bin Ateya fc236b07e2 Add 'UseServer' 2016-02-04 14:38:26 +03:00
Hisham Bin Ateya b8bc1e2d46 Add 'UseServer' 2016-02-04 14:34:01 +03:00
Hisham Bin Ateya b1df299ec3 Add 'UseServer' 2016-02-04 13:37:04 +03:00
Mike Surcouf e00453af4d Ensure scope has no duplicates 2016-02-04 09:08:03 +00:00
John Luo 44905b6b8b Merge branch 'hishamco-dev' into dev 2016-02-03 16:17:05 -08:00
Doug Bunting 705c080d3b Move Antiforgery implementation details to `.Internal`
- leave `IAntiforgery`, `IAntiforgeryAdditionalDataProvider` and related bits behind
2016-02-03 15:39:33 -08:00
Ryan Nowak 4b980c8afa Optimize defensive copies where possible 2016-02-03 15:36:42 -08:00
Hisham Bin Ateya 82e1bcf261 Add 'UseServer' 2016-02-04 02:12:14 +03:00
Ryan Nowak 48ee352022 Add form and header name to token set 2016-02-03 14:28:25 -08:00
John Luo 8d804cfbbc Updating to new CLI 2016-02-03 13:40:06 -08:00
Daniel Roth 12da45653e Fixup doc comment formatting issues 2016-02-03 13:14:13 -08:00
moozzyk 186c26f6a1 Adding ASPNET_APPLICATIONBASE environment variable to fix MVC views in IIS 2016-02-03 13:05:12 -08:00
Hisham Bin Ateya c9d8a1330e Add 'UseServer' 2016-02-03 23:53:13 +03:00
Cesar Blum Silveira 9c734ddbab Reference Microsoft.NETCore.Platforms where necessary. 2016-02-03 12:47:47 -08:00
ryanbrandenburg 477e620a6b * Unignore test 2016-02-03 12:03:03 -08:00
John Luo 461fd40251 Updating to new CLI 2016-02-03 12:02:12 -08:00
Cesar Blum Silveira c5186cc01d Reference Microsoft.NETCore.Platforms where necessary. 2016-02-03 11:52:24 -08:00
Cesar Blum Silveira d264a86c5d Reference Microsoft.NETCore.Platforms where necessary. 2016-02-03 11:31:19 -08:00
Ajay Bhargav Baaskaran 6de171f1ef [Fixes #3904] Redesigned IValueProviderFactory and renamed a few methods 2016-02-03 11:31:05 -08:00
N. Taylor Mullen acd88d08ba Enable invoking a `ViewComponent` without arguments inside of a controller.
- Also updated doc comments to properly reflect `ViewComponent` `arguments` parameter.
2016-02-03 10:30:02 -08:00
Kiran Challa 906ed5f0fb Fixes #597: Hosting logging needs to use structured logging instead of format strings 2016-02-03 10:10:25 -08:00
Kiran Challa f888ced1f2 Updated FormatFilter tests to include Accept header 2016-02-03 09:29:57 -08:00
Ryan Nowak 20140c4c15 Adds a IsRequestValidAsync method
Some other misc cleanup
- docs for IAntiforgeryTokenGenerator
- Add HttpContext parameter where to all IAntiforgeryGenerator methods
- rename parameters on DefaultAntiforgery
2016-02-03 08:08:30 -08:00
Daniel Roth bc903bb3cd Fix up doc comment formatting issues 2016-02-02 22:19:56 -08:00
John Luo 1d22eed129 Updating to new CLI 2016-02-02 18:37:48 -08:00
John Luo 6f5e764e87 Updating to new CLI 2016-02-02 17:38:22 -08:00
Doug Bunting 0ddfa5f0d8 Pool `MemoryStream`, `BinaryReader`, `BinaryWriter`, and `SHA256` instances
- #23 part 2
- reduce `byte[]` and `char[]` allocations because all have internal buffers
 - fortunately, only `MemoryStream` has an unbounded buffer
2016-02-02 16:56:11 -08:00
Kiran Challa bf93c7d7a4 Removed JavaScriptEncoder property from HtmlHelper 2016-02-02 16:52:13 -08:00