1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

[EC-338] Update SCIM code naming conventions (revoked/restore) (#2140)

* Keep old endpoints but mark as deprecated
* Do not change existing sproc naming
This commit is contained in:
Thomas Rittson
2022-07-25 10:47:44 +10:00
committed by GitHub
parent cf16be16c6
commit f6a18db582
10 changed files with 93 additions and 61 deletions

View File

@ -424,7 +424,7 @@ namespace Bit.Infrastructure.EntityFramework.Repositories
}
}
public async Task DeactivateAsync(Guid id)
public async Task RevokeAsync(Guid id)
{
using (var scope = ServiceScopeFactory.CreateScope())
{
@ -433,7 +433,7 @@ namespace Bit.Infrastructure.EntityFramework.Repositories
if (orgUser != null)
{
dbContext.Update(orgUser);
orgUser.Status = OrganizationUserStatusType.Deactivated;
orgUser.Status = OrganizationUserStatusType.Revoked;
await dbContext.SaveChangesAsync();
if (orgUser.UserId.HasValue)
{
@ -443,7 +443,7 @@ namespace Bit.Infrastructure.EntityFramework.Repositories
}
}
public async Task ActivateAsync(Guid id, OrganizationUserStatusType status)
public async Task RestoreAsync(Guid id, OrganizationUserStatusType status)
{
using (var scope = ServiceScopeFactory.CreateScope())
{