Commit Graph

64 Commits

Author SHA1 Message Date
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 b97cedb4eb Updating the Readme.md to remove a manual clean up step instruction as the scripts already perform that. 2014-04-14 12:38:10 -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 f5e9d4d8aa Merge branch 'dev' of github.com:aspnet/MusicStore into dev 2014-04-04 17:21:34 -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
Hao Kung 4d1bd6095b Fix identity API changes in Startup.cs 2014-04-04 14:59:38 -07:00
Hao Kung 5bb8f602f1 Fix build issues in Startup.cs
Update for Identity API changes
2014-04-04 14:55:47 -07:00
Pranav K e4af75dddf Fixing issue in Starup.cs to unblock build 2014-04-04 10:47:28 -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