Ryan Nowak
33e3001d53
Remove GetHtml
...
It's being moved to MVC
2016-02-04 11:22:26 -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
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
48ee352022
Add form and header name to token set
2016-02-03 14:28:25 -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
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
Doug Bunting
7c7a4a905e
Correct project dependencies
...
- use latest `System.Net.Http`, not hard-coded version
- add imports for the latest CLI
- see aspnet/FileSystem@4a9a0fd for the inspiration
2016-02-01 18:53:40 -08:00
N. Taylor Mullen
9c9543dde4
Rename AspNet 5 file contents.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:22 -08:00
N. Taylor Mullen
bc0d5528a3
Rename AspNet 5 folders and files.
...
See https://github.com/aspnet/Announcements/issues/144 for more information.
2016-01-22 12:24:19 -08:00