Commit Graph

621 Commits

Author SHA1 Message Date
Nate McMaster 3eae93082f
Merge 2.1.2 into release/2.1 2018-07-10 10:29:05 -07:00
Morten a5237d16f3
Fix misleading exception message when adding a TokenProvider 2018-07-10 14:35:07 +02:00
Wilson add0b0755d Fixed documentation typo (#1862)
Corrected a typo on the XML documentation of the UserId property that made it read "... sets the of the ..."
2018-07-06 14:39:34 -07:00
Pranav K 77693ccdc5 Use partial tag helper instead of Html.Partial to avoid analyzer warning 2018-06-20 16:51:51 -07:00
Pranav K 6cdd622f23 Apply attribute to page model rather than handler 2018-06-20 14:24:35 -07:00
Ryan Brandenburg c2089f9902 Set 2.1 baselines 2018-06-14 16:46:13 -07:00
Ryan Brandenburg d2dcd9c6b9 Set 2.1 baselines 2018-06-14 16:46:02 -07:00
Hao Kung c66bd98a61
Don't hook cancellation tokens by default (#1816) 2018-06-12 13:39:36 -07:00
tstivers1990 dbe054ba6c
Fix /// comments
The returns tag incorrectly states that AddDefaultIdentity<T>
returns IServiceCollection when it actually returns IdentityBuilder.
2018-06-11 16:42:10 -04:00
Hao Kung 2629ceed08 CheckPassword only reset lockout when TFA disabled 2018-05-17 14:05:39 -07:00
Kiran Challa 5403ec47ec Fixed sha-integrity content of script tags in IdentityUI's cshtml files
Related to https://github.com/aspnet/templating/issues/520
2018-05-16 11:46:58 -07:00
Hao Kung e306b8680e
Fix namespace for AddDefaultIdentity (#1781) 2018-05-04 14:05:13 -07:00
Jass Bagga a89dc30d43
AllowAnonymous for external login providers and confirm email (#1769)
Addresses #1762
2018-05-01 12:30:46 -07:00
Jass Bagga ae9aa9ebec
Add AllowAnonymous for resetting password navigation flow (#1744)
Addresses #1736 and aspnet/templating#448
2018-04-13 16:46:00 -07:00
Pranav K e5d9efbd48
Prepare for RazorAssemblyAttribute -> RazorTargetAssemblyAttribute rename 2018-04-13 16:12:19 -07:00
Javier Calvarro Nelson f51af820a5 [Fixes #1742, #1722, #1706, #1725, #1688] Fixes multiple issues
* Update test infrastructure to use the latest bits.
* Add tests for different types of users.
* Logout must redirect instead of just rendering
  the page so that the identity in the request gets
  properly updated
* Remove IUserFactory and IdentityUserFactory.
* Added tests to verify that the default UI endpoints are not accessible
  when the default UI is not enabled.
* Update the user name at the same time when the email is updated.
2018-04-13 15:47:23 -07:00
Hao Kung a273e349ee
Fix error message (#1752)
Fixes https://github.com/aspnet/Identity/issues/1669
2018-04-13 14:31:35 -07:00
Hao Kung 5a2eb3becd
Include social logins and authenticator key as part of personal download (#1745) 2018-04-12 15:41:27 -07:00
Pranav K 034e2ad188 React to future Razor Sdk package breaking changes 2018-04-03 10:35:09 -07:00
Kiran Challa b22c88b567 Fix CDN urls to match the fallback source folders' versions 2018-04-02 12:12:15 -07:00
Kiran Challa 4105ee67e9 [Fixes #1643] Add third party notice to identity UI package 2018-03-30 16:05:42 -07:00
Kiran Challa 0a95aebcb5 Reacting to templating repo's script changes 2018-03-30 15:51:01 -07:00
Kiran Challa 1e7ca96b51 [Fixes #1618] Consider returning a 404 in the DownloadPersonalData.OnGet 2018-03-30 07:35:08 -07:00
Kiran Challa 971f727ea2 [Fixes #1690] AddDefaultUI() throws when using IdentityUser<T> 2018-03-30 07:02:04 -07:00
Hao Kung c7711c2515
Reenable APICheck (#1715) 2018-03-28 12:23:22 -07:00
Hao Kung e0e69525e2
Update new security stamp logic (#1714) 2018-03-28 11:55:09 -07:00
Pranav K f1abe24c76 React to Mvc changes 2018-03-23 09:38:48 -07:00
Pranav K aa49e6990c React to application part changes 2018-03-21 15:42:17 -07:00
Ryan Brandenburg f1d965e5e4 Set 2.0 baselines 2018-03-21 10:52:15 -07:00
Hao Kung 56666e349c Add AddDefaultIdentity 2018-03-20 09:53:34 -07:00
Jass Bagga 910da89882
Use partial tag helper (#1696) 2018-03-19 18:07:45 -07:00
Jass Bagga 9fda68e9db
Update jQuery (#1692) 2018-03-19 13:39:03 -07:00
Pranav K 3919d18c62 React to Razor Sdk changes
Assembly attributes are autogened by Razor Sdk and results in duplicates
2018-03-16 10:18:09 -07:00
Jass Bagga 641dfe3b62
Use RefreshSignInAsync (#1655)
Addresses #1616
2018-03-16 10:05:13 -07:00
Hao Kung efe0c6be7b
Split Auth into AddIdentityCookies (#1442) 2018-03-13 13:11:29 -07:00
Hao Kung 3382a59c5a React to namespace 2018-03-08 16:09:36 -08:00
Hao Kung 9ecbefcf21
ProtectPersonalData + extensiblity support (#1562) 2018-03-08 12:13:34 -08:00
Javier Calvarro Nelson b4cf3ed071 [Fixes #1628] Avoid stomping on an existing FileProvider
Respects the existing one if it's there.
2018-03-05 13:31:49 -08:00
Nate McMaster bbad5d601d
Merge branch 'release/2.1' into dev 2018-03-02 14:13:23 -08:00
Pranav K 0ee3a5d4f4 React to Razor Sdk changes 2018-02-23 15:39:59 -08:00
Jass Bagga 298a1e2a78
Add AllowAnonymous for some Identity razor pages (#1644)
Addresses #1617
2018-02-23 13:57:37 -08:00
Javier Calvarro Nelson 3e30d52055 [Fixes #1639] Reset password doesn't work 2018-02-20 15:10:56 -08:00
Javier Calvarro Nelson 2511862a77 [Fixes #1638] Send confirmation email doesn't generate the callback URI correctly 2018-02-20 15:10:55 -08:00
Javier Calvarro Nelson d1aa7d527b Add an end to end test for login in with a social provider. 2018-02-20 15:10:55 -08:00
Ryan Brandenburg ce7d3c7050 Use ExperimentalPackageVersion 2018-02-15 12:08:34 -08:00
Pranav K 2d405b79d0 Use Razor Sdk from CLI 2018-02-15 08:41:39 -08:00
Javier Calvarro Nelson ac3bea16fd Add functional tests for Identity UI 2018-02-08 14:10:22 -08:00
Hao Kung c6a82ad19a
TFA cookies now validate security stamp (#1351) 2018-02-06 13:27:53 -08:00
Jass Bagga 37b8abf841
Refresh user signin after updating their profile (#1615) 2018-02-05 14:21:19 -08:00
Pranav K c8562728e7 React to Razor Sdk rename 2018-02-02 13:20:58 -08:00
Pranav K 8978907aac Merge remote-tracking branch 'origin/release/2.1' into dev 2018-01-31 13:59:39 -08:00
Pranav K aa92069287 Remove Razor.Design reference 2018-01-31 11:58:34 -08:00
Pranav K aa509316c8 Make Razor.Sdk a build time dependency 2018-01-30 12:27:32 -08:00
Javier Calvarro Nelson 289ea010d7 Fix precompilation 2018-01-26 18:41:21 -08:00
Javier Calvarro Nelson 47060f5e52 Fix build 2018-01-26 16:41:52 -08:00
Javier Calvarro Nelson d05ddf9564 Merge branch 'release/2.1' into origin-dev 2018-01-26 16:15:20 -08:00
Javier Calvarro Nelson 185482c8cf [Fixes #1572] Improve the extensibility of the default identity UI 2018-01-26 16:08:16 -08:00
Pranav K aa03ae6394
Merge pull request #1600 from aspnet/release/2.1
Merge release/2.1 to dev
2018-01-26 15:27:05 -08:00
Pranav K 1c6b7e9161 Exclude content files from package 2018-01-26 14:20:37 -08:00
Hao Kung ae127558b5 2fa UI improvements 2018-01-25 13:42:38 -08:00
Robert Miles 5f838208e8 Fix IUserRoleStore docs (#1594) 2018-01-25 13:40:11 -08:00
Jass Bagga 561f9ef5ec
Revert "Update jquery" (#1593) 2018-01-24 17:17:33 -08:00
Jass Bagga e0d7835448 Revert "Update jquery"
This reverts commit e030d85654.
2018-01-24 16:40:46 -08:00
Hao Kung 855f7532ae Merge remote-tracking branch 'bch/dev' into bch-merge 2018-01-24 13:22:33 -08:00
James Kitamirike ec2ee2272b Fix small typo in method docs (#1557) 2018-01-24 13:14:43 -08:00
Hao Kung 79b4944c0e Fix typo in DownloadPersonalData 2018-01-24 13:12:40 -08:00
Jass Bagga e030d85654 Update jquery 2018-01-23 14:18:18 -08:00
Javier Calvarro Nelson df4db2f49c Fix manage views layout 2018-01-22 14:44:44 -08:00
Javier Calvarro Nelson 5079f708e1 [Fixes #1583] Add authorization to the default Identity UI 2018-01-21 11:31:56 -08:00
Javier Calvarro Nelson d968fdd31f [Fixes #1580, #1581] Update Identity UI to use Razor precompilation
* Switch from using the embedded file provider for the precompiled views
  for actual razor precompilation.
* Add MSBuild props and targets file to include additional assembly
  attributes on the generated precompiled views.
2018-01-21 11:19:16 -08:00
Hao Kung f1ed482c26 Add PersonalData tab/functionality 2018-01-17 11:58:38 -08:00
Pranav K 330823bed8 Make options registerations post configure 2018-01-14 12:59:07 -08:00
Pranav K e44cba9b75 Split showing and generating recovery codes 2018-01-12 11:10:39 -08:00
Pranav K ce88212f49 Use AuthenticatorUrl generated on the server in EnableAuthenticator pages 2018-01-12 11:08:28 -08:00
Hao Kung b07a95dd09
Add Store.MaxLengthForKeys (#1555)
* Add Store.MaxLengthForKeys

If set this will set max length of things we use for composite keys in
UserTokens/Logins

Needed for https://github.com/aspnet/templating/issues/62
2018-01-09 11:32:40 -08:00
Hao Kung 85f8a49aef Shorten folder names 2018-01-08 12:15:12 -08:00
Ryan Nowak de9a35cec6
React to breaking change in MVC
/cc @javiercn
2018-01-02 15:44:04 -08:00
Javier Calvarro Nelson 4b49f2b482 Revert "Revert Move identity into an Area in a library (using Razor Pages) (#1537)"
This reverts commit d612d20344.
2017-12-21 18:17:29 -08:00
Pavel Krymets d612d20344
Revert Move identity into an Area in a library (using Razor Pages) (#1537) 2017-12-21 16:58:59 -08:00
Javier Calvarro Nelson 2964515d85 Adds support for a default UI for identity.
* The default UI uses its own Area (Identity).
* The default UI requires MVC and StaticFiles to be present on the
  request processing pipeline.
* The default UI requires the user to provide a '_LoginPartial ' partial
  view in their application in a location that the view engine will find
  it. This location is tipically /Pages/Shared or /Views/Shared
* Current limitations:
  * The UI is self-contained and non-customizable (outside of things possible with Razor pages).
  * Customizing the User, role, etc. is not supported at this time.
2017-12-21 14:20:42 -08:00
Nate McMaster 145f645bcf
Use MSBuild to set NuGet feeds instead of NuGet.config (#1506) 2017-11-20 15:22:19 -08:00
Pranav K 935780644a Update samples and tests to target netcoreapp2.1 2017-11-14 10:40:53 -08:00
Zarickan 6a31f73984 Corrected typo in IUserTwoFactorTokenProvider.cs
- Corrected typo: "heck" should be "check"
2017-11-13 12:59:21 -08:00
Hao Kung 669aaea3f3 Fix additional code path and add a test 2017-11-10 14:37:14 -08:00
Hao Kung 794bd54cdb Fix issue with AddEntityFrameworkStores and user only store 2017-11-09 13:26:21 -08:00
Nate McMaster 52dfb02175 Pin tool and package versions to make builds more repeatable 2017-10-31 14:43:19 -07:00
Hao Kung 87bbff6586 Alternative fix to GenerateChangePhoneNumber 2017-10-26 14:52:15 -07:00
bchavez 97d488acda
Fix spelling error in failing test. 2017-10-24 15:09:45 -07:00
bchavez 44c58a3042
Corrected copy/paste error in XML doc for SignInManager 2017-10-24 14:59:31 -07:00
bchavez 8928f8446f
House Cleaning - Spell check and grammar. 🚿 2017-10-24 14:59:31 -07:00
Hao Kung 707be3dca0 Fix comment of variance time for Rfc6238 2017-10-24 14:43:41 -07:00
Kristian Hellang 8136fc5306 Use AddHttpContextAccessor method added in aspnet/HttpAbstractions#947 2017-10-10 12:27:27 -07:00
Scott Sauber 700c2afc21 - Add summary to LockoutOptions AllowedForNewUsers.
- Move defaults to summary for better intellisense.
- Added defaults to xml docs where missing.
2017-10-10 12:23:14 -07:00
Tugberk Ugurlu 6ab39281e5 Rename IUserAuthenticatorInfoStore.cs to IUserAuthenticatorKeyStore.cs 2017-10-10 12:21:31 -07:00
hangy 388fea2ed6 Fix ResetPasswordAsync documentation
This seems like it should be the other way around.
2017-10-10 12:20:46 -07:00
Nate McMaster 343f3b2ecd Workaround xunit/xunit#1487 2017-10-06 09:14:32 -07:00
Hao Kung bc75b1a0e7 Rename more generic parameters (#1417) 2017-09-06 11:46:30 -07:00
Hao Kung 3a208fe41c Fix params name and AddRoles (#1406)
AddRoles should not be adding a store, that's done by the store
implementation, it should only be registering the role services.  Also
fixed the TUser/TRole generic parameters names since they were actually
the store types
2017-09-05 10:46:55 -07:00
Javier Calvarro Nelson f11d692976 Rename the area IdentityService to Identity 2017-09-01 14:05:00 -07:00
Nate McMaster c8cf56520a Remove DotNetCliToolReference to workaround NuGet/Home#5716 2017-08-29 15:43:06 -07:00