Commit Graph

44213 Commits

Author SHA1 Message Date
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
Doug Bunting 28561e9924 Follow up to `ModelExplorer` creation
- see commit 9d5364c
- never correct to pass a `Func<object>` to `GetExplorerForExpression()`
- `<label/>` tests succeeded because that tag helper doesn't use expression result
- `<select/>` tests succeeded because that tag helper gets result from `ViewData`
 - does not use `ModelExplorer` due to #1468

nit: update variable names `metadata` -> `modelExplorer`
2015-03-01 09:39:36 -08:00
Eilon Lipton 653cb005cb Update README.md 2015-02-28 10:35:35 -08:00
Eilon Lipton 2f960b9e3b Merge pull request #206 from ajuckel/dev
Remove space from ISignOutContext filename
2015-02-28 10:33:26 -08:00
Anthony W. Juckel ba2c06072e Remove space from ISignOutContext filename 2015-02-28 01:20:25 -06:00
Praburaj 698af6d1d3 Reacting to hosting API changes 2015-02-27 16:18:05 -08:00
Levi B e9fb79a4fb React to rename: AddEncoders -> AddWebEncoders 2015-02-27 14:48:13 -08:00
Levi B 04707ccaa0 Add unit tests for the service provider extensions 2015-02-27 14:44:12 -08:00
Levi B a1dbce9065 Rename AddEncoders -> AddWebEncoders 2015-02-27 12:55:55 -08:00
Suhas Joshi eeb6c983fe Update to new version of Linq.Expressions 2015-02-27 11:48:46 -08:00
Praburaj 6bf5eabd9f Hosting API review # 2
1. Moving HostingUtilities and PipelineInstance into internal namespaces.
2. Renaming some properties in IHostingEnvironment
3. Renaming IHttpContextAccessor HttpContext into Value.

Addresses:
https://github.com/aspnet/Hosting/issues/159
https://github.com/aspnet/Hosting/issues/157
https://github.com/aspnet/Hosting/issues/161
2015-02-27 11:30:38 -08:00
Levi B eb42bc51fb CodePointFilter parameterless ctor should be empty, not Basic Latin 2015-02-27 11:30:01 -08:00
Levi B 0ca24147a0 Add unit tests and code generation routines 2015-02-27 11:30:00 -08:00
damianedwards 72533d66df Update functional test:
- #1577
2015-02-27 10:44:35 -08:00
damianedwards 8b64e3c7bb Add support for globbing to ScriptTagHelper:
- Fixes #1577
2015-02-27 10:37:36 -08:00
damianedwards 6490b113d8 Make LinkTagHelper JS down-level browser safe:
- #2088
2015-02-27 10:20:29 -08:00
Wei Wang 64ddbe0160 React to runtime perf changes in functional tests 2015-02-27 02:53:46 -08:00
Wei Wang 69294f06d6 React to runtime perf changes 2015-02-27 00:27:29 -08:00
Levi B bf0f94ce20 Store reg keys in a different folder to mitigate impact of renaming changes 2015-02-26 23:46:02 -08:00
Eilon Lipton eb2887e5ef Merge pull request #153 from dtkujawski/dev
Ability to derive Startup from base class
2015-02-26 22:39:07 -08:00
Brennan 3260787f2b NullLogger moved location 2015-02-26 18:16:37 -08:00
Pranav K ed3f5118e3 Reacting to NullLoggerFactory removal 2015-02-26 17:52:50 -08:00
Pranav K 73f44889f2 ViewLocationExpanderContext should have a flag that indicates if the
lookup is for a full or partial view

Fixes #1212
2015-02-26 16:41:54 -08:00
ajcvickers a65ebbf1f1 React to EF change 2015-02-26 15:31:49 -08:00
Praburaj e1301925c0 Reacting to hosting api changes 2015-02-26 12:26:50 -08:00
Praburaj 97d9b2e385 Reacting to hosting changes 2015-02-26 12:19:11 -08:00