Commit Graph

147 Commits

Author SHA1 Message Date
ajcvickers 1428d31463 Read connection string explicitly. 2015-03-20 16:17:12 -07:00
ajcvickers a76b6cac24 Stop passing IConfiguration to AddEntityFramework 2015-03-20 14:25:25 -07:00
Praburaj 5004bac6aa React to AddSessionServices rename to AddSession 2015-03-13 11:56:20 -07:00
Praburaj 36271260a1 Reacting to Caching extension rename 2015-03-12 17:06:16 -07:00
Praburaj ad9e11ed2e React to Caching package rename
Dependent on https://github.com/aspnet/Caching/pull/49/files
2015-03-11 17:39:00 -07:00
Hao Kung c49fd85c56 React to identity changes 2015-03-11 16:10:55 -07:00
Praburaj 39fc5ebdc4 Making the tests robust
And some general cleanup
2015-03-11 14:48:34 -07:00
Hao Kung 28bfb92e63 React to identity changes 2015-03-05 14:23:12 -08:00
Hao Kung 850ba6375d React to AuthN/Z changes 2015-03-02 16:31:35 -08:00
Praburaj 7da407a17a Using statuscode pages in the sample
Adding some automation as well.
2015-02-16 17:22:57 -08:00
Praburaj 8617bdc223 Printing the runtime information at the beginning of the test 2015-02-04 11:10:53 -08:00
Praburaj d29f24f4ad Using session to store the cart details instead of cookies. 2015-01-26 10:51:20 -08:00
Hao Kung 464438862a Fix music store policies 2015-01-16 15:15:19 -08:00
Hao Kung ef22f9fb30 React to MVC/Auth changes 2015-01-15 23:52:52 -08:00
Praburaj a6bf0e16aa Adding console logger to the sample 2015-01-09 15:12:53 -08:00
Praburaj e609602f2f Clean up and refactoring
1. Removed some console logging statements from code
2. Used database error page like templates.
3. Renamed the command `WebListener` to `web` with all lower case to be consistent with templates.
4. Lowercased `Kestrel` => `kestrel` to be consistent with remaining samples.
2014-12-30 13:16:08 -08:00
Praburaj d9148bd6f7 Fixing KRE_ENV to ASPNET_ENV 2014-12-22 19:04:55 -08:00
Praburaj 50b756a776 Clean up - removing work arounds for bugs
1. Removed worked arounds that were previously applied for bugs as they are fixed now.
2. Sorted all using statements. Moved System.* to the top.
3. Fixed some of the code to follow engineering guidelines.
2014-12-15 11:48:24 -08:00
Hao Kung d8041cbbae React to identity changes 2014-11-24 16:41:16 -08:00
Praburaj 5ae536fe0a Some fixes
1. Updating some startup classes like templates
2. Update a test that runs on mono with right CLR.
2014-11-20 16:04:48 -08:00
Suhas Joshi 28d49310bf Added for configuration to use only Identity 2014-10-20 17:05:32 -07:00
Chris Ross 390bf8f024 Update MemoryCache DI. 2014-10-20 11:30:53 -07:00
Suhas Joshi 7dd78bbfef Changes to use AddDbContext method 2014-10-16 16:11:09 -07:00
Victor Hurdugaci 0ef93b94dc Add the runtime info page when running in dev environment 2014-10-16 09:28:03 -07:00
Hao Kung d375e87a4e React to options and hosting changes 2014-10-14 19:22:51 -07:00
Suhas Joshi 3c7ba368fe Added Error Handler middleware and Configure methods based on compilation types 2014-10-14 15:31:47 -07:00
Hao Kung d06c973f57 React to UsePerRequestServices rename 2014-10-09 14:13:51 -07:00
Hao Kung 95c7a659c2 React to identity/options/security changes 2014-10-08 14:02:04 -07:00
Praburaj f16a0c0f19 Adding some mocks for MicrosoftAccount 2014-09-29 14:41:43 -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 0a3456042a Updating sample to use config file named config.json instead of LocalConfig.json 2014-09-16 10:48:33 -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
Chris Ross 56987a66c6 Handle IBuilder rename to IApplicationBuilder. 2014-09-10 14:47:02 -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 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 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 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
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 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
Hao Kung dd1a75370d React to identity renames 2014-06-23 15:16:43 -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
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
Hao Kung 083601c539 Add options services to Startup 2014-05-28 13:43:13 -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
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
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
David Fowler 8ed808890c React to renames 2014-05-08 04:04:37 -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
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 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 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
Hao Kung 36770ccf05 Update with latest Identity API changes 2014-05-05 11:35:18 -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
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
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 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
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
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
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 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
Hao Kung d4c0e7dd90 Remove set password logic not needed for alpha 2014-04-15 12:23:21 -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 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 1e137c7af9 Getting the application base path from the IoC container. 2014-04-10 14:15:29 -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 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 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 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 2a19ec7b2a Simplifying the options to the error page middleware. 2014-03-27 16:23:58 -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 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