maliming
77bc52ed28
Address Copilot review feedback
5 months ago
maliming
ecb23b626d
Add unit tests for shared user covering shared and separate database
5 months ago
maliming
212811d97b
Add update and host-tenant uniqueness tests for AbpIdentityUserValidator
5 months ago
maliming
a613e8899c
Reuse two-factor cookie helper in shared test
5 months ago
Ma Liming
41a0b1236f
Update modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/GetTwoFactorAuthenticationUser_Tests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
5 months ago
Ma Liming
1b2906fdec
Update modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/Shared_SignIn_Tests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
5 months ago
Ma Liming
5c883f373d
Update modules/identity/test/Volo.Abp.Identity.AspNetCore.Tests/Volo/Abp/Identity/AspNetCore/Isolated_TwoFactor_Tests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
5 months ago
maliming
8b48eb7f98
Add shared-user 2FA integration tests
5 months ago
maliming
8ea6b9f025
Make 2FA flows tenant-aware and enforce pre-checks
5 months ago
maliming
db07204b7a
Make UserManager.FindByIdAsync shared-aware by default
- Override IdentityUserManager.FindByIdAsync to fall back to a cross-tenant lookup in shared user sharing strategy so any caller that hits FindByIdAsync from a non-matching tenant context (including base SignInManager internals for TwoFactorSignInAsync and TwoFactorRecoveryCodeSignInAsync) can still resolve a tenant user by id
- Drop the now-redundant AbpSignInManager.GetTwoFactorAuthenticationUserAsync override; the base implementation works automatically through the new FindByIdAsync behavior
- Cover the new FindByIdAsync behavior with unit tests
5 months ago
maliming
7fd2d44dd7
Add contract test covering login-then-two-factor lookup chain
Guards against regressing the data-access contract behind the 2FA redirect bug: login must find a tenant user by user name from a host context, and the 2FA mid-flow must then resolve the same tenant user by id from the same host context.
5 months ago
maliming
cb5c17b124
Add integration test for GetTwoFactorAuthenticationUserAsync in shared mode
Exercises the full cookie round-trip: writes a TwoFactorUserId cookie carrying a tenant user id, then verifies that AbpSignInManager.GetTwoFactorAuthenticationUserAsync returns the tenant user when CurrentTenant is null.
5 months ago
maliming
fa9e4f13cf
Support shared mode lookup by id for two-factor authentication user
- Add IdentityUserManager.FindSharedUserByIdAsync to resolve a user by id across tenants in shared user sharing strategy
- Override AbpSignInManager.GetTwoFactorAuthenticationUserAsync to use it so the 2FA mid-flow can still find a tenant-scoped user when CurrentTenant is host
- Cover the new method with unit tests
5 months ago
maliming
38ef51cec5
Refactor token providers to include cancellation token support and update token handling logic
7 months ago
maliming
6e97ceb0df
Refactor token provider tests to use a common base class for single active token providers and improve token verification logic
7 months ago
maliming
71b52a8ee2
Implement single active token providers for email change, email confirmation, and password reset
7 months ago
maliming
a475272eb5
Implement role-based permission management and admin role checks
7 months ago
maliming
fdae1e3fb9
Use Lazy for principal and guard empty permissions
7 months ago
maliming
cddf0ffa7a
Prevent Privilege Escalation: Add Assignment Restrictions for Roles and Permissions
7 months ago
maliming
1a8df4eb76
Implement localized error messages for AbpIdentityResultException
8 months ago
maliming
39dd49122c
Implement localized error messages for AbpIdentityResultException
8 months ago
maliming
594b0bb628
Add tests for shared user validation across tenants
8 months ago
maliming
273e87f9ed
Add tests for shared tenant user sharing strategy
8 months ago
maliming
50e835ad9d
Add tests for user repository multi-tenant and batch queries
8 months ago
maliming
a430c87664
Update tests to expect AbpIdentityResultException on password change
8 months ago
Ma Liming
73cf4792e1
Update modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/AbpIdentityErrorDescriber_Tests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8 months ago
Ma Liming
289087c282
Update modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/AbpIdentityErrorDescriber_Tests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8 months ago
Ma Liming
2ef4fdef20
Update modules/identity/test/Volo.Abp.Identity.Domain.Tests/Volo/Abp/Identity/AbpIdentityErrorDescriber_Tests.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
8 months ago
maliming
9b29a11d8a
Use `AbpIdentityErrorDescriber` to localize error message instead of `AbpIdentityResultExtensions`.
8 months ago
maliming
f21ffe274f
Add shared user account infrastructure.
9 months ago
maliming
534695d57c
Refactor role search methods to use names instead of IDs and update related components
9 months ago
maliming
08b539403f
Set AbpSqliteOptions.BusyTimeout to null in test modules
9 months ago
maliming
01713685b7
Set AbpSqliteOptions.BusyTimeout to null in test modules
9 months ago
maliming
8eba1b80ce
Add test for FindByPasskeyIdAsync with third credential
10 months ago
maliming
f372e5dceb
Add passkey support to Identity module.
10 months ago
maliming
7d6e3d7259
Add new tests for user and role search methods
10 months ago
maliming
3ff8fb6e78
Upgrade to .NET 10.0.
1 year ago
maliming
3124a0cc0f
Update MongoSandbox pcakages.
1 year ago
maliming
c89946a70e
feat: add includeChildren parameter to GetMembersCountAsync for hierarchical member counting
1 year ago
liangshiwei
750574ad99
Update IdentityClaimTypeManager_Tests.cs
2 years ago
maliming
299512d391
Add custom IdentityErrorDescriber for localized error messages.
2 years ago
maliming
a23fc0c335
Upgrade `MongoDB.Driver` to `3.1.0`.
2 years ago
maliming
731d6f1995
Merge `InvalidUserName` localization texts.
From https://abp.io/support/questions/8215
2 years ago
Patrik Johansson
568c16a18c
Translated to Swedish (sv)
2 years ago
maliming
971dc3b8ba
Upgrade to NET 9.0.
2 years ago
liangshiwei
f632772a96
Prevent a new user's email use another existing user's name
2 years ago
Patrik Johansson
df795c071e
Translated to Swedish (sv)
2 years ago
maliming
f253c336a7
Add `RemoveClaimFromAllRolesAsync` method to `IIdentityRoleRepository`.
2 years ago
maliming
3a7b4191f2
Rename to `RemoveClaimFromAllUsersAsync `.
2 years ago
maliming
54e52eaafd
Add `RemoveClaimFromAllUsers` to `IIdentityUserRepository`.
2 years ago