Commit Graph

70 Commits

Author SHA1 Message Date
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 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
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 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
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 7e77078160 Adding in memory caching to the sample 2014-09-05 12:53:08 -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 45406bf082 Moving the admin into a separate area
Using areas in the sample
2014-08-29 13:06:50 -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
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 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 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
Hao Kung dd1a75370d React to identity renames 2014-06-23 15:16:43 -07:00
Hao Kung 892afc5fab React to Identity API changes 2014-06-04 11:13:13 -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
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
Hao Kung 9deabcb459 Clean up identity DI 2014-05-12 15:51:51 -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 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
Praburaj 4f7a0390c9 Enabling code for [ValidateAntiForgeryToken] in the sample. 2014-05-07 17:31:57 -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 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