Commit Graph

42564 Commits

Author SHA1 Message Date
David Fowler 01daa33403 Added xml assembly since it's no included on mono by default 2014-04-26 13:03:51 -07:00
David Fowler e90fe3cefa Fixed issues with no finding main project k package if not on mono 2014-04-26 12:53:45 -07:00
David Fowler 90a149ab80 Added initial support for mono 2014-04-26 12:46:37 -07:00
Pranav K f740aabb79 Reviving RangeAttributeAdapter, RequiredAttributeAdapter,
StringLengthAttributeAdapter

* Adding remaining DataTypeAttribute adapter rules
2014-04-26 11:39:29 -07:00
Praburaj acb8421c90 Enabling Url.IsLocalUrl in the music store code 2014-04-25 15:58:20 -07:00
Yishai Galatzer a5afd3eb42 ActionResult implements IActionResult, and all our default implementations now use ActionResult
All controller methods return the specific ActionResult type
2014-04-25 15:57:02 -07:00
Pranav K f5ba63ea1e Fixing missing files in kproj
Fixing typo in sample filter
2014-04-25 14:48:14 -07:00
Ryan Nowak 8eecad9d83 Bringing back UrlHelper.IsLocalUrl
This has been compied verbatim from MVC (intentional). The tests have been
modernized a bit as well, but all the cases covered in the original are
there.

This may be moved to HttpAbstractions at some point in the future.
2014-04-25 14:29:00 -07:00
Praburaj 23fb4d8e7d 1. Enabling code to use the [Authorize] filter
2. Marked a few places with bug#s with work arounds
3. Making the app run on CoreCLR by default again (which I reverted by mistake in a previous submit).
2014-04-25 14:06:38 -07:00
harshgMSFT f26cc51e2e Introducing AntiForgery System :
- Config is cleaned up to not have IAdditionalDataProvider and SuppressIdentityChecks.

- Added a DefaultClaimUidExtractor which looks for NameIdentifier and if not present serializes entire claims.

- Added HtmlHelper.

- AntiForgery now returns an AntiForgeryTokenSet which represents a tuple of cookie and form tokens.
2014-04-24 18:12:11 -07:00
Pranav K d61915149c DictionaryBasedValueProvider results null when value is not found
* Guard against Dictionary returning null values
2014-04-24 18:10:06 -07:00
ajcvickers ab1af578dd Updating EntitySet/EntityContext to DbSet/DbContext 2014-04-24 17:25:33 -07:00
ajcvickers 9d25c0b1f1 Updating EntitySet/EntityContext to DbSet/DbContext 2014-04-24 17:19:01 -07:00
Chris Ross 78bb008681 #38 - Provide a default dictionary for HttpContext.Items that returns null for missing values. 2014-04-24 16:27:18 -07:00
Sebastien Ros 0fe028a4dd Implementing Authorize attribute
#272
2014-04-24 16:21:43 -07:00
Sebastien Ros f5200a1d55 Implementing IAuthorizationService
#7
2014-04-24 16:16:15 -07:00
Pranav K 2ba8780ee0 Reviving MinLength and MaxLength attribute adapters 2014-04-24 15:52:05 -07:00
Glenn 3e02b8a869 Update README.md 2014-04-24 15:32:05 -07:00
Pranav K b0c7dc9220 Make IModelBinder and IValueProvider methods async 2014-04-24 15:16:27 -07:00
Praburaj 8bd2d01b11 Adding the switch to turn on Helios errors when deployed to remote.
Currently the detailed errors are displayed only for local requests.
2014-04-24 14:53:19 -07:00
Chris Ross 8ad7b489e2 #18 - Add interfaces for request lifetime management. 2014-04-24 14:44:50 -07:00
Praburaj 470f217374 HttpContext.User is being populated with an anonymous identity with a recent change. So I dont have to check for null before.
Fixing the app accordingly.
2014-04-24 14:35:14 -07:00
ajcvickers cda544c04b IServiceProvider no longer available from EntityConfigurationBuilder. Using ISP passed to context instead. 2014-04-24 14:16:24 -07:00
N. Taylor Mullen d46389888d Modify search location for views.
When areas are not provided area locations are not searched for views.  Also
added tests for search locations in RazorViewEngine failures.
2014-04-24 14:03:36 -07:00
ajcvickers 9704cbc5ab Comment out test as temp fix for build break. 2014-04-24 13:54:18 -07:00
GrabYourPitchforks 4077c03a7b Hosting: Throw if startup method isn't void-returning. 2014-04-24 12:54:50 -07:00
Chris Ross b751cf19d0 #34 - Make HttpContext.User return non-null. 2014-04-24 12:43:15 -07:00
Glenn ec51ccb18a Update README.md 2014-04-24 10:29:02 -07:00
David Fowler c9400e2640 Update kvm.cmd
Removed crossgen for KRuntime
2014-04-24 10:21:08 -07:00
Glenn 69ffe0f07d Update README.md 2014-04-24 09:56:49 -07:00
Glenn cda5b4af4f Update README.md 2014-04-24 09:56:09 -07:00
Praburaj 5bd052efaa 1. Making configuration as a service to read configuration settings from various places in the app
2. Reversed the order of registration of Environment source & json source as the logic for source override changed.
3. Taking a snapshot of the latest packages.
2014-04-23 15:16:58 -07:00
Chris Ross 66495cdc58 Add missing namespace. 2014-04-23 14:15:41 -07:00
ajcvickers 1c3b2ccc31 IDDI again... (Remove call to WithServices)
Per latest changes to EF DI/config.
2014-04-23 13:51:15 -07:00
Chris Ross 4a5de61cd1 OWIN: Change interop extension methods. 2014-04-23 12:01:25 -07:00
David Fowler 93a2ab2352 Fixed the configuration model and other compilation errors 2014-04-23 09:02:07 -07:00
Pranav K 3671e8c5b4 Reviving CompareAttributeAdapter and ModelClientValidationEqualToRule 2014-04-22 23:11:24 -07:00
Pranav K cc00d8cff7 Modify TypeConverterModelBinder to use ValueProviderResult.CanConvertFromString to determine if it can convert a
value

* Adding support for extra type conversions
2014-04-22 23:00:58 -07:00
Praburaj 1cc6445c49 Adding a temporary work around for a bug in ValidationSummary html helper that surfaces during register page.
Cleaning up a Dispose method in one of the controllers - all others have been cleaned up before.
2014-04-22 17:39:31 -07:00
N. Taylor Mullen 9abd67da4b Cleaned up some code writer code.
Modified the ToString override to be GenerateCode and fixed how it cached.
2014-04-22 15:21:09 -07:00
Hao Kung 5ba60857a7 Identity DI changes 2014-04-22 14:01:42 -07:00
Hao Kung d827b9fff2 More DI-ify identity
Follow K patterns for DI
- IdentityBuilder
- IServiceProvider constructor
- Unit tests for Startup usage/new DI builder
- Move template default configuration into DefaultServices
2014-04-22 13:31:23 -07:00
Glenn 1d4e383c7e Update README.md 2014-04-22 10:53:40 -07:00
Glenn f0c96e26cb Update README.md 2014-04-22 10:51:26 -07:00
Chris Ross c8af917927 Expose IPAddress, X509Certificate. 2014-04-22 10:00:31 -07:00
Chris Ross bfab162b4b Seperate the server layers into two projects. 2014-04-22 09:56:09 -07:00
David Fowler a5899584a2 Remove out.txt added forever ago 2014-04-21 22:59:41 -07:00
David Fowler 40d9fa0019 Added missing dependency 2014-04-21 22:59:26 -07:00
David Fowler caff1d3d68 Fixed unused project references 2014-04-21 22:31:46 -07:00
David Fowler aa4dfffd84 Fixed references in test host 2014-04-21 22:27:14 -07:00