Commit Graph

27752 Commits

Author SHA1 Message Date
Hao Kung 20848da93f React to DI changes 2015-03-04 18:08:36 -08:00
Hao Kung 580664201c React to DI changes 2015-03-04 18:07:34 -08:00
Hao Kung 979b75dda4 React to DI changes 2015-03-04 18:06:42 -08:00
Praburaj c632c8a6a4 Reverting change to include ILogger<> from manifest
This seems to cause MVC to fail.
2015-03-04 17:48:08 -08:00
Brennan ca32af61a7 Removing Null* using Testing Null* classes 2015-03-04 17:44:23 -08:00
Brennan cdf6350b93 Logging API changes 2015-03-04 17:14:23 -08:00
Brennan ddd369f7d9 Logging API changes 2015-03-04 17:12:48 -08:00
Brennan 329d826857 Logging API changes 2015-03-04 17:10:56 -08:00
Brennan 16f1ebe6a8 Logging API changes 2015-03-04 17:07:58 -08:00
Brennan acdd9b9d47 Logging API changes 2015-03-04 17:06:49 -08:00
Brennan 5655751d84 Logging API changes 2015-03-04 17:05:50 -08:00
Brennan 4887a77498 Logging API changes 2015-03-04 17:04:05 -08:00
Hao Kung 32ff156923 React to DI changes, AddDataProtection no longer takes Config 2015-03-04 16:35:33 -08:00
ianhong c2f4d13392 Remove [Required] from the Order model to fix a test failure 2015-03-04 16:30:55 -08:00
Praburaj 2af7332667 Adding ILogger<> to the manifest
Change from Hao.
2015-03-04 15:58:19 -08:00
Praburaj 718d923c7d Adding IApplicationLifetime to the manifest
Since IApplicationLifetime is not added to the manifest, while calling HostingServices.Create() before invoking ConfigureServices() we end up creating a new instance of IApplicationLifetime. So the Cancellationtoken that hosting triggers on appshutdown is different from what the app is exposed.
2015-03-04 15:48:31 -08:00
ianhong 5f95406fd0 MusicStore Unit Tests (1) - MVC, EF, Cache, RequestAborted, User 2015-03-04 15:16:23 -08:00
ianhong 6efdbc75c7 Adding a unit test for SignInManager and UnitManager 2015-03-04 14:47:58 -08:00
Praburaj ca3259f703 Implementing IRequestIdentifierFeature
Using code from HttpListener codebase to generate trace ids just to be consistent with other code.
2015-03-04 14:27:08 -08:00
Praburaj ae23f7c7bc Adding a feature to get the traceidentifier for a request
Addresses : https://github.com/aspnet/HttpAbstractions/issues/117

Related changes in Helios & weblistener in separate PRs.
2015-03-04 14:18:51 -08:00
sornaks 284eb9ac6a Reacting to Razor changes - TagHelperOutput is writing to TextWriter instead of string. 2015-03-04 12:56:58 -08:00
sornaks bd9d57d33e Introducing buffering in TagHelperOutput.PreContent, Content, PostContent. 2015-03-04 12:56:13 -08:00
Kirthi Krishnamraju 2e84d68973 Replaced BuddyType attribute with ModelMetadatType and SimpleMapper with Automapper 2015-03-04 08:46:46 -08:00
Praburaj 89f2e3e32a Removing check for NTLM altogether 2015-03-03 17:55:22 -08:00
Ajay Bhargav Baaskaran 38cc9aadb4 React to aspnet/Mvc#2076 changes 2015-03-03 17:12:31 -08:00
Praburaj 7b8ace5489 Re-enable the Ntlm authentication tests
User.IsSignedIn() does not return true for NTLM. So pulling the NTLM check out of the code block.
2015-03-03 16:49:00 -08:00
Hao Kung 1df35b8e8b Reenable OpenId test 2015-03-03 15:51:18 -08:00
Hao Kung 0577454f13 Fix for OpenIdConnect 2015-03-03 15:40:54 -08:00
Praburaj f2d345855b Adding a test for mutable feature collection 2015-03-03 14:07:10 -08:00
Ajay Bhargav Baaskaran 81c3b75980 Replaced WebUtility.HtmlEnode with IHtmlEncoder.HtmlEncode 2015-03-03 13:57:36 -08:00
Praburaj fde3b0d2af OwinFeature collection throws NotSupported exception as the featurecollection is immutable
Addresses: https://github.com/aspnet/HttpAbstractions/issues/207
2015-03-03 12:02:42 -08:00
Ajay Bhargav Baaskaran 7ecce1b666 Replaced WebUtility.HtmlEncode with IHtmlEncoder.HtmlEncode 2015-03-03 11:32:05 -08:00
N. Taylor Mullen e4b1242328 Update missed GlobalImport naming bits in MvcRazorParser.
- These names used to be ViewStart based but were changed (for directive inheritance) to come from GlobalImport.
2015-03-02 21:56:16 -08:00
N. Taylor Mullen bc0ac4d0ea React to aspnet/Razor#309.
- Type and property names changed for a core type that we override, AddOrRemoveTagHelperSpanVisitor => TagHelperDirectiveSpanVisitor.
2015-03-02 21:51:20 -08:00
Hao Kung 14b99ebab1 Skip failing OpenId/NTLM tests to unblock build
https://github.com/aspnet/MusicStore/issues/412 to track
2015-03-02 18:39:20 -08:00
Hao Kung d890f49fc0 Fix sln and kproj 2015-03-02 17:43:59 -08:00
Hao Kung 3406608633 React to Auth changes for MusicStore Spa 2015-03-02 17:24:43 -08:00
N. Taylor Mullen 4bd02badda Add tests to verify tagHelperPrefix directive.
- Added parsing, sub-rewriting, rewriting and code generation tests for runtime/designtime.
- Fixed existing tests to utilize new class structures.

#309
2015-03-02 17:07:07 -08:00
N. Taylor Mullen 4d97a544f1 Add TagHelperPrefix directive.
- Updated TagHelperDescriptor to have a Prefix property. This enables new tooling scenarios such as refactoring prefixes or even giving them their own classification.
- Added invalid prefix cases.
- Added TagHelperPrefix chunks, codegenerator, parsing logic to flow the directive through the Razor pipeline.

#309
2015-03-02 17:07:03 -08:00
Hao Kung 3aaa628365 React to AuthN changes 2015-03-02 16:39:01 -08:00
Hao Kung 850ba6375d React to AuthN/Z changes 2015-03-02 16:31:35 -08:00
Hao Kung 46aaf790c4 React to AuthN changes 2015-03-02 16:14:38 -08:00
Hao Kung c08721c7b3 React to AuthN renames 2015-03-02 15:37:35 -08:00
Hao Kung 775eb5ece4 Split Security into AuthN/AuthZ
AuthenticationType -> Scheme
Move Active/Passive into AutomaticAuthenticationHandler
Security -> Authorization/Authentication assemblies
401-403 logic
Switch from ClaimsIdentity to ClaimsPrincipal
2015-03-02 15:33:52 -08:00
Hao Kung de1e8763dd Security -> Authentication
AuthN renames and design changes
2015-03-02 15:25:52 -08:00
Doug Bunting ae4cafc002 Correct evaluation of expression result in `GenerateSelect()`
- #1468
- Always use `ModelExplorer` in `<select/>`, `DropDownListFor()` and `ListBoxFor()` cases
 - allows evaluation of more-complex expressions
- Use `ViewData.Model` in `DropDownList()` and `ListBox()` template cases
 - `ViewData` was previously ignored in these cases

nit: change `ViewDataDictionary.Eval()` to return `Model` if `expression` is `null` or empty
- now `throw` on `null` or empty `expression` name in `ViewDataEvaluator.Eval()`
- simplifies some of the higher-level code
 - no change to `selectList` fallback; `Model` incorrect for that case
 - no change to `GenerateRadioButton()`; would change behaviour unrelated to #1468
  - this helper uses incorrect `ViewData` lookup text, see #1487
2015-03-02 12:07:43 -08:00
Praburaj e447546e4e Reacting to hosting API changes 2015-03-02 12:03:01 -08:00
Praburaj 747f4137c6 Reacting to Hosting API changes 2015-03-02 11:56:44 -08:00
Praburaj d6535eeba0 Rename IHttpContextAccessor.Value to IHttpContextAccessor.HttpContext
Fixes: https://github.com/aspnet/Hosting/issues/160
2015-03-02 10:38:37 -08:00
Eilon Lipton 16c8d51d0b Fixes #76 - improve error messages in Hosting
Removed the TODOs from messages, and generally made them more readable.
2015-03-01 22:55:27 -08:00