-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: optimize account delegation login
2. account link 3. account delegation
- Loading branch information
Showing
21 changed files
with
397 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
# Account | ||
# Account | ||
|
||
Account enhancements, such as 2fa, external login, account settings. | ||
an abp module that provider account service, such as login, 2fa, account link, impersonation, settings | ||
|
||
- Local Login | ||
- Externa Login | ||
- MFA Login | ||
- 2FA Management | ||
- Account Link | ||
- Account User Impersonation | ||
- Account User Delegation | ||
- Account Security Logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
modules/account/src/Passingwind.Abp.Account.Application.Contracts/AccountUnlinkDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
using System; | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace Passingwind.Abp.Identity; | ||
|
||
public class AccountUnlinkDto | ||
{ | ||
[Required] | ||
public Guid UserId { get; set; } | ||
public Guid TenantId { get; set; } | ||
public Guid? TenantId { get; set; } | ||
} |
10 changes: 10 additions & 0 deletions
10
...count/src/Passingwind.Abp.Account.Application.Contracts/AccountUserDelegationCreateDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
|
||
namespace Passingwind.Abp.Account; | ||
|
||
public class AccountUserDelegationCreateDto | ||
{ | ||
public Guid UserId { get; set; } | ||
public DateTime StartTime { get; set; } | ||
public DateTime EndTime { get; set; } | ||
} |
13 changes: 13 additions & 0 deletions
13
...les/account/src/Passingwind.Abp.Account.Application.Contracts/AccountUserDelegationDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System; | ||
|
||
namespace Passingwind.Abp.Account; | ||
|
||
public class AccountUserDelegationDto | ||
{ | ||
public Guid Id { get; set; } | ||
public Guid UserId { get; set; } | ||
public string? UserName { get; set; } | ||
public DateTime StartTime { get; set; } | ||
public DateTime EndTime { get; set; } | ||
public bool IsActive { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...unt/src/Passingwind.Abp.Account.Application.Contracts/IAccountUserDelegationAppService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.Application.Dtos; | ||
using Volo.Abp.Application.Services; | ||
|
||
namespace Passingwind.Abp.Account; | ||
|
||
public interface IAccountUserDelegationAppService : IApplicationService | ||
{ | ||
Task<ListResultDto<AccountUserDelegationDto>> GetMyDelegationListAsync(); | ||
|
||
Task<ListResultDto<AccountUserDelegationDto>> GetDelegatedListAsync(); | ||
|
||
Task CreateAsync(AccountUserDelegationCreateDto input); | ||
|
||
Task DeleteAsync(Guid id); | ||
|
||
Task<ListResultDto<UserBasicDto>> UserLookupAsync(string? filter = null); | ||
} |
12 changes: 12 additions & 0 deletions
12
modules/account/src/Passingwind.Abp.Account.Application.Contracts/UserBasicDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Passingwind.Abp.Account; | ||
|
||
public class UserBasicDto : EntityDto<Guid> | ||
{ | ||
public string UserName { get; set; } = null!; | ||
public string? Name { get; set; } | ||
public string? SurName { get; set; } | ||
public string? Email { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.