Commit Graph

44299 Commits

Author SHA1 Message Date
Hao Kung 4a635835af Initial iteration of new Authorization Service 2015-01-15 23:37:35 -08:00
Chris Ross 05cacda513 Remove unused PipelineCore reference. 2015-01-15 21:49:43 -08:00
Ajay Bhargav Baaskaran 26860ad7de Code cleanup 2015-01-15 18:34:38 -08:00
Suhas Joshi 5bde831eab Using file lock when reading file 2015-01-15 17:30:44 -08:00
sornaks 262bb9a732 Changes introducing ResponseCache to cache content in the client/proxy. 2015-01-15 16:51:22 -08:00
Suhas Joshi 7977cf6a46 Making file lock static 2015-01-15 16:50:20 -08:00
Doug Bunting d2fe1ebad7 Allow `@Model` in bound tag helper attribute value
- part II of #1253
- an expected case in template .cshtml files
- expression has name `""`; led to `ArgumentException` in `ModelExpression`
- test `@Model` and `@model.Property` in unit and functional tests
- update baselines to match

nits:
- remove a few unecessary `@`s in .cshtml files
- correct field names & ids in ProductList.cshtml (`foreach` confuses MVC)
 - led to correct valiation attributes as well
2015-01-15 16:47:27 -08:00
Doug Bunting a77d071830 React to aspnet/Razor#268 changes
- part I of #1253 using new Razor capabilities
- update baselines to match latest code generation
- use new `CodeBuilderContext` and `TagHelperAttributeValueCodeRenderer` signatures
- test complex expressions in bound non-string attribute values
2015-01-15 16:47:22 -08:00
Ryan Nowak 3dea6b11a3 Issue #1695 - Create a pattern for a 'greedy' model binder.
See #1695 for a detailed explanation. This change builds support into the
system for the case that a model binder returns true without setting a
value for the Model.

In this case, validation will be skipped if it's a top-level object.

Note that explicitly setting null will still run validation.
2015-01-15 16:32:50 -08:00
Doug Bunting de4cafa8cd Handle complex expressions for bound non-string tag helper attributes
- #129 and support aspnet/Mvc#1253
- add new `CSharpTagHelperAttributeValueVisitor` that writes the raw expression
- add tests of embedded `@(...)` and mix that with normal expressions
- add new resources for errors in `CSharpTagHelperAttributeValueVisitor`
 - write errors using `ParserErrorSink`
- update baselines to match new code generation

nits:
- cleanup long lines in `CSharpTagHelperCodeRenderer`
- remove a few unused resources
2015-01-15 16:32:16 -08:00
Doug Bunting 7b8126367c Minor: `LineMapping` and `MappingLocation` debug visualizations were types' full names
- add `ToString()` overrides for these classes

Nits:
- improve assertion failures about code mapping mismatches
- add `GENERATE_BASELINES` reminder to test project.json
2015-01-15 16:32:06 -08:00
Doug Bunting 26afdbd889 Plumb `ParserErrorSink` through to `CodeBuilderContext`
- precursor for #129
- remove unused `GeneratorResults` ctor to avoid duplicating `ParserResults` code

nit: make a few `ParserResults` properties immutable
- also change `ParserErrors` type to `IEnumerable<RazorError>`
2015-01-15 16:31:33 -08:00
Ryan Nowak 623b733eaa Adding a sample (test) for using custom IRouter implementation with MVC
This is a demonstration of how to inject an IRouter in between traditional
routes and MVC's handler. This allows you to accomplish a variety of
things that were possible with WebAPIs handlers, but inside the routing
system.

The example here turns a header representing the user into a locale, which
is used to select a controller. You could do other things like reject the
route match or change link generation.

There is one subtle project change here, to allow the same to be possible
for attribute routing, we need to create the attribute route after running
the user's routing configuration code.
2015-01-15 16:31:21 -08:00
Chris Ross 08b2b11940 Remove PipelineCore dependency. 2015-01-15 16:14:08 -08:00
Kiran Challa 02f4ca9f05 [Fixes #1791]Remove XML formatter from defaults 2015-01-15 15:46:49 -08:00
Suhas Joshi 6e294035a5 Added logging to code and updated tests 2015-01-15 15:42:48 -08:00
Chris Ross 9aff289dfe Handle PipelineCore rename. 2015-01-15 15:25:17 -08:00
Doug Bunting f38d08a408 #37, Support sample- or test-only repositories
- skip a few targets when src directory does not exist
2015-01-15 15:02:41 -08:00
Chris Ross 5e55833168 Handle PipelineCore rename. 2015-01-15 14:27:53 -08:00
Chris Ross 8385a3c3fc Handle PipelineCore rename. 2015-01-15 14:20:16 -08:00
Pranav K bef9af4679 Fixing build break
* Run ModelBinding test that uses Moq to run under ASPNET50
* Update AssociatedValidatorProviderTest to reflect API changes
2015-01-15 14:20:00 -08:00
ASP.NET Push Bot 91998bd9cc ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@2ce0386ce7
2015-01-15 14:15:20 -08:00
Chris Ross 19ccebb4ce Handle PipelineCore rename. 2015-01-15 14:03:11 -08:00
Pranav K fe1bcc7a24 ElementalValueProvider performs incorrect prefix check in
ContainsPrefixAsync

Fixes #1814
2015-01-15 14:02:41 -08:00
Pranav K b24cec0add Add net45 as a target framework for Microsoft.AspNet.Mvc.Common 2015-01-15 14:02:36 -08:00
Chris Ross f7c502a9e6 Handle PipelineCore rename. 2015-01-15 13:57:07 -08:00
Ajay Bhargav Baaskaran 437eb93bde File upload model binder
- Support for binding posted file to type IFormFile
- Support for multipart/form-data in FormValueProviderFactory
- Updated Mvc Sample
- Added relevant unit and functional tests
2015-01-15 13:41:14 -08:00
Praburaj ad5cfb9e6e Reacting to namespace changes PipelineCore => Http.Core V2 2015-01-15 13:32:28 -08:00
Praburaj c9d0a4d9da Reacting to namespace changes PipelineCore => Http.Core 2015-01-15 13:27:17 -08:00
Kirthi Krishnamraju 6a824a4394 Added ModelMetadataType Attribute and logic to get attributes from ModelMetadata class 2015-01-15 13:19:10 -08:00
Praburaj 0f9173ecb0 Adding a Start up class for OpenIdConnect authentication 2015-01-15 13:16:37 -08:00
Chris Ross 9746a67990 Handle PipelineCore rename. 2015-01-15 12:45:07 -08:00
Chris Ross d43cf30eff #162 - Rename PipelineCore project to Http.Core. Part 2. 2015-01-15 12:37:34 -08:00
Pranav K 6641997836 Add support for `@removeTagHelpers` inheritance from _ViewStart files
Fixes #1657
2015-01-15 12:12:00 -08:00
Chris Ross 68be1d1b19 #162 - Change PipelineCore namespace to Http.Core. Part-1. 2015-01-15 11:52:34 -08:00
ASP.NET Push Bot 584901a038 ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@a0e0d95abc
2015-01-15 11:45:21 -08:00
ASP.NET Push Bot 9832f3444a ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@2c0f673023
2015-01-15 11:21:35 -08:00
Harsh Gupta 106b9fc30c Adding proper descriptions in readme.md files for functional tests. 2015-01-15 11:12:48 -08:00
ASP.NET Push Bot 33a238b11d ⬆️ kvm.ps1, kvm.cmd
Source: aspnet/kvm@5ed15ec21e
2015-01-15 10:57:57 -08:00
Pranav K 123e649ee2 * Removing transitive dependencies from project.json
* Fix casing for project.json
2015-01-15 07:54:10 -08:00
Hao Kung 16a811479e Simplify HttpContextAccessor (now singleton) 2015-01-14 17:24:33 -08:00
Chris Ross 61bdaec1e2 Handle QueryBuilder namespace change. 2015-01-14 17:04:10 -08:00
Suhas Joshi b46bec1a7e Increase wait time for server to start 2015-01-14 16:09:07 -08:00
Chris Ross 5c189d87ad Prepend all links with ./. 2015-01-14 16:01:28 -08:00
Chris Ross 212c264ed3 Use strongly typed headers. 2015-01-14 16:01:25 -08:00
Chris Ross 91d7e382d1 Consume new strongly typed headers. Remove temp implementations. 2015-01-14 15:51:34 -08:00
Chris Ross 4fb21644fc Implement strongly typed headers. 2015-01-14 15:41:09 -08:00
Chris Ross 38fb911afc Clean up auth types, copywrite headers, file names, exceptions. 2015-01-14 15:13:24 -08:00
Chris Ross 91242245f3 Fix directory casing, part 2. 2015-01-14 14:54:47 -08:00
Chris Ross 8e6e7f9590 Fix directory casing, part1. 2015-01-14 14:53:51 -08:00