Граф коммитов

445 Коммитов

Автор SHA1 Сообщение Дата
Victor Hurdugaci b407fa056e React to DNX renames 2015-07-29 11:28:06 -07:00
Hao Kung 6931ebe41d Fix but with RemoveRoleClaim 2015-07-27 14:53:38 -07:00
Troy Dai 29549fc0b1 Fix build break 2015-07-22 22:09:51 -07:00
Brice Lambson be98dfb7cf Revert "React to aspnet/EntityFramework#2613"
This reverts commit 769eb9f08b.
2015-07-21 15:38:28 -07:00
Brice Lambson 769eb9f08b React to aspnet/EntityFramework#2613 2015-07-14 10:18:14 -07:00
Troy Dai 8b10187402 Update dependencies 2015-07-09 14:55:25 -07:00
Wei Wang 0dddc41a24 Remove useless and incompatible dependencies 2015-07-09 14:48:56 -07:00
Hao Kung 3321adbe64 Add test verifying passwords are salted 2015-07-02 12:22:21 -07:00
Hao Kung 85d2d3d46a Reenable Functional tests/Fix security stamp 2015-07-02 12:10:36 -07:00
Arthur Vickers 504e7fb228 React to EF namespace changes 2015-06-30 10:59:21 -07:00
Hao Kung 24cf9998f0 React to HTTP/Security changes 2015-06-25 19:08:58 -07:00
Arthur Vickers 3ad117ac83 React to EF name changes 2015-06-23 16:00:47 -07:00
Arthur Vickers 6fa89f5da1 Add missing using directive. 2015-06-19 11:20:41 -07:00
Arthur Vickers 3283d48cca React to removal of RelationalDatabase 2015-06-19 11:11:10 -07:00
Hao Kung 8796f7e78a Merge from release 2015-06-17 11:19:41 -07:00
Hao Kung 1ed2ebcd96 Rename shouldLockout => lockoutOnFailure 2015-06-16 14:39:26 -07:00
Arthur Vickers 100cb7a049 React to EF name changes. 2015-06-16 09:15:21 -07:00
Hao Kung e80853a4cf Cleanup logging 2015-06-11 14:56:25 -07:00
Hao Kung e2d8bfe5cf Cleanup logging in SignInManager 2015-06-10 15:13:28 -07:00
Hao Kung d8b3cf238e Set Max length for names to 256 and add index 2015-06-08 14:11:53 -07:00
Arthur Vickers 8a8332f9f1 React to DbContextOptions name change 2015-05-26 11:37:08 -07:00
Kirthi Krishnamraju 717b7a090c React to aspnet/Configuration #194 2015-05-22 05:53:20 -07:00
Kirthi Krishnamraju 030459b8ba React to aspnet/Configuration #195,#198 2015-05-20 19:34:27 -07:00
Eilon Lipton 99c7859608 Fix build break due to Configuration rename 2015-05-16 23:42:42 -07:00
Eilon Lipton d5cfe839db Merge pull request #459 from hishamco/dev
Using 'nameof' operator instead of magic strings
2015-05-16 22:52:08 -07:00
Hao Kung f0098b6e1e No password = auto fail password checks
Rather than null ref boom...
2015-05-08 10:57:18 -07:00
Chris R 6814576b5e React to Http namespace changes. 2015-05-07 15:30:33 -07:00
Hao Kung 288cb6c58f Test and misc cleanup 2015-05-05 14:35:10 -07:00
Hisham Abdullah Bin Ateya da15e5f71b Using 'nameof' operator instead of magic strings 2015-05-05 20:06:17 +03:00
N. Taylor Mullen ab43154577 Update LICENSE.txt and license header on files. 2015-05-01 13:52:26 -07:00
Chris Ross 3b32348cec React to Auth API changes. 2015-04-24 11:32:15 -07:00
Hao Kung c251bf0162 Add RefreshSignIn 2015-04-23 22:17:24 -07:00
Suhas Joshi 791173fda8 Update security stamp when setting username 2015-04-22 17:46:44 -07:00
Suhas Joshi afff831d62 Updating stores to use TypeDescriptor for type conversion 2015-04-22 17:23:03 -07:00
Hao Kung 3e94336390 Remove hosting and logging dependencies 2015-04-21 17:02:16 -07:00
Kiran Challa 5e8beea941 Reacting to ILogger api changes 2015-04-04 04:22:56 -07:00
Doug Bunting 602e6c2f9d Merge remote-tracking branch 'origin/release' into dev 2015-04-03 11:57:42 -07:00
N. Taylor Mullen 027cc4c38a Update project.json, code=>compile. Also remove **/*.cs and **/*.vs from compile section. These are now defaulted to on. 2015-04-02 16:17:18 -07:00
Doug Bunting f1ef02d2ba Update .xproj files for Microsoft.Web.AspNet.* -> Microsoft.DNX.* rename 2015-04-02 13:49:26 -07:00
Maurycy Markowski adf599339c fixing test build break caused by namespace changes in EF 2015-03-30 14:47:42 -07:00
Suhas Joshi bab1c3909c Enable tests 2015-03-27 16:30:54 -07:00
Suhas Joshi 28dc0245bf Moved POCOs to EF and fixed tests 2015-03-24 11:48:26 -07:00
Suhas Joshi 6143af8149 Added deferred logging with scopes 2015-03-20 12:21:26 -07:00
Hao Kung a6bf4029aa Move extensions IPrincipal => ClaimsPrincipal
Fixes https://github.com/aspnet/Identity/issues/395
2015-03-19 15:24:20 -07:00
Hao Kung 268af34244 React to hosting changes 2015-03-19 11:11:54 -07:00
Suhas Joshi c260beab52 If condition to NOP 2015-03-13 15:22:34 -07:00
Suhas Joshi d8438c9398 Removed setting int PK 2015-03-13 14:25:36 -07:00
Suhas Joshi f0db23be0d Using xunit.runner.aspnet 2015-03-12 19:34:47 -07:00
Hao Kung 9175e6366c Rollback moving IPrincipal extensions 2015-03-12 17:35:29 -07:00
Hao Kung 2246a41978 Add functional tests
+ cleanup
Fixes https://github.com/aspnet/Identity/issues/395
Fixes https://github.com/aspnet/Identity/issues/231
2015-03-12 16:30:32 -07:00
Hao Kung 649cb0caed Remove IConfiguration from AddIdentity 2015-03-11 15:41:43 -07:00
N. Taylor Mullen 3e704f477b Update .kproj => .xproj. 2015-03-11 14:08:41 -07:00
ajcvickers 1671b18545 Update to use DbContextOptionsBuilder 2015-03-11 13:15:40 -07:00
N. Taylor Mullen 1620a4c73b Remove BOM from project.json, *.cmd, *.sh and *.shade files. 2015-03-09 12:55:29 -07:00
N. Taylor Mullen 1ed37d741a Update aspnet50/aspnetcore50 => dnx451/dnxcore50. 2015-03-08 12:51:04 -07:00
Hao Kung 8542a676cb Move away from ILogger<>
Busted for now see https://github.com/aspnet/Hosting/issues/180
2015-03-05 14:04:56 -08:00
Hao Kung c2e96fa570 Remove identity message apis
Fixes https://github.com/aspnet/Identity/issues/359
2015-03-05 13:32:35 -08:00
Victor Hurdugaci 04599f92c1 React to Configuration API changes 2015-03-05 08:14:51 -08:00
Brennan 36686a8e71 Logging API changes 2015-03-04 20:02:21 -08:00
Hao Kung d5b29d7e23 React to DI changes 2015-03-04 18:54:25 -08:00
Hao Kung 3aaa628365 React to AuthN changes 2015-03-02 16:39:01 -08:00
Praburaj 747f4137c6 Reacting to Hosting API changes 2015-03-02 11:56:44 -08:00
Levi B 0b1858d5c1 React to DataProtection renaming 2015-02-25 16:59:57 -08:00
Luke Waters e1502bce00 responding to interface change 2015-02-19 15:17:14 -08:00
Pranav K 15be6edf6a Temporarily skipping failing tests 2015-02-12 18:37:59 -08:00
Hao Kung cd0acd7a47 API Review cleanup #1
- Remove constructor defaults
- Make service properties internal
- Add Logging/HttpContextAccessor services which are required by
identity
2015-02-12 02:21:33 -08:00
Hao Kung 597e2b3153 Remove CancellationToken from Manager APIs 2015-02-10 15:39:42 -08:00
Hao Kung 228995c84c Add missing virtuals
Enable unit test verifying methods are virtual

Fixes https://github.com/aspnet/Identity/issues/349
2015-02-06 13:25:34 -08:00
Suhas Joshi f7dd913c3f Injecting ILogger via DI 2015-02-06 09:54:23 -08:00
Brennan 127858dd7b Updating .kproj files 2015-02-04 16:44:02 -08:00
Suhas Joshi 5d06b0d353 Switched logging from file to inmemory for tests 2015-01-18 17:01:15 -08:00
Suhas Joshi 5bde831eab Using file lock when reading file 2015-01-15 17:30:44 -08:00
Suhas Joshi 7977cf6a46 Making file lock static 2015-01-15 16:50:20 -08:00
Chris Ross 08b2b11940 Remove PipelineCore dependency. 2015-01-15 16:14:08 -08:00
Suhas Joshi 6e294035a5 Added logging to code and updated tests 2015-01-15 15:42:48 -08:00
Hao Kung 69ac9abcc5 Rehash passwords when needed
Fixes https://github.com/aspnet/Identity/issues/17
2015-01-12 12:47:08 -08:00
Hao Kung 41806a6067 Merge branch 'attach1-10' into dev 2015-01-12 12:38:59 -08:00
Hao Kung b59440d95f Normalize all lookups with one service 2015-01-12 12:12:53 -08:00
Hao Kung 06de635149 Add attach tests for disconnected user/role 2015-01-10 02:34:00 -08:00
Hao Kung 0e7755ab79 Remove navigation properties
InMemory test was the only one left using them, moved to a specific user
subclass which had them for that test project
2015-01-07 13:26:47 -08:00
Hao Kung c558fe8d20 Remove DefaultSecurityClaimType constant
Fixes https://github.com/aspnet/Identity/issues/316
2015-01-07 13:24:18 -08:00
Hao Kung a8c872aba9 Concurrency support for EF Store
- CRUD operations on IUserStore now return IdentityResult
- Fixes: https://github.com/aspnet/Identity/issues/296,
https://github.com/aspnet/Identity/issues/245
2015-01-07 13:17:36 -08:00
Hao Kung fd6eb9af67 Fix issue with Remove/Replace claims
Fixes #304
2015-01-02 11:57:01 -08:00
Hao Kung c9d27e27e6 Introduce SignInResult/IdentityError/Describer
Follows Resource pattern (IdentityErrorDescriber.StringName, or
FormatStringName(arg1, arg2)
Also cleaned up optional services, by allowing null in constructor
SignInStatus -> SignInFailure and introduced SignInResult to make
SignInManager APIs consistent with IdentityResult (but no strings needed
for SignIn)
Fixes: #86, #176, #287 and #177
2014-12-30 14:51:52 -08:00
Suhas Joshi 625b270924 Added new apis to query users and fixed EF.Inmemory 2014-12-29 16:09:10 -08:00
Hao Kung 5d29d11ccb Remove all navigation property usage from EF Store 2014-12-19 13:26:54 -08:00
Suhas Joshi ac86d94eb6 Added new methods on IdentityBuilder 2014-12-17 15:54:17 -08:00
Hao Kung f69f46c330 Switch to new xunit 2014-12-15 14:23:04 -08:00
Hao Kung 33d8645187 Add ChangeEmail APIs 2014-12-04 13:25:18 -08:00
Hao Kung 5658af6b61 Allow multiple validators
Role/Password/User validators are now IEnumerable instead of a single
instance
2014-12-04 13:06:41 -08:00
Victor Hurdugaci 0654c86d61 Update the expected exception from the DI container 2014-12-03 14:13:21 -08:00
Suhas Joshi f99a29a12c Make Lockoutend date nullable 2014-12-02 16:20:47 -08:00
ajcvickers f24d3a5462 React to EF change in tests 2014-12-02 14:32:28 -08:00
Victor Hurdugaci 2801adb044 Add schema version to kproj files 2014-11-25 10:53:12 -08:00
Hao Kung d4733f9238 React to GetDefaultServices changes 2014-11-24 13:41:14 -08:00
Hao Kung 66f9803d06 Replace IIdentityMessageService with IUserMessageProvider 2014-11-24 13:41:02 -08:00
Hao Kung 85530742ef Replace AddDefaultIdentity
Break it into
AddIdentity<>.AddEntityFrameworkStores.AddDefaultTokenProviders()
2014-11-21 15:10:35 -08:00
Hao Kung 9f351a09a2 React to fallback changes 2014-11-20 17:42:14 -08:00
Suhas Joshi 0e9fa31da5 Register DataProtection Services in tests 2014-11-18 15:49:34 -08:00
Suhas Joshi 191bf8815c Updating connection strings to use lcatest localdb 2014-11-13 15:49:45 -08:00
Victor Hurdugaci 53d89bb9b5 Update KProj to the latest format 2014-11-12 15:12:39 -08:00
Hao Kung 5c10f9e96b SignOut all identity cookies except for RememberMe
Fixes https://github.com/aspnet/Identity/issues/211
2014-11-12 12:38:34 -08:00
Hao Kung 91eac9f74e Remove old V1 method: FindByUsernamePassword
Replaced with FindUser/CheckPassword

Fixes https://github.com/aspnet/Identity/issues/223
2014-11-12 12:22:50 -08:00
ajcvickers f593b05cc3 React to EF API removal 2014-11-11 10:09:51 -08:00
Levi B bf8728bec9 Allow the application developer to specify the iteration count for membership passwords. 2014-11-05 12:08:20 -08:00
tugberkugurlu d7f711bca1 added replace claim functionality. fixes #232
- added ReplaceClaimAsync method to IUserClaimStore interface
 - implemented ReplaceClaimAsync method from IUserClaimStore inside the
   Microsoft.AspNet.Identity.EntityFramework.UserStore<TUser, TRole,
   TContext, TKey>
 - added ReplaceClaimAsync method to UserManager
 - added UserManager tests for ReplaceClaimAsync method.
 - added some UserStore tests for ReplaceClaimAsync implementation of
   IUserClaimStore
2014-11-04 12:02:17 -08:00
ajcvickers 0bbd7c8b48 Reacting to EF naming change 2014-10-28 18:51:30 -07:00
Hao Kung 556c15273e Add SignInManager CanSignIn
new hook which can be used to block sign in
Fixes https://github.com/aspnet/Identity/issues/129
2014-10-27 15:46:48 -07:00
Hao Kung 2c9f43a160 Enable and fix Async/Cancellation tests 2014-10-27 12:58:46 -07:00
Hao Kung cb3948b86f Use DataProtectionTokenProvider from DI
Fixes https://github.com/aspnet/Identity/issues/224
2014-10-27 12:51:45 -07:00
Levi B 37d4e2b6ff Use stronger password hashing algorithms by default.
New defaults:
Alg: PBKDF2
PRF: HMAC-SHA256
Iter count: 10,000
Salt size: 128 bits
Subkey size: 256 bits
2014-10-22 12:19:46 -07:00
Pranav K 9bd1e8f0a9 Adding type constraint on IdentityBuilder.AddService 2014-10-21 18:08:24 -07:00
Pranav K 4033ea95c6 Fixing compilation issue with EntiryFramework 2014-10-17 07:30:29 -07:00
Pranav K ee6d0cbd6d Fixing build break 2014-10-17 07:16:07 -07:00
Stephen Halter e720edf4bd Change GetService calls to GetRequiredService
GetRequiredService throws for missing services like GetService used to.
2014-10-16 16:07:53 -07:00
Hao Kung 0df5dfd36b React to DI change for GetService 2014-10-16 15:33:59 -07:00
Hao Kung 06c64826ee Delete renamed file 2014-10-16 15:15:06 -07:00
Hao Kung 3a9036a69f Rationalize IdentityDbContext ctors
Also clean up unit tests
2014-10-16 15:14:46 -07:00
ajcvickers e724e4248c Reacting to provider-specific EF API changes 2014-10-15 17:31:04 -07:00
Hao Kung 3abe532761 React to options and hosting changes 2014-10-14 19:19:44 -07:00
Levi B 0a91227a4d Update Identity to account for DataProtection changes. 2014-10-10 12:05:00 -07:00
Hao Kung dd58aeedb1 React to UsePerRequestServices rename 2014-10-08 15:51:35 -07:00
Hao Kung a4ce31c30d Rename Identity.SqlServer back to EntityFramework 2014-10-08 13:36:38 -07:00
Hao Kung ffa226dfa9 React to options / DI / startup changes 2014-10-08 13:11:49 -07:00
David Fowler 665780b18f Fixed failing tests by adding an ILoggerFactory 2014-10-07 01:16:11 -07:00
David Fowler 20d096d865 Fixup references 2014-10-05 11:17:22 -07:00
David Fowler 57cf391581 React to EF changes
- Id properties are automatically identity columns
- Disable identity generation for the CustomPocoTest since they
were setting the id manually
- Refactored the CustomDbContext so the the TValue is TKey instead
2014-09-26 01:27:29 -07:00
Hao Kung 08c6522bf4 Reenable external signout
resolved issued with middleware ordering in AddIdentity
2014-09-25 15:57:22 -07:00
Hao Kung c5d3d32445 Remove UseUserNameAsEmail feature 2014-09-25 15:29:14 -07:00
Hao Kung 76a6c103ce Disable corresponding external signout asserts 2014-09-25 15:23:10 -07:00
Hao Kung 3c277090de Use ApplicationCookie options in more places
- Remove ClaimsIdentity.AuthenticationType now that
ApplicationCookie.AuthenticationType is available
- Also set Expires on a cookies that need them
2014-09-25 14:57:50 -07:00
Hao Kung 57002ba359 Replace AlphaNumericUserName with Regex option 2014-09-24 15:41:19 -07:00
Hao Kung 3f4f846cbb Add social auth and two factor
- Merge Authentication into Core
- Add social login support
- Add two factor support
- Rework options model for startup
2014-09-24 15:05:51 -07:00
Chris Ross 3f76dcc166 Handle the IBuilder rename to IApplicationBuilder. 2014-09-10 12:37:39 -07:00
Hao Kung 19d6805c7c Standardize sql db names for tests 2014-09-09 15:26:29 -07:00
Hao Kung 00261c1984 Drop database at start and end of sql tests 2014-09-09 14:31:11 -07:00
Hao Kung de6b7a0a26 Drop test sql databases at the end of each test run 2014-09-09 13:49:15 -07:00
David Fowler 9d26c40144 Updated to use the new target framework in project.json 2014-09-04 02:10:19 -07:00
David Fowler 0705d3a5ae Updated to use the new target framework in project.json 2014-08-28 23:34:02 -07:00
Hao Kung 952bc6af88 Rename Identity.EF -> Identity.SqlServer 2014-08-25 11:15:52 -07:00
ajcvickers ef1b28eb71 Reacting to ForeignKey API change. 2014-08-19 15:50:14 -07:00
Hao Kung db4e26d161 Fix localdb connection string for UserStoreTest 2014-08-18 11:55:53 -07:00
Hao Kung c80ec3f326 IUserLogin API changes
- Add ProviderDisplayName
- AddLogin continues to take UserLoginInfo
- Remove/Find now only take loginProvider/providerKey
- Refactor unit tests to share a base class
2014-08-18 11:42:26 -07:00
ajcvickers 6db51e74fb Reacting to ConventionModelBuilder name change 2014-08-15 11:37:10 -07:00
ajcvickers 23fb9de162 Change ModelBuilder to ConventionModelBuilder 2014-08-15 08:43:52 -07:00
David Fowler 06ea33ad4f Removed source files from the project 2014-08-15 08:16:09 -07:00
Hao Kung bfa8cf0586 Add missing merge conflict file 2014-08-08 12:01:02 -07:00
Hao Kung 2a45a851a5 Change IUserClaimStore to take IEnumerable<Claims>
https://github.com/aspnet/Identity/issues/163
2014-08-08 11:55:55 -07:00
Hao Kung 097925a3e4 UseUserNameAsEmail support
When set:
- FindByEmail will use UserName
- SetEmail will set the user name and email
- GetEmail will return user name
- This setting does not impact the Get/Set/FindUserName apis
2014-08-07 16:37:26 -07:00
Hao Kung 7d4aed4e3b Clean up sign in manager
- Add SignInOptions
- Also fix SecurityStampValidator issue resolving against wrong service
collection
2014-08-07 16:29:56 -07:00
Chris Ross 48ae50ab67 Fix SignIn params order. 2014-08-07 15:37:43 -07:00
ajcvickers 0ae9406e5c Updating to reflect EF fluent API chaining change. 2014-08-04 13:27:30 -07:00
Hao Kung 626362d8a2 Add NormalizedUserName / IUserNameNormalizer
+ Use normalized username for FindByUserName
2014-07-29 13:45:16 -07:00
Hao Kung 7942d2bc82 Pass user to IPasswordHasher 2014-07-25 11:57:13 -07:00
ajcvickers fec7e55cbf Fix typo 2014-07-24 14:19:39 -07:00
ajcvickers 50a32f0cb8 Reacting to ModelBuilder API change 2014-07-24 14:15:02 -07:00
Hao Kung 07f72c2fb9 Rename Add[HttpSignIn] -> AddAuthentication
Also DefaultAuthenticationTypes.ApplicationCookie ->
ClaimsIdentityOptions.DefaultAuthenticationType
2014-07-23 12:28:19 -07:00
Hao Kung 076ea0385f Add Email and Phone TOTP providers
Now that HMACSHA1 is available on K
2014-07-23 11:57:14 -07:00
Hao Kung 661464004b Remove old files 2014-07-21 10:44:10 -07:00
Hao Kung fc53503d1d Add SecurityStampValidator 2014-07-21 10:42:04 -07:00
Hao Kung 54400baed3 Delete old files 2014-07-16 11:59:03 -07:00
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
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 5334a0d8a9 Rename to Microsoft.Framework.Identity.* and bump version to 3.0.0-* 2014-06-19 17:29:27 -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
ajcvickers bbfb1f2e60 Disabling four tests to unblock the build. Filed issue #107. 2014-06-06 14:54:28 -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
Hao Kung e7a7a71d39 Fix tests 2014-05-28 16:44:30 -07:00
Brice Lambson 0235d1aa57 React to aspnet/EntityFramework#264 2014-05-28 14:36:51 -07:00
Hao Kung 7e4c168f71 Fix tests 2014-05-28 12:37:49 -07:00
Hao Kung afc361b012 Use OptionModel.Options
Remove IdentityOptionsSetup and related config functionality
2014-05-28 12:16:22 -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
ajcvickers ea3ab84340 Forgot to save this file so it didn't get included in the last checkin. 2014-05-14 09:20:59 -07:00
ajcvickers be7c69e5c0 Update Identity tests to use new EF EnsureCreated method. 2014-05-13 15:33:24 -07:00
Andrew Peters 9d9489074e Updating copyright headers 2014-05-08 23:01:13 -07:00
ajcvickers 39626f84ac Fix typo. 2014-05-08 16:12:39 -07:00
ajcvickers e9106fdfa9 Updating AddEntityFramework call to not use nested closure. 2014-05-08 16:02:23 -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 f36ca3fb33 Cleanup 2014-05-07 13:03:55 -07:00
Hao Kung 6ca38a31c0 Sql Store 2014-05-07 12:48:56 -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 2ef4c73654 More build fixes 2014-05-05 18:31:10 -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
Pranav K 28de88aa48 Reacting to namespace changes 2014-05-05 18:01:59 -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
David Fowler 788179b730 Disable k10 tests 2014-05-01 22:06:04 -07:00
anpete b53a5e4b75 Update file headers 2014-05-01 17:39:44 -07:00
Hao Kung 833168867d Update relinq package 2014-05-01 09:27:15 -07:00
ajcvickers ab1af578dd Updating EntitySet/EntityContext to DbSet/DbContext 2014-04-24 17:25:33 -07:00
ajcvickers 9704cbc5ab Comment out test as temp fix for build break. 2014-04-24 13:54:18 -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 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
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
David Fowler 389815482e Updated test to use new ServiceCollection 2014-03-14 23:57:41 -07:00
Hao Kung 4c1f4e26ff Fix typos 2014-03-13 10:42:16 -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 c914772696 Code review feedback
Rename UnitTestHelper to IdentityResultAssert
Rename some classes
Use Theory for Password Validator uber mixed test
2014-03-12 13:14:46 -07:00
Hao Kung 8fde3dfb62 Delete junk file that got added 2014-03-12 12:14:30 -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
Brice Lambson 62bf06bd59 React to xunit changes 2014-03-10 16:22:49 -07:00
Hao Kung e40777cc6b Switch to KRunner add initial DI unit test 2014-03-10 15:00:38 -07:00
Hao Kung 5128a030da Port PasswordsHasher, crypto only in Net45 2014-03-07 14:19:36 -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 5c54e8496d Add test project 2014-02-03 12:42:15 -08:00