-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix ldap user sync error and execute in the background (#1285)
* fix: Domain account synchronization backend execution and logic adjustment * close popups
- Loading branch information
Showing
10 changed files
with
57 additions
and
5 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
src/Services/Masa.Auth.Service.Admin/Application/Subjects/Jobs/SyncLdapUserArgs.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,9 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.Auth.Service.Admin.Application.Subjects.Jobs; | ||
|
||
public class SyncLdapUserArgs | ||
{ | ||
public List<LdapUser> LdapUsers { get; set; } = new(); | ||
} |
18 changes: 18 additions & 0 deletions
18
src/Services/Masa.Auth.Service.Admin/Application/Subjects/Jobs/SyncLdapUserJob.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,18 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the Apache License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.Auth.Service.Admin.Application.Subjects.Jobs; | ||
|
||
public class SyncLdapUserJob : BackgroundJobBase<SyncLdapUserArgs> | ||
{ | ||
private readonly LdapDomainService _ldapDomainService; | ||
public SyncLdapUserJob(LdapDomainService ldapDomainService) | ||
{ | ||
_ldapDomainService = ldapDomainService; | ||
} | ||
|
||
protected override async Task ExecutingAsync(SyncLdapUserArgs args) | ||
{ | ||
await _ldapDomainService.SyncLdapUserAsync(args.LdapUsers); | ||
} | ||
} |
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
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
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