Commit Graph

440 Commits

Author SHA1 Message Date
Hao Kung 214db69b0a Identity EF Cleanup
Rename extension method to AddIdentitySqlServer
Switch to using IdentityUser for EF
Add generic support for primary key
2014-07-16 11:53:11 -07:00
Pranav K e40565e91f Reacting to System.Collections versioning change 2014-07-14 15:53:02 -07:00
David Fowler e91b299ce1 Renamed configurations to frameworks in project.json 2014-07-13 21:54:32 -07:00
Hao Kung ba5ca5602e Cleanup style cop violations 2014-06-24 14:58:18 -07:00
Hao Kung 9940cb3cb2 Reenable unit test in its proper home 2014-06-23 15:31:45 -07:00
Hao Kung a45d4fd338 Fix bad merges 2014-06-23 15:11:07 -07:00
Hao Kung 84e140e63c Delete old files 2014-06-23 14:55:17 -07:00
Hao Kung bc4c53f086 Sql implementation + moving in memory stores to test
- Identity.Entity now means only Sql Server EF Identity implementation
- Identity.Entity.InMemory moved to a test project
(Identity.Entity.InMemory.Test)
- Identity.InMemory which was the identity in memory implementation also
moved to a test project (Identity.InMemory.Test)
- IClaimsFactory was promoted to a top level service and now adds any
claims found in a Role that a user belongs to.
- EF implementation now supports logins, claims, roles, two factor,
lockouts
- Initial pass at style cop (mostly line endings since resharper no
worky :()
2014-06-23 14:53:06 -07:00
Brice Lambson f0271851c3 Add missing renames 2014-06-20 09:37:47 -07:00
Brice Lambson 73640e0216 Rename to Microsoft.AspNet.Identity.* 2014-06-20 09:15:04 -07:00
Brice Lambson 38e6846205 React to renames in resources 2014-06-19 18:34:00 -07:00
Brice Lambson 5334a0d8a9 Rename to Microsoft.Framework.Identity.* and bump version to 3.0.0-* 2014-06-19 17:29:27 -07:00
Hao Kung a3991400bc Switch to Crypto from DataProtection 2014-06-12 13:33:19 -07:00
Stephen Halter af66fe1611 Inject all dependencies directly into RoleManager and UserManager
- All dependencies for RoleManager and UserManager should be required
- The old calls to GetService inside the constructors will throw instead of
  returning null if left in after PR aspnet/DependencyInjection#87 is merged
2014-06-11 11:23:49 -07:00
Hao Kung 8001ba8401 Fix sign in regression
Added missing SupportUserTwoFactor guard in SignInManager
2014-06-04 13:08:06 -07:00
Hao Kung 9053ec56a4 Move SignIn Manger to core
Also cleans up CTP1 interface/tests
2014-06-04 10:35:07 -07:00
Brice Lambson 0235d1aa57 React to aspnet/EntityFramework#264 2014-05-28 14:36:51 -07:00
Hao Kung afc361b012 Use OptionModel.Options
Remove IdentityOptionsSetup and related config functionality
2014-05-28 12:16:22 -07:00
Hao Kung c8e8d2dcd4 Change database to unblock tests 2014-05-28 11:51:15 -07:00
ajcvickers af6da760c2 Replacing use of ImmutableDbContextOptions with just DbContextOptions 2014-05-27 11:52:53 -07:00
David Fowler 4da8ae6d03 Fixed project.json casing 2014-05-26 02:49:57 -07:00
Pranav K 8990ec612e Updating kproj file to match tooling changes 2014-05-18 20:13:55 -07:00
Hao Kung ffc9822746 Rename extensions
AddEntity -> AddEntityFramework
AddSecurity -> AddHttpSignIn
2014-05-16 11:13:56 -07:00
Hao Kung 7bf68e0e58 Add AddIdentityEntityFramework 2014-05-15 18:46:56 -07:00
Hao Kung 2d1c1c177d Move builder extensions to IdentityBuilder
Also correctly take TContext instead of looking for DbContext as a
service
2014-05-15 16:06:13 -07:00
Hao Kung 6432655d26 Add builder extensions to service collection 2014-05-15 13:46:15 -07:00
Andrew Peters 9d9489074e Updating copyright headers 2014-05-08 23:01:13 -07:00
Wei Wang 990481e48e Merge branch 'sort-dependencies' into dev 2014-05-07 17:44:02 -07:00
Hao Kung ace88b21be Add support for UserClaims 2014-05-07 17:29:06 -07:00
Wei Wang c2700b495d Sort dependencies and remove duplicates in dependencies 2014-05-07 17:13:31 -07:00
Hao Kung 71750d668b Add support for reading options from config 2014-05-07 15:36:02 -07:00
Hao Kung bfbd8892a1 SignInManager now checks lockout support 2014-05-07 15:02:30 -07:00
Hao Kung 6ca38a31c0 Sql Store 2014-05-07 12:48:56 -07:00
ajcvickers 078ba45477 Updating for SqlServerConnectionString => UseSqlServer change 2014-05-07 10:27:51 -07:00
Hao Kung 2a6a24097c Merge fixes
Conflicts:
	src/Microsoft.AspNet.Identity/IdentityOptionsSetup.cs
	test/Microsoft.AspNet.Identity.Test/IdentityOptionsTest.cs
2014-05-06 14:05:12 -07:00
Hao Kung de2b0a5fbd Fix merge conflicts 2014-05-06 13:58:51 -07:00
Hao Kung 661a3a3c3e Implement Config options 2014-05-06 13:16:22 -07:00
Wei Wang 99e86d2aa1 Fix ordering of usings and dependencies after namespace renaming 2014-05-06 12:39:34 -07:00
Wei Wang ca67e93bc7 Fix dependency issues 2014-05-06 11:22:59 -07:00
David Fowler 0c8cbdab31 React to renames + cleanup 2014-05-06 03:37:06 -07:00
Wei Wang 73f1c6ac46 Update dependency namespace 2014-05-05 20:24:37 -07:00
Pranav K c44d56a182 * Fixing unit test broken by HttpAbstractions rename
* Adding stuff that kproj auto-added
2014-05-05 18:14:47 -07:00
Brice Lambson b5039012bf Correctly react to EF package renames 2014-05-05 16:03:16 -07:00
Hao Kung ab84228c37 Implement Config options 2014-05-05 15:39:34 -07:00
Brice Lambson 6ae622609e React to EF package renames
This is part of aspnet/Data#132
2014-05-05 14:25:44 -07:00
ajcvickers b623f725ba Changes to reflect API renaming in EF. 2014-05-05 13:39:06 -07:00
Hao Kung 31f76b8d58 Initial DI changes from app building
Incorporate feedback and make identity DI friendly everywhere
Also start using the new OptionsSetup
2014-05-02 17:09:24 -07:00
anpete b53a5e4b75 Update file headers 2014-05-01 17:39:44 -07:00
ajcvickers ab1af578dd Updating EntitySet/EntityContext to DbSet/DbContext 2014-04-24 17:25:33 -07:00
ajcvickers 1c3b2ccc31 IDDI again... (Remove call to WithServices)
Per latest changes to EF DI/config.
2014-04-23 13:51:15 -07:00
Hao Kung d827b9fff2 More DI-ify identity
Follow K patterns for DI
- IdentityBuilder
- IServiceProvider constructor
- Unit tests for Startup usage/new DI builder
- Move template default configuration into DefaultServices
2014-04-22 13:31:23 -07:00
ajcvickers 389678042f ID DI (Update Identity to use EF DI/config)
Constructors that take IServiceProvider so it can be injected and also kept the parameterless constructor which will create its own DI container as before--not sure if this is desirable for Identity or not, but can be changed later.
2014-04-18 14:55:55 -07:00
Hao Kung da7140b9d0 Port Identity 2.1 API changes
Add AddToRoles and RemoveFromRoles
2014-04-17 15:46:06 -07:00
Hao Kung 4a3ad0870c Port GetUserId/UserName IIdentity extensions 2014-04-17 12:52:17 -07:00
Hao Kung 43b780c8ac Fix typo in resources.designer.cs
https://github.com/aspnet/Identity/issues/37
2014-04-17 12:20:19 -07:00
Hao Kung b079480383 Add SignOut to SignInManager 2014-04-15 11:21:22 -07:00
Hao Kung 538e8dabea Move POCO to Core
- Move POCO types to core
- Keep Entity pocos initially (will try to remove soon)
- Reenable Entity unit tests now that blocking data bugs have been fixed
2014-04-11 15:00:49 -07:00
David Fowler 1998b65c52 Updated to use the new tooling 2014-04-08 13:01:23 -07:00
Hao Kung e8d7cf4219 Asyncify and Userify
Add Async suffix to async methods
Take TUser instead of userId for Usermanager apis
2014-04-04 13:42:22 -07:00
Hao Kung 6807da690a Remove IUser/IRole and TKey from Managers 2014-04-03 17:17:50 -07:00
Hao Kung 041db7cb69 Initial Identity.Entity implementation
- Most child entities related apis not working/implemented
- Unit tests disabled in kbuild for now

Code review fix
2014-04-03 16:07:46 -07:00
Hao Kung 8549d83b7c Identity.Security not enough to prevent infection
- Viral cancellationToken API infection everywhere
- Add Identity.Security SignInManager which depends on Abstractions
2014-04-02 12:25:52 -07:00
Pranav K 0dcb918084 Updating remaining package versions to match CoreCLR 2014-03-27 18:34:04 -07:00
Pranav K 264fa5204b Update version of System.Text.Encoding to match CoreCLR 2014-03-27 15:25:40 -07:00
Hao Kung c4d32ef1d6 Remove ConfigureAwait(false) everywhere 2014-03-20 09:42:52 -07:00
Hao Kung 5e36691909 Port ClaimsIdentityFactory and more tests 2014-03-19 15:08:43 -07:00
Hao Kung 7adb28a460 Cleanup + more unit tests (Core @ 81%) 2014-03-18 11:26:02 -07:00
Hao Kung f77614c97f Unit test work (Core @ 78%)
Starting using Microsoft.AspNet.Testing
Add/Port a bunch more unit tests
2014-03-17 16:03:54 -07:00
Hao Kung 113bab1a1d Port ConfirmEmail, IQueryableUserStore tests
Also add missing IQueryableUserStore to InMemory
2014-03-12 13:43:28 -07:00
Hao Kung 33715664e2 Port more tests (InMemory @ 92%, Core @ 60%) 2014-03-12 12:13:29 -07:00
Hao Kung bf649a00e1 Reenable some unit tests 2014-03-11 15:05:37 -07:00
Hao Kung 9fbbe0bcc2 Cleanup unneeded diffs in project.json 2014-03-10 15:08:51 -07:00
Hao Kung 7d2855cecb Cleanup required packages for K 2014-03-10 15:05:50 -07:00
Hao Kung e40777cc6b Switch to KRunner add initial DI unit test 2014-03-10 15:00:38 -07:00
David Fowler ed31f6b019 Added required packages for K 2014-03-08 02:40:21 -08:00
Hao Kung d845ef0b7c Switch to using DataProtection for Crypto 2014-03-07 14:19:38 -08:00
Hao Kung 56c67d5ef0 Fix project json immutable references 2014-03-07 14:19:37 -08:00
Hao Kung 5128a030da Port PasswordsHasher, crypto only in Net45 2014-03-07 14:19:36 -08:00
Hao Kung edb709ce9d Undo workaround in Idenitty now that claims is fixed 2014-03-06 16:23:06 -08:00
Hao Kung 1ad07a38d7 Fix build by adding System.Runtime 45 dependencies 2014-03-06 10:13:29 -08:00
Hao Kung 1553c674a4 Back to using System.Security.Claims namespace 2014-03-04 15:43:43 -08:00
Hao Kung bc756706aa Add empty crypto and fix user validator compilation 2014-03-04 13:02:56 -08:00
Hao Kung b13d26cab6 Flesh out implementation, add InMemoryTests
- Implement RoleManager
- Replace IIdentityValidator with IUser/Role/Password Validator
- Add test project.json and working tests for InMemoryUserStore
2014-03-03 17:25:39 -08:00
Hao Kung 06f9b90aea Initial in memory implementation
InMemory implementation for Identity
2014-03-03 13:59:23 -08:00
Hao Kung afa12ea595 Start using K Claims
Remove #if defs and reenable claims referencing aspnet/Claims version in
k10
2014-02-27 16:56:49 -08:00
Hao Kung 27027b917c Split IdentityMessage into its own file 2014-02-19 16:27:47 -08:00
Hao Kung aa4787cc67 Initial Identity Core port, with Crypto/Claims #if net45 commented out 2014-02-19 15:36:18 -08:00
Pranav K 79d615f41f * Moving sln file to root of repository
* Updating build.cmd to the latest from Universe\build_templates
* Updating sln to include k10 \ net45 solution folders
2014-02-06 14:46:31 -08:00
Hao Kung b717e6607a Add DI as depedency for identity 2014-02-06 12:22:58 -08:00
Hao Kung 7e121a9ccd Initial identity repo 2014-01-31 13:38:15 -08:00