Praburaj
ae91663eb7
Fixing a few things
...
1. Changing the SigninAsAuthenticationType to a variable to avoid failures when the value changes.
2. Adding a Scripts folder like default VS projects.
3. Adding version numbers to GAC assemblies in the test project.
4. Adding a check for pack-exclude.
2014-10-09 16:11:38 -07:00
Hao Kung
22152fda59
Update test to use UsePerRequestServices
2014-10-09 14:31:56 -07:00
Hao Kung
59ec9de771
React to Identity SqlServer -> EntityFramework rename
2014-10-09 14:20:36 -07:00
Hao Kung
d06c973f57
React to UsePerRequestServices rename
2014-10-09 14:13:51 -07:00
Praburaj
ece6fc6c47
SignInAsAuthenticationType value changed with identity changes
2014-10-08 14:47:55 -07:00
Praburaj
b2a20bf4f5
GetExternalAuthenticationTypes moved to SignInManager now
...
Fixing a sample break.
2014-10-08 14:26:03 -07:00
Hao Kung
95c7a659c2
React to identity/options/security changes
2014-10-08 14:02:04 -07:00
Praburaj
0288c790b0
Cleanup
...
1. Moving framework assembly references to frameworkassemblies node.
Moving the framework references Removing the RunOnMono flag on Ntlm tests as it never runs on mono
2. Deleted a space from the batch file
3. Adding some pack-exclude items
4. Some general test cleanup.
2014-10-02 12:38:54 -07:00
Praburaj
970418448c
Passing in request cancellation tokens to all async methods
...
Changing to use some of EF's async APIs.
2014-10-01 12:06:39 -07:00
Praburaj
f16a0c0f19
Adding some mocks for MicrosoftAccount
2014-09-29 14:41:43 -07:00
Praburaj
63732198cc
Updating the solution
...
Created some solution folders like the VS templates.
2014-09-26 11:08:01 -07:00
David Fowler
17dd874996
Only turn off identity columns for artists and genres.
2014-09-26 02:46:22 -07:00
David Fowler
cbde5ba982
Disable store generated properties for the Ids.
2014-09-26 02:36:17 -07:00
Chris Ross
fd135e29b6
Renaming GetOrAdd to GetOrSet.
2014-09-25 16:56:04 -07:00
Chris Ross
6f7560e33b
Rename GetOrAdd to GetOrSet.
2014-09-25 16:34:25 -07:00
Praburaj
42e23bd261
Enabling the E2E automation for social logins.
2014-09-25 11:48:58 -07:00
Praburaj
3e6ce61f27
Enabling social logins
...
Removing hacks and using identity helpers.
2014-09-24 16:42:05 -07:00
Praburaj
ef11294897
Squashed commit of the following:
...
commit ca4defa086a411094f9e90fbe3acef337d6613bb
Author: Praburaj <praburaj.t@microsoft.com>
Date: Wed Sep 24 15:13:28 2014 -0700
Enabling account validation, 2FA, Forgot password in the sample
Some identity helpers are still missing. Work arounds are applied to enable them working. Will clean it up as soon as identity helpers are available.
commit 6072c45537946c29588cfad92ce5e69ecd21656b
Author: Praburaj <praburaj.t@microsoft.com>
Date: Tue Sep 23 20:08:59 2014 -0700
Using QueryHelpers.ParseQuery for parsing query string.
Removed the helpers implemented in the test project.
commit 632dd8d43fafb6307b3e504731431479aa96ec50
Author: Hao Kung <haok@microsoft.com>
Date: Tue Sep 23 17:24:42 2014 -0700
Remove comment
commit 913fd251a39edcf0182b36be17879484ae90fd90
Author: Hao Kung <haok@microsoft.com>
Date: Tue Sep 23 17:23:12 2014 -0700
React to identity changes
2014-09-24 15:36:24 -07:00
Praburaj
647a5b6031
Enabling account validation, 2FA, Forgot password in the sample
...
Some identity helpers are still missing. Work arounds are applied to enable them working. Will clean it up as soon as identity helpers are available.
2014-09-24 15:13:28 -07:00
Praburaj
1867d11a43
Using QueryHelpers.ParseQuery for parsing query string.
...
Removed the helpers implemented in the test project.
2014-09-23 20:08:59 -07:00
Praburaj
3ce74b6c4e
Adding a way to do a graceful shutdown of the server.
...
This code path is not being used right now as there is no way to select this start up class.
2014-09-19 13:49:42 -07:00
Praburaj
c7cd2e004f
Removing the work around applied for the multi Antiforgery token issue
...
Original MVC bug is fixed now.
2014-09-17 14:11:35 -07:00
Praburaj
de6b05cd86
Updating Social startup as well to use chaining to add configuration sources.
2014-09-16 10:50:24 -07:00
Praburaj
0a3456042a
Updating sample to use config file named config.json instead of LocalConfig.json
2014-09-16 10:48:33 -07:00
Praburaj
671c619a11
Fixing Program.cs to populate a IHostingEnvironment service
...
Also contains a general cleanup.
2014-09-16 10:26:23 -07:00
Praburaj
3d79659cc0
Updating sample readme
...
Also removing some mono related settings on NtlmStartup.
2014-09-16 09:31:38 -07:00
Praburaj
0c6154fcd0
Enabling "authors" element in project.json
...
Related hosting bug is fixed:
https://github.com/aspnet/Hosting/issues/74
2014-09-15 16:34:34 -07:00
Praburaj
2712ae3478
Changing the project folder structure to include wwwroot
2014-09-15 14:05:48 -07:00
Chris Ross
9bc33d6ce8
React to SetSlidingExpiration spelling fix.
2014-09-15 09:32:13 -07:00
Praburaj
39ee3e714a
Reacting to the cache package rename and few misc changes
...
1. Setting expiry time for cached items.
2. Some other misc changes.
2014-09-12 17:09:39 -07:00
Praburaj
e63d4f95d2
Adding an Ntlm variation of the test
...
Modified the helpers to take in an application host config file to accomodate future needs.
2014-09-11 11:10:25 -07:00
Chris Ross
56987a66c6
Handle IBuilder rename to IApplicationBuilder.
2014-09-10 14:47:02 -07:00
Praburaj
0c3cf30d2c
Commenting the external logins from login cshtml to work around a bug
...
https://github.com/aspnet/HttpAbstractions/issues/115
Also adding a work around for the EF issue.
2014-09-10 11:26:29 -07:00
Praburaj
c41407d7b7
Adding cache service to the Ntlm startup
2014-09-09 16:45:19 -07:00
Praburaj
17f3808154
Fixing a build break
2014-09-08 18:14:45 -07:00
Praburaj
093caaae7e
Adding some mocks for Google, Facebook and Twitter for E2Evalidation
...
Social mock tests are not executed right now due to 2 issues:
1. Identity extensions related to Social are not in yet.
2. Helios currently does not support loading of environment based startup class.
2014-09-08 18:02:03 -07:00
Praburaj
7e77078160
Adding in memory caching to the sample
2014-09-05 12:53:08 -07:00
Praburaj
1b6ee846ed
Some cleanup
...
1. Removing a bug # from code which is fixed.
2. Removing a piece of test that was added while testing.
2014-09-04 13:13:17 -07:00
David Fowler
c299a13927
Updated to use the new target framework in project.json
2014-09-04 02:30:32 -07:00
Praburaj
6cf7cbfa5b
Adding all the Social login middlewares to the pipeline
...
Still some of the identity helpers have not lighted up. So it will not work fully.
2014-09-03 16:57:38 -07:00
Praburaj
265a220142
Adding SignalR components to the Ntlm based Startup class.
...
Missed to do this with previous checkin.
2014-09-03 15:55:46 -07:00
Praburaj
b054f392f5
Adding a what's new in the store signalr announcement panel in the sample
...
When a new album is created in the store a notification is posted to all the connected browsers using SignalR.
Also added automation for the signalR hubs.
There is still some UI formatting improvements required in the way new arrivals are displayed. Will fix it in future checkins.
2014-09-03 15:40:01 -07:00
Praburaj
bf7a8c2439
Fixing the build break on the new startup
2014-09-02 11:30:10 -07:00
Praburaj
49ba8ce9ac
Adding a startup class to setup Ntlm authentication
...
This uses the environment based Startup class detection to load the Ntlm Startup class. Default will be the Cookies/Social auth.
2014-09-02 11:07:28 -07:00
Praburaj
b56cecc817
Refactoring the test code a little bit to enable adding more scenarios
...
And some general cleanup.
2014-08-29 16:35:02 -07:00
Praburaj
01c6489454
Adding a LINQ query to get all albums to improve performance
2014-08-29 13:41:43 -07:00
Praburaj
45406bf082
Moving the admin into a separate area
...
Using areas in the sample
2014-08-29 13:06:50 -07:00
David Fowler
94258eba8a
Updated to use the new target framework in project.json
2014-08-29 00:13:02 -07:00
Praburaj
9f4d46714b
Updating the sample to use VS 2013 Update 3 templates for Identity
...
1. This contains the new manage controller with a bunch of features like 2 factor auth
Some of the features are not enabled yet. But this is to set a baseline with update3 templates.
Automation to come up in future as more identity extensions are available.
2014-08-28 16:57:43 -07:00
Hao Kung
e60b1665e3
React to Identity Rename
2014-08-25 11:41:49 -07:00
ajcvickers
9ee9104883
Reacting to ConventionModelBuilder name change
2014-08-15 11:35:24 -07:00
ajcvickers
e2736173e8
Change ModelBuilder to ConventionModelBuilder
2014-08-15 08:45:28 -07:00
Praburaj
cb9184e1c0
Prevent binding on some columns in order
2014-08-12 12:28:11 -07:00
Praburaj
abd215a543
Using HttpNotFound helper in actions returning 404
2014-08-12 11:44:48 -07:00
Praburaj
ca515e3e87
Adding missing Anti-Xsrf token validations in some Post actions
...
1. Also adding this validation on a AJAX only used action.
2014-08-08 12:46:36 -07:00
Praburaj
302f5a00fa
Using auto generated id for albums
2014-07-30 15:31:13 -07:00
Praburaj
7470e3cb28
@Html.ValueFor replaced with @Html.DisplayFor
...
The original sample used @Html.DisplayFor. While porting I changed it to use ValueFor. Xinyang pointed out this difference.
Fixing this so that it can be easily compared with the original sample. The results of the view unchanged.
2014-07-30 15:13:25 -07:00
Praburaj
644c45ae5c
Adding a _ViewStart page to define the Layoutpage
...
Removing the Layout page reference from individual cshtml files.
Added some tests to verify layout getting rendered in every view.
Added a couple of verifications to verify that title of the page is set appropriately.
2014-07-30 14:56:20 -07:00
Suhas Joshi
77a9885118
Handled starting IISExpress based on architecture
2014-07-24 15:39:55 -07:00
Hao Kung
fe30a0418e
React to Identity changes
2014-07-23 12:36:21 -07:00
Praburaj
b440d4ff66
Use InMemoryStore if the sample is being run on Mono
...
Detecting if the application is running on mono and using InMemoryStore instead of SqlServer.
2014-07-22 18:02:22 -07:00
Praburaj
91cc369f4f
Fixing CopyAspNetLoader batch file to consider the new location of AspNet.Loader.dll
...
With a recent change Aspnet.Loader.dll will be restored to %userprofile%\.kpm\packages. Fixing the batch file accordingly.
2014-07-22 16:47:03 -07:00
Praburaj
3c0eefe12e
Merging the MusicStore & MusicStoreIdentity Db into one.
...
This has been a feedback from identity team for a while. Just got time to do it now.
2014-07-22 16:44:23 -07:00
Hao Kung
53e4626127
React to Identity changes
2014-07-15 13:05:07 -07:00
David Fowler
30df49535c
Fixed project.json casing
2014-07-13 22:49:42 -07:00
David Fowler
efd225a9cd
Renamed configurations to frameworks in project.json
2014-07-13 22:31:03 -07:00
DamianEdwards
db429b0d59
Updated AngularHtmlHelper based on MVC changes
2014-07-08 18:23:58 -07:00
Ryan Nowak
42b5aac1b1
fixing a broken link in musicstore.
2014-07-08 17:18:39 -07:00
Ryan Nowak
c2140666d9
fix build break in music store
2014-07-03 19:25:29 -07:00
Praburaj
0b0b5837fd
A few changes with this checkin
...
1. Fixed the delete album action
2. Added a test for add to cart, checkout & delete an album scenarios.
With this the scenario set becomes complete.
2014-07-03 16:05:58 -07:00
Praburaj
047db6d5f4
Change with this submission
...
Fixes # https://github.com/aspnet/MusicStore/issues/105
2014-07-03 12:58:26 -07:00
Praburaj
8c7bc1a9c8
Auto id generation is available for entities
...
Previously the sample had work arounds to generate an id itself while adding a new item into a table. Removing the work around.
2014-07-03 12:37:31 -07:00
Praburaj
04de187189
Changing the connection strings to use Dev14 LocalDB
...
Addresses https://github.com/aspnet/MusicStore/issues/159
2014-07-03 12:35:52 -07:00
Praburaj
974bfcab7a
Adding kestrel variation of the MusicStore tests
...
Variation added for both Desktop & CoreCLR.
Added some more diagnostics to help better trouble shoot with more variations.
2014-07-02 17:32:31 -07:00
Hao Kung
dd1a75370d
React to identity renames
2014-06-23 15:16:43 -07:00
Brice Lambson
54a66fc70e
React to more renames
2014-06-20 09:34:14 -07:00
David Fowler
32cd4db959
React to Helios rename
2014-06-19 22:26:28 -07:00
Brice Lambson
b41abcffa6
React to version bumps and renames
2014-06-19 16:00:13 -07:00
Praburaj
2f88fb4d9d
Removing work around applied
...
Bug https://github.com/aspnet/identity/issues/102 is fixed. Removing the work around applied for the same.
2014-06-06 12:10:46 -07:00
Hao Kung
892afc5fab
React to Identity API changes
2014-06-04 11:13:13 -07:00
Praburaj
a7e4fa9c9d
OptionsServices.GetDefaultServices() call no longer required
...
This is in response to a recent change.
2014-06-03 17:02:07 -07:00
Praburaj
6cd501c5f7
Work around for the identity bug to unblock CI test
...
Identity internally overrides the explicitly specified connection string by overriding it with a default value. This results in reusing a default database causing test failures. Until identity is fixed this is a work around.
2014-05-30 12:19:19 -07:00
Brice Lambson
9cb6325bf3
React to aspnet/EntityFramework#264
2014-05-28 14:36:10 -07:00
Hao Kung
083601c539
Add options services to Startup
2014-05-28 13:43:13 -07:00
Hao Kung
043dbb2940
Changes for OptionsModel
2014-05-28 12:51:48 -07:00
Praburaj
b8782ee2bf
Adding a REST method to the StoreManagerController for automation purpose.
...
Adding this action to get Id of an album given an album name.
2014-05-27 17:29:19 -07:00
ajcvickers
ad49e49b7f
Pass DbContextOptions directly to base DbContext constructor.
2014-05-27 12:48:24 -07:00
Praburaj
11a71e950d
Adding some more test scenarios to MusicStore and moving the scenarios in methods.
2014-05-23 16:11:56 -07:00
Praburaj
8409e9518b
Catching up MusicStore app with code generated with latest templates
2014-05-23 14:35:08 -07:00
Praburaj
81e1e00d78
Removing k.ini to run against latest KRE version
2014-05-22 12:23:56 -07:00
Praburaj
dc9c16ff64
Cleaning up project.json of MusicStore app
2014-05-21 11:56:39 -07:00
Praburaj
3e536055ba
Replacing fixed build numbers with * to enable CI build
...
Created a master branch with fixed build numbers that we used for alpha. Dev branch will build with latest product builds.
2014-05-19 13:23:53 -07:00
Pranav K
e36eb0ffb6
Updating kproj file to match tooling changes
2014-05-18 22:34:02 -07:00
DamianEdwards
0bd2d6af9e
Added port of SPA app to vNext as MusicStore.Spa
...
- Front-end store (catalog) and login with validation working
- Admin pages not working yet
2014-05-16 16:54:27 -07:00
ajcvickers
86e02878ed
Update Music Store to use new EF EnsureCreated method.
...
Also updating project.json to pin the new EF build.
2014-05-13 16:58:15 -07:00
Victor Hurdugaci
e997363b82
Pin to build 1678
2014-05-12 16:35:53 -07:00
kirthik
ce13e28405
Merge pull request #107 from aspnet/ReadmeUpdates
...
Readme updates and deleted build.cmd, lkg.json, kvm.cmd
2014-05-12 16:32:10 -07:00
Kirthi Krishnamraju
82ac180535
modified readme based on pr comments, deleted build.cmd and lkg.json
2014-05-12 16:30:09 -07:00
Hao Kung
9deabcb459
Clean up identity DI
2014-05-12 15:51:51 -07:00
Kirthi Krishnamraju
6196e60f91
Updated Readme.md and k.ini to use 0421 build. Deleted kvm.cmd
2014-05-12 11:51:51 -07:00
Hao Kung
3fcfaeb4e0
Cleanup identity comments
2014-05-12 10:14:55 -07:00
Praburaj
909941fa51
Removing the InMemory store for EF data in CoreCLR.
2014-05-12 08:37:55 -07:00
Victor Hurdugaci
dcc55c97ba
Multiple active result sets
2014-05-11 10:04:20 -07:00
Praburaj
50c9a1de51
Fixing a bug in the sample
...
When creating a new album an album is not generated - resulting in records being created with Id = 0.
2014-05-09 21:16:06 -07:00
Praburaj
1cfe90ae81
web command format change
...
server.name is changed to server in the command expansion.
2014-05-09 09:57:39 -07:00
Praburaj
6a442d6a53
Changing the Startup.Configuration method name to Configure per the recent change.
2014-05-09 09:14:43 -07:00
Praburaj
ab0dc92eb6
Removing the IApplicationEnvironment interface from code
...
With a recent change the file based configuration source will automatically look for the file in the application
base path. So getting the base path from IApplicationEnvironment service is no more necessary.
2014-05-08 21:08:28 -07:00
ajcvickers
66b06950d5
Updating AddEntityFramework call to not use nested closure.
2014-05-08 16:01:56 -07:00
Wei Wang
9434bbc8e3
Sort dependencies and remove duplicates in dependencies
2014-05-08 11:49:47 -07:00
David Fowler
8ed808890c
React to renames
2014-05-08 04:04:37 -07:00
Praburaj
dfe6382463
appSetting "K" to specify the CLR to be loaded is not being honored
...
Removing the appSetting from web.config
2014-05-07 22:47:04 -07:00
Praburaj
9ecdeda83e
Removing Logging related interfaces from sample
...
Now that we have a NullLogger as a part of Hosting. So we don't need to add this service in the sample.
2014-05-07 22:18:46 -07:00
Praburaj
f9693488ca
Verified the bug in the [Compare] dataannotation attribute.
...
https://github.com/aspnet/WebFx/issues/247
Since ModelState.IsValid is now a bool removing the ==true check.
2014-05-07 22:06:16 -07:00
DamianEdwards
d4efedeb17
Added new SPA port of original Music Store app
2014-05-07 17:44:01 -07:00
Hao Kung
4c026726f6
Reenable Admin creation
2014-05-07 17:39:16 -07:00
Hao Kung
be912b15dc
Switch to identity Sql
2014-05-07 17:37:23 -07:00
Praburaj
4f7a0390c9
Enabling code for [ValidateAntiForgeryToken] in the sample.
2014-05-07 17:31:57 -07:00
Praburaj
32ed9c513a
Adding k.ini to enable running on Helios
...
Also fixed the name of the package Microsoft.ComponentModel.DataAnnotations -> Microsoft.DataAnnotations
2014-05-07 14:46:08 -07:00
ajcvickers
4120269fb5
Updating for SqlServerConnectionString => UseSqlServer change
2014-05-07 10:27:59 -07:00
Praburaj
adef8c9093
Fixing the DI namespace in Program.cs
2014-05-06 13:09:12 -07:00
Praburaj
adb50f7fdc
Logging package name changed
...
1. Fixed the package name in project.json
2. Updated the namespaces.
2014-05-06 13:00:32 -07:00
Praburaj
77887f126c
Changing DI package and namespace
...
Dependency injection package changed from Microsoft.AspNet.DependencyInject to Microsoft.Framework.DependencyInjection
2014-05-06 12:05:51 -07:00
Praburaj
be977fbc56
IBuilder moved to the namespace Microsoft.AspNet.Builder. Fixing it in the musicstore.
2014-05-06 12:02:55 -07:00
Wei Wang
2ab97f7d42
Update dependency namespace
2014-05-05 20:29:10 -07:00
Praburaj
c638a77ec9
Updating the MusicStore to use tooling.
2014-05-05 17:02:33 -07:00
Praburaj
6cb38d7926
A few fixes with this checkin:
...
IBuilder moved to Microsoft.AspNet.Http namespace. Fixing the build break.
Changing the version number for Microsoft.ComponentModel.DataAnnotations package to 0.1-alpha-*.
2014-05-05 17:00:49 -07:00
Brice Lambson
06d962291f
React to EF package renames
...
This is part of aspnet/Data#132
2014-05-05 16:09:46 -07:00
ajcvickers
bb427ee393
Reacting to EF class renaming.
2014-05-05 13:43:44 -07:00
Praburaj
cad71fd030
Fixing a compilation warning in AccountController.
2014-05-05 11:40:50 -07:00
Hao Kung
36770ccf05
Update with latest Identity API changes
2014-05-05 11:35:18 -07:00
Praburaj
65d4057132
Injecting ApplicationUserManager in AccountController
...
Injecting IConfiguration to MusicStoreContext
2014-05-01 16:47:01 -07:00
Praburaj
3ae8b93e26
General clean up to the musicstore app
...
1. Removed many unncessary comments
2. Added comments to Startup.cs
3. Fixed some code comments across the app
4. Renamed Config.json -> LocalConfig.json to reflect the scenario
2014-05-01 15:32:21 -07:00
Praburaj
10a280580c
Fixing compilation errors in the view components.
...
Marked one of the controller actions with [HttpGet] to prevent it being chosen for non get methods.
2014-05-01 13:06:13 -07:00
Praburaj
b15aa91661
Modifying the sample to use kvm, k web and k run to run the application.
...
Also modified the readme file to reflect this. Deleted Selfhost.cmd and CustomHost.cmd.
2014-05-01 10:59:06 -07:00
Praburaj
0fe79d94b3
Updating musicstore code to use the ValidationMessageFor Html helper.
2014-05-01 10:20:11 -07:00
harshgMSFT
ab323ac8df
Updating Startup.cs to incorporate use route name.
2014-04-30 16:50:35 -07:00
Praburaj
49e0d42ce7
Improving the sample data insertion time.
...
1. Using dictionaries instead of lists to look up Artists and Genres by name
2. Sample data insertion time decreased to 333ms from 619 ms with this change.
2014-04-29 16:37:56 -07:00
Suhas Joshi
1a92b3048f
Updated CreateAdmin method to return Task and added wait statement
2014-04-29 16:19:43 -07:00
ajcvickers
30dac08fe8
It's DbDatabase! (Updating for changes to database creation APIs)
2014-04-29 10:27:03 -07:00
Praburaj
b7a989256f
Few changes with this checkin:
...
1. Enabling a work around to add an album to the store (Due to bug# https://github.com/aspnet/WebFx/issues/339 ) currently its not possible to create / edit an album in the store.
2. Removing a not necessary route from the webFx routes - A previous CR feedback.
2014-04-28 18:02:21 -07:00
Praburaj
e324f989e7
EditorForModel and EditorFor Html helpers are available now.
...
EditorForModel and EditorFor Html helpers are available now. Updating the sample to use those helpers.
2014-04-28 17:04:55 -07:00
Praburaj
80bccdd810
A bug in authorization filter fixed. Modifying sample to use the fix.
...
A bug in authorization filter at a controller level failing to honor a [AllowAnonymous]
override at an action level was fixed. Modifying the sample to use the fix.
2014-04-28 16:17:23 -07:00
Praburaj
e57ca9ab61
A bug in Html Summary when trying to render error messages in a model state error bag is fixed.
...
Modifying the sample to use the fix.
2014-04-28 16:15:14 -07:00
Praburaj
92904e0d9e
Bug in filtering a claim of a specific type and value is now fixed.
...
Modifying the sample to use the fix.
2014-04-28 16:12:08 -07:00
Praburaj
4a26d740b5
Issue related to having multiple antiforgery token helpers in a single page is now fixed with latest build.
...
I'm uncommenting the code to accomodate the fix now.
2014-04-28 12:08:59 -07:00
Praburaj
a0f5369a20
Model binding can now handle nullable enums. Bug ( https://github.com/aspnet/WebFx/issues/256 ) was fixed to address this.
...
Deleting the comment and uncommenting the sample code.
2014-04-28 11:01:46 -07:00
Praburaj
647ac5dac0
Modifying the Helios.cmd, Selfhost.cmd and CustomHost.cmd to start the application on different ports on different hosting models.
...
This will help us to root cause issues faster with fewer questions.
2014-04-28 10:32:59 -07:00
Praburaj
acb8421c90
Enabling Url.IsLocalUrl in the music store code
2014-04-25 15:58:20 -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
ajcvickers
9d25c0b1f1
Updating EntitySet/EntityContext to DbSet/DbContext
2014-04-24 17:19:01 -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
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
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
David Fowler
93a2ab2352
Fixed the configuration model and other compilation errors
2014-04-23 09:02:07 -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
Hao Kung
5ba60857a7
Identity DI changes
2014-04-22 14:01:42 -07:00
ajcvickers
737afbd610
An injection of musical love... (Updating music store to use new EF configuration and DI)
...
Changes EF setup to use common DI container
Sets up injection of context instances
2014-04-18 13:17:08 -07:00
David Fowler
d138028462
Updated due to change in API
2014-04-17 22:38:08 -07:00
David Fowler
f258b008fa
Fixed build break and used new pattern for using mvc
2014-04-17 21:26:23 -07:00
Hao Kung
3c4a2df2cb
Use DI for Identity
2014-04-17 15:36:17 -07:00
Hao Kung
e61107a381
Switch to using Identity extensions
2014-04-17 14:29:25 -07:00
David Fowler
c06aa04654
Update music store to handle the new changes in aspnet/WebFx#257 and aspnet/WebFx#259
2014-04-17 00:46:24 -07:00
Praburaj
aa7fe89c81
Using a single GetUserName() temporary extension in all places where I try to get the user name. This temporary extension will go away when we have these extensions as part of identity package.
2014-04-16 17:22:05 -07:00
Praburaj
506b439f2f
Using Html.DisplayNameFor helper to generate some titles.
2014-04-16 17:12:23 -07:00
Praburaj
20d0fc9bd8
Enabling code to use Html.LabelFor and Html.Label helpers.
2014-04-16 16:53:53 -07:00
Praburaj
5c3d268327
Deleting a view page related to social login which is not in alpha scope (previously missed to remove this).
2014-04-16 14:17:16 -07:00
Praburaj
439398b7ab
Some minor cleanup:
...
1. Removing a couple of unused enum items which is not required for alpha
2. Cleaning up an unused namespace in Startup.cs
2014-04-16 14:16:07 -07:00
Praburaj
41700cf56d
Changes with this checkin:
...
adding a work around to test the account/manage user feature. With this I can verify password changes work fine.
2014-04-15 17:19:58 -07:00
Praburaj
348d4a11de
Html.ActionLink WebFx bug# 246 is fixed now. Enabling the code to use the helper.
2014-04-15 16:49:46 -07:00
Praburaj
843c952928
Removing some more view pages related to the external login. Also fixed the corresponding views
...
that were trying to render them.
2014-04-15 16:42:13 -07:00
Hao Kung
d4c0e7dd90
Remove set password logic not needed for alpha
2014-04-15 12:23:21 -07:00
Praburaj
7fd711df54
Html.ActionLink generating an incorrect url when trying to generate a link to a different controller + action.
...
Adding a work around with information of a corresponding bug. The work around will go away once we have a fix.
2014-04-15 12:11:05 -07:00
Praburaj
69dae2d216
Enabling code to use RedirectToAction helpers.
2014-04-15 11:45:17 -07:00
Hao Kung
70b45dbe2d
AccountController identity cleanup
...
Use SignInManager where appropriate
Misc cleanup of controller actions
2014-04-15 11:03:18 -07:00
Praburaj
46da4ba9e4
Changes with this checkin:
...
Removing all code related to External login from Account controller.
I also added a little ugly work around to initiate a static UserManager for testing purpose. This should go away shortly.
With this change user can register a user, login & logout.
2014-04-14 18:20:57 -07:00
Praburaj
f95588f0dd
Enabling code to do drop down lists in music store.
2014-04-14 17:26:39 -07:00
Praburaj
24293783f5
Using ViewBag in a view component instead of ViewData.
2014-04-14 15:08:54 -07:00
Praburaj
eeb9326101
Having a layout page in a ViewComponent was the reason for StackOverFlow exception. Removing that fixed the problem.
...
Using ViewData instead of ViewBag in a ViewComponent.
Copying over some of the icons from the original music store required for this view component.
2014-04-14 14:13:30 -07:00
Praburaj
9127f5b930
A few changes with this checkin
...
1. Adding cookies middleware to the music store app
2. Enabling login, register & related management pages to render some UI for testing
3. Updated the LKG.json
2014-04-14 12:35:56 -07:00
Praburaj
b37c811266
CR feedback
...
1. Creating a separate file for AssemblyNeutralInterface.
2. Removing the user name and password settings from web.config.
2014-04-11 16:36:28 -07:00
Praburaj
1b62b248e4
Some of the identity classes changed name. Fixing the same in Music store to fix a build break.
2014-04-11 16:35:04 -07:00
Praburaj
aaae435cc3
Adding a [HttpGet] attribute to enable the Delete album from the store functionality.
...
This action corresponds to a confirmation page to delete the item.
2014-04-10 17:22:55 -07:00
Praburaj
bb241c1a79
Uncommenting code to include ActionName attribute.
2014-04-10 14:23:02 -07:00
Praburaj
1e137c7af9
Getting the application base path from the IoC container.
2014-04-10 14:15:29 -07:00
Praburaj
b51f54e98a
Adding a view component for cart summary
...
1. Added a View component named CartSummary
2. Moved the CartSummary.cshtml as default.cshtml to shared\Components
2014-04-10 13:46:58 -07:00
rowanmiller
58d4b48690
Swap database creation to use EF
...
Swapping database creation to use native support added to EF.
Also swapping to async methods for database initialization.
2014-04-10 09:28:10 -07:00
Praburaj
0f25f9ff6b
Html.ActionLink helper available.
...
Enabling music store code to use the Html.ActionLink helper.
2014-04-09 12:04:53 -07:00
Praburaj
8610e016b3
Setting the full path to load the Config.json.
...
Specifying just the name of the file works fine on selfhost or IISExpress. When app is hosted in IIS, Config.json is being searched in the w3wp3.exe's folder path resulting in an exception.
So fixing the path of Config.json by retrieving the application base path from AppDomain.
2014-04-09 10:43:52 -07:00
Praburaj
f4cee29842
Html.BeginForm works now on Partial views.
...
So uncommenting some code which uses this in music store app.
2014-04-08 16:45:49 -07:00
Praburaj
ccc257f8fc
Adding environment based config to the music store project with a Config.json file for local.
...
If the same set of values (those present in config.json) is present in the environment variables
then ones from environment variables be picked up. This will be the antares scenario where the portal variables
flow in as environment variables with a specific prefix.
2014-04-08 14:21:19 -07:00
Praburaj
c0250392b2
Enabling @RenderSection in the Music store code.
2014-04-08 12:48:12 -07:00
Praburaj
0db736b056
Uncommenting code to use [HttpPost] verb attribute.
2014-04-08 12:25:42 -07:00
Praburaj
3d54a24244
Removing the rendering package from music store app to fix a build error. Rendering and Core are merged now.
2014-04-08 10:42:10 -07:00
Praburaj
45e6e71bc8
Making a few more changes including:
...
1. Adding a view component
2. Adding more partial views from the sample and enabled a few of them.
3. Updating Account controller to accomodate all the recent identity changes.
4. Enabling some available Url helpers like Url.Content
5. Adding a ~ to all the scripts and images as this bug is fixed now.
2014-04-04 17:19:27 -07:00
Praburaj
4709bca281
A few changes with this checkin:
...
1. Removing copyright text from all files per a code review feedback
2. Adding a cookie based session to the application to retrieve the cart Id.
3. Enabled the Accounts controller as we now have the necessary Http abstractions for User, SignIn, SignOut etc.
4. Changing self hosting scripts to run on coreclr by default.
5. Enabling the layout page on all required views.
6. Adding a favico.ico
7. Renaming the Cart property in the EF context to CartItems as it returns a CartItems list.
8. Uncommenting some code which was previously accessing unavailable APIs. They are available now (but yet to validate them).
2014-04-02 18:40:25 -07:00
rowanmiller
dabb68cc6d
Fix EF InvalidOperationException on Startup
...
The code that does an 'UPSERT' of seed data on app start was querying
existing instances and attaching as modified of seed instances on the
same context. Now that we track query results this will throw because
the context has two instances of the same entity (same key value).
Swapping to use a temporary context to query existing data.
2014-03-31 10:45:41 -07:00
David Fowler
351964878f
Updated task package
2014-03-29 03:19:45 -07:00
Praburaj
2a19ec7b2a
Simplifying the options to the error page middleware.
2014-03-27 16:23:58 -07:00
Praburaj
4fc1857994
Fixing a code review comment to change the app name from "BugTracker" to "MusicStore"
2014-03-27 16:20:25 -07:00
Praburaj
5eacb62b62
A few changes with this checkin:
...
1. Adding scripts to self host & custom host Music store
2. Updating readme
3. Cleanup some helper classes that are not necessary.
4. Adding error page middleware for diagnostics.
5. Flipping the switch to run helios on "K" by default.
2014-03-27 16:10:16 -07:00
rowanmiller
fe9770cc80
Use OnModelCreating & OnConfiguring (plus some other cleanup)
...
Swapping context to use OnModelCreating & OnConfiguring now that models
are cached
Adding some [Required] annotations to properties that are really
required in the domain model
Renaming Cart => CartItem because that's what it really is :)
Allowing database to hold some null data now that we can materialize it
(although we can't save it yet)
2014-03-25 16:01:01 -07:00
rowanmiller
965046813e
Swapping data access to use EF
...
Enabling data access against new EF stack.
Uses SQL Server when running on Net45 and an in-memory database for K10
(because SQL Client isn't available on K10 yet).
Various workarounds in place to compensate for missing features in EF
(all marked with "// TODO [EF]..."
2014-03-25 12:50:36 -07:00
Praburaj
5497541e08
Updating the music store application with the latest code.
...
Changes include
(1) Inclusion of all views (with non compiling code commented out)
(2) Inclusion of all models with data annotations
(3) images & setting up of static files
(4) MVC application setup and scripts to run the application
(5) Scripts to clean up the temporary files and capture LKG build.
2014-03-24 15:15:43 -07:00
Hao Kung
1e91cbb565
Back to using System.Security.Claims ns
2014-03-04 15:47:17 -08:00
Hao Kung
169ffaa062
Account controller using Kidentity
...
- Uncomment account controller and switch to KIdentity
2014-03-03 15:28:24 -08:00
Yishai Galatzer
2f8c4b213a
Rename MVC -> MVC.Core requires project.json changes
2014-03-02 23:36:15 -08:00
ajcvickers
d1ac4298c2
Drown your issues in Kool Aid (Updating K Music Store app to use EF/E API surface)
...
This updates the K version of Music Store to use the updated Entity Framework API surface from the data repro. The changes made previously to the models and controllers in the full .NET version are also included here to bring both versions into line. The code is still non-functional as it was before.
2014-02-13 08:49:26 -08:00
David Fowler
53268f3c9e
Initial commit.
...
- Added original music store and k10 and net45 versions with new framework.
2014-01-28 02:27:26 -08:00