Commit Graph

40898 Commits

Author SHA1 Message Date
mnltejaswini 1c9a54aeb8 [Perf] Reduce allocations in Link generation code paths 2016-02-24 17:25:32 -08:00
John Luo bb4a04b3a3 Fix samples used by tests 2016-02-24 16:12:32 -08:00
Ryan Nowak 4629148519 [Design] Add antiforgery middleware
This new middleware participates in authentication and acts as a filter
when the request doesn't include a valid CSRF token for a POST.

Any authentication middleware that you want to validate an antiforgery
token should go ahead of this middleware in the pipeline (Cookies,
IISIntegration). This also takes care of automatic auth (Windows) done by
weblistener.

Any authentication middleware that you want to ignore antiforgery should
go after this middleware in the pipeline.

To facilitate this, there are a few changes in the antiforgery API
surface. Namely we can now pass in a principal to validate tokens. You
can't pass in a principal to generate tokens - we expect you to be logged
in at that poing. Also, ValidateRequestAsync(...) now checks the HTTP verb
and won't validate GETs and such.
2016-02-24 15:04:09 -08:00
Doug Bunting 7ebbbce052 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:13:31 -08:00
Doug Bunting c035f3b029 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:12:43 -08:00
Doug Bunting 4d0d9a8d8c Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:10:12 -08:00
Doug Bunting b3bc995d31 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:05:45 -08:00
Doug Bunting d0caad8631 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:04:58 -08:00
Doug Bunting a9ac505088 Use Mono 4.0.5
- Mono beta is now 4.2.1 which doesn't work reliably with `nuget.exe`
  - see also aspnet/External#48
2016-02-24 13:04:07 -08:00
Doug Bunting a80a63271f Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 13:01:39 -08:00
Doug Bunting 23e7d85ccf Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:59:52 -08:00
Doug Bunting 140c8686b5 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:55:37 -08:00
Doug Bunting 835b696e0e Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:54:38 -08:00
Doug Bunting da93a75da4 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:49:55 -08:00
Doug Bunting d83ad64ad6 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:48:16 -08:00
Doug Bunting 34c0c20851 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:47:22 -08:00
Doug Bunting 40e242cb98 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:46:33 -08:00
Doug Bunting a6875b2fa6 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:45:45 -08:00
Doug Bunting 54f8004a4e Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:45:01 -08:00
Doug Bunting 05b2b8e7d8 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:44:10 -08:00
Doug Bunting 3776e38d7c Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:43:00 -08:00
Doug Bunting 24d4c027b1 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:37:07 -08:00
Doug Bunting 09db7f413d Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:36:21 -08:00
Doug Bunting f344d798c1 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:34:44 -08:00
Doug Bunting 24ce2c9cdf Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:33:47 -08:00
Ajay Bhargav Baaskaran 6cd13c441e [Fixes #691] Use WriteAttributeTo when TextWrites is not null 2016-02-24 12:31:13 -08:00
Doug Bunting 77c42b25a1 Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:29:21 -08:00
Doug Bunting 9783a7c42b Update `build.cmd` to match latest template
- aspnet/Universe#347
- `%KOREBUILD_VERSION%` doesn't work without this fix
2016-02-24 12:27:40 -08:00
Ajay Bhargav Baaskaran 028c0fb131 Enabled xml doc generation 2016-02-24 12:19:46 -08:00
Doug Bunting edd1f7a0d0 Update template's `build.cmd` to match best of our repo's
- #347
- `%KOREBUILD_VERSION%` doesn't work without this fix

Will apply accross the repos once this is approved.
2016-02-24 12:15:02 -08:00
Pranav K 0bf650a789 Use a fixed version of Roslyn to allow Coherence to succeed 2016-02-24 10:48:18 -08:00
SteveSandersonMS c1b808f8af Fix code style inconsistencies 2016-02-24 18:37:47 +00:00
SteveSandersonMS c668387dac Add data-loading example to ReactSpa template, and remove server-side rendering (because you really need Redux/Flux or similar for that to make sense) 2016-02-24 18:32:31 +00:00
Doug Bunting d1695ea6d6 Update `build.sh` to match other repos
- currently attempts to `source KoreBuild.sh`
2016-02-24 09:38:40 -08:00
Doug Bunting 5de08352fa Update `build.sh` to match other repos
- currently attempts to `source KoreBuild.sh`
2016-02-24 09:37:41 -08:00
Pranav K 0efa8c9204 Use Dotnet to run tests for DNXCore50
Fixes #400
2016-02-24 08:14:05 -08:00
SteveSandersonMS a6ea8b5101 Change ReactSpa template to something more like a dashboard with sidebar navigation 2016-02-24 14:41:29 +00:00
SteveSandersonMS eac76683cc Enable server-side rendering for ReactSpa template 2016-02-24 11:02:21 +00:00
SteveSandersonMS f0b0160419 Add Webpack dev middleware and React hot module replacement to ReactSpa template 2016-02-24 10:47:45 +00:00
Caleb Nelton 5b0b0b95a7 Small Refactorings
Use nameof
Replace with single call to SingleOrDefault
Replace with single call to FirstOrDefault
Simplify conditionals
2016-02-23 19:01:09 -08:00
Pranav K 80b6996701 * Moving DNX dependencies to test only
* Updating Mvc tests to use dotnet test to run on dnxcore50
2016-02-23 18:58:42 -08:00
Pranav K f461329cdb Reduce the number of directories we look for projects to build in. 2016-02-23 17:27:50 -08:00
moozzyk 8eb3946caf Preventing from running dotnet test if test runner is not specified 2016-02-23 16:33:26 -08:00
John Luo 4ad6bbcdd3 Add required dependency for running test site 2016-02-23 16:26:30 -08:00
SteveSandersonMS de488987c1 Add Angular2Spa template 2016-02-23 23:13:20 +00:00
Kiran Challa 04a9313009 Disable running E2ETests in parallel 2016-02-23 14:40:03 -08:00
Chad Tolkien 7649b3ebb3 Fix typo in TotpSecurityStampBasedTokenProvider docs 2016-02-23 14:26:34 -08:00
Kiran Challa 67e49d3636 Enable passing in 'parallel' parameter to dotnet test 2016-02-23 14:10:17 -08:00
Hao Kung f78c13c2fa Add + to allowed username characters by default 2016-02-23 13:18:11 -08:00
moozzyk 38d7bab73d Removing -pre as it causes test failures due to version mismatch
between what the build runs vs what project references

Also removing for Sake since it is not needed
2016-02-23 12:56:12 -08:00