Skip to content
This repository was archived by the owner on Sep 26, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<LangVersion>default</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Octopus.Data" Version="6.0.0" />
<PackageReference Include="Octopus.Data" Version="7.0.0" />
<PackageReference Include="Octopus.Server.Extensibility" Version="14.0.1" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Octopus.Data;
using Octopus.Data.Model.User;
using Octopus.Data.Storage.User;
using Octopus.Server.MessageContracts.Features.Users;

namespace Octopus.Server.Extensibility.Authentication.HostServices
{
Expand All @@ -20,16 +21,16 @@ IResult<IUser> Create(
bool isService = false,
string? password = null);

void EnableUser(string userId);
void EnableUser(UserId userId);

void DisableUser(string userId);
void DisableUser(UserId userId);

IUser AddIdentity(string userId, Identity identity, CancellationToken cancellationToken);
IUser AddIdentity(UserId userId, Identity identity, CancellationToken cancellationToken);

IUser UpdateIdentity(string userId, Identity identity, CancellationToken cancellationToken);
IUser UpdateIdentity(UserId userId, Identity identity, CancellationToken cancellationToken);

void ClearSecurityGroupIds(string provider, string userId);
void ClearSecurityGroupIds(string provider, UserId userId);

void SetSecurityGroupIds(string provider, string userId, IEnumerable<string> ids, DateTimeOffset updated);
void SetSecurityGroupIds(string provider, UserId userId, IEnumerable<string> ids, DateTimeOffset updated);
}
}