Commit Graph

41 Commits

Author SHA1 Message Date
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 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 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 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 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 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
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
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
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 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
Hao Kung d4c0e7dd90 Remove set password logic not needed for alpha 2014-04-15 12:23:21 -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 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 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 0db736b056 Uncommenting code to use [HttpPost] verb attribute. 2014-04-08 12:25:42 -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
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
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