Commit Graph

44812 Commits

Author SHA1 Message Date
Yishai Galatzer bcbbc58515 Api cleanup (remove List and Dictionary in favor of IList and IDictionary)
from the public surface copy header values on registration.

Make a copy of the mediatypeheader value in FormatterMappings so it's
really immutable.
2015-02-16 18:19:55 -08:00
Ryan Nowak d2aa55893d Functional tests for #302
This feature allows routing to generate a link when the action that is
being linked-to does not yet exist. See the PR in routing for the actual
implementation changes. This PR just has a simple functional test for the
scenario.
2015-02-16 17:59:31 -08:00
Mugdha Kulkarni f9a9b80681 Fixing the error message. The error message for malformed template was too complex listing all
the errors that can happen in one message. I have separated the message in 2 different messages.
 1. When there is a parameter or a literal following the optional parameter.
 2. when optional parameter is preceded by a literal other than period which is not allowed.
2015-02-16 17:40:04 -08:00
Praburaj 7da407a17a Using statuscode pages in the sample
Adding some automation as well.
2015-02-16 17:22:57 -08:00
Levi B 3f9423eda9 Provide a facility for registering encoder services 2015-02-16 17:08:15 -08:00
Hao Kung af58d878ba Fix MusicStore.Spa 2015-02-16 16:14:04 -08:00
Hao Kung 71a4b6f6b7 Fully qualify attribute 2015-02-16 16:08:32 -08:00
Hao Kung af908d67e4 Switch to Security Authorize attribute 2015-02-16 16:03:44 -08:00
Stephen Halter 5de210f527 Fix for #1416 - Remove all uses of ITypeActivator and use the static method instead
- ITypeActivator is being removed
- Where an ITypeActivator was used before, use the static ActivatorUtilities
2015-02-16 16:02:39 -08:00
Hao Kung 60384e17eb React to AuthZ changes 2015-02-16 15:59:19 -08:00
Hao Kung 86d9468e45 React to Authorize attribute moving 2015-02-16 15:56:30 -08:00
Hao Kung 94ef6cf8fa React to Authorize changes 2015-02-16 15:40:57 -08:00
Praburaj fc933c83c2 Fixing a test issue 2015-02-16 15:31:56 -08:00
Hao Kung 5094b85ac9 Latest AuthZ iteration
- Core Auth API now takes list of IAuthorizationRequirements, or policy
name.
- Overload that takes AuthorizationPolicy instance moved to extension
method.
- Remove HttpContext from API and replace with ClaimsPrincipal instead
- Add Operation requirement
- Add Sync overloads
- Add ClaimsTransformationOptions (TBD where to use this)

Fixes https://github.com/aspnet/Security/issues/132
Fixes https://github.com/aspnet/Security/issues/116
Fixes https://github.com/aspnet/Security/issues/11
Fixes https://github.com/aspnet/Security/issues/117
2015-02-16 15:04:10 -08:00
Wei Wang 42aedab4ec Add project.lock.json to .gitignore 2015-02-16 14:17:41 -08:00
Wei Wang 9511a7a718 Add project.lock.json to .gitignore 2015-02-16 14:16:16 -08:00
Wei Wang bd9ced4b10 Add project.lock.json to .gitignore 2015-02-16 14:06:29 -08:00
Wei Wang 58661b2734 Add project.lock.json to .gitignore 2015-02-16 13:50:24 -08:00
Wei Wang 1d92960ccd Add project.lock.json to .gitignore 2015-02-16 13:47:16 -08:00
Wei Wang 1dd54e4331 Add project.lock.json to .gitignore 2015-02-16 13:41:35 -08:00
Wei Wang 518887beda Add project.lock.json to .gitignore 2015-02-16 13:38:41 -08:00
Ajay Bhargav Baaskaran 3d30fd653e added Link method to IUrlHelper 2015-02-16 13:38:12 -08:00
Wei Wang 0da745439c Add project.lock.json to .gitignore 2015-02-16 13:33:56 -08:00
Wei Wang 269c7ca304 Add project.lock.json to .gitignore 2015-02-16 13:33:13 -08:00
Wei Wang d0543305f0 Add project.lock.json to .gitignore 2015-02-16 13:30:36 -08:00
Wei Wang 34acb16e20 Add project.lock.json to .gitignore 2015-02-16 13:29:03 -08:00
N. Taylor Mullen 48a1cbb0e5 Fixed build break.
- IScopedInstance now implements IDisposable.
2015-02-16 13:08:10 -08:00
Wei Wang 690069c53e Add project.lock.json to .gitignore 2015-02-16 12:12:36 -08:00
Wei Wang 20cdbcd711 Add project.lock.json to .gitignore 2015-02-16 12:07:04 -08:00
Pranav K 5e69d90076 * Modify DefaultControllerTypeProvider to look at the object graph to
determine if any ancestor has the "Controller" suffix.

* Introduce NonControllerAttribute to opt out of Controller detection.

Fixes #1274
2015-02-15 22:11:37 -08:00
Doug Bunting 8a9d0d16f7 Add project.lock.json to .gitignore 2015-02-15 09:56:35 -08:00
Pranav K 7df56f6d2d Porting Session from Microsoft.Framework.Cache 2015-02-14 09:50:08 -08:00
Praburaj 7b45ab2065 Fixing test
Using a non-redirecting handler while sending logout request to shield from external changes.
2015-02-13 16:58:53 -08:00
Praburaj 3fc61eeac9 Introducing SkipStatusCodePagesAttribute attribute to disable StatusCodepages 2015-02-13 16:03:59 -08:00
Pranav K d56dafe2e8 Use kpm-build to build samples instead of kpm pack 2015-02-13 15:46:02 -08:00
Doug Bunting 0549769fd0 Set `ModelMetadata.TemplateHint` based on data annotations
- add `CachedDataAnnotationsMetadataAttributes.UIHint`
- set `ModelMetadata.TemplateHint` using `UIHintAttribute` or `HiddenInputAttribute`
- add doc comments for `TemplateHint`-related properties and methods
- add unit tests and use these attributes in functional tests

nits:
- cache and seal `CachedModelMetadata.IsCollectionType`
- correct doc comments for `ModelMetadata.RealModelType`
- add doc comments for `IsCollectionType`-related properties and methods
- add doc comments for `IsComplexType`-related properties and methods
- move `CachedModelMetadata.IsComplexType` right below `IsCollectionType`
 - same for related fields and methods
2015-02-13 15:28:45 -08:00
Doug Bunting fbe331c1ab Camel-case tag helper directives
- #264
2015-02-13 15:10:37 -08:00
Praburaj d16a73cc05 Adding woff2 MIME type
Fixes : https://github.com/aspnet/StaticFiles/issues/28
2015-02-13 15:03:16 -08:00
ajcvickers 66252ff736 React to EF namespace change 2015-02-13 14:56:28 -08:00
Levi B fc52487294 Encoders should forbid Zs (space separator) characters except U+0020 SPACE 2015-02-13 14:12:40 -08:00
N. Taylor Mullen e14dbdf9be Add parser error for empty TagHelper bound attributes.
- Errors are only created for TagHelper bound attributes that are not bound to string.
- Added tests to validate proper errors for expected input.

#289
2015-02-13 12:10:50 -08:00
Doug Bunting 451db6fb16 React to aspnet/Razor#164: Camel-case tag helper directives 2015-02-13 12:07:21 -08:00
Youngjune Hong 2e2ca59aa5 Updating MusicStore for better unit-testability 2015-02-13 11:51:46 -08:00
Ajay Bhargav Baaskaran 088bb18eed Added support for binding FormCollection
- Added FormCollectionModelBinder
 - Added relevant unit and functional tests
2015-02-13 11:14:50 -08:00
dtkujawski 5a5975e348 Removed Ctor, Cleaned up namespace and removed extra vertical spacing as per comments. 2015-02-13 11:47:42 -06:00
David Kujawski b94634b4fa Merge pull request #1 from aspnet/dev
Update with recent changes from aspnet/Hosting
2015-02-13 11:36:30 -06:00
Pranav K a33e83f363 Adding IView.Path and ViewContext.ExecutingPagePath
Fixes #1940
2015-02-13 06:12:15 -08:00
Troy Dai daaeca8681 Skip a few CoreCLR tests temporarily 2015-02-13 00:27:07 -08:00
Pranav K 29c346ebf8 Remove do-deep-clean and rely on Universe to clean on build on the CI 2015-02-12 22:21:34 -08:00
Pranav K 77947d1cb5 Fixing System.IO version 2015-02-12 22:20:28 -08:00