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 @@ -2,22 +2,21 @@
using System.Collections.Generic;
using System.Threading;
using Octopus.Data;
using Octopus.Data.Model;
using Octopus.Data.Model.User;
using Octopus.Data.Storage.User;
using Octopus.Server.Extensibility.Authentication.HostServices;
using Octopus.Server.Extensibility.Authentication.Ldap.Configuration;
using Octopus.Server.MessageContracts.Features.Users;

namespace Ldap.Integration.Tests.TestHelpers
{
internal class FakeUpdateableUserStore : IUpdateableUserStore
{
public IUser AddIdentity(string userId, Identity identity, CancellationToken cancellationToken)
public IUser AddIdentity(UserId userId, Identity identity, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}

public void ClearSecurityGroupIds(string provider, string userId)
public void ClearSecurityGroupIds(string provider, UserId userId)
{
throw new NotImplementedException();
}
Expand All @@ -28,12 +27,12 @@ public IResult<IUser> Create(string username, string displayName, string emailAd
return Result<IUser>.Success(new FakeUser(username, emailAddress, displayName, identities));
}

public void DisableUser(string userId)
public void DisableUser(UserId userId)
{
throw new NotImplementedException();
}

public void EnableUser(string userId)
public void EnableUser(UserId userId)
{
throw new NotImplementedException();
}
Expand All @@ -43,7 +42,7 @@ public IUser[] GetByEmailAddress(string emailAddress)
throw new NotImplementedException();
}

public IUser GetById(string userId)
public IUser GetById(UserId userId)
{
throw new NotImplementedException();
}
Expand All @@ -64,12 +63,12 @@ public IUser GetByUsername(string username)
throw new NotImplementedException();
}

public void SetSecurityGroupIds(string provider, string userId, IEnumerable<string> ids, DateTimeOffset updated)
public void SetSecurityGroupIds(string provider, UserId userId, IEnumerable<string> ids, DateTimeOffset updated)
{
throw new NotImplementedException();
}

public IUser UpdateIdentity(string userId, Identity identity, CancellationToken cancellationToken)
public IUser UpdateIdentity(UserId userId, Identity identity, CancellationToken cancellationToken)
{
throw new NotImplementedException();
}
Expand Down
3 changes: 2 additions & 1 deletion source/Ldap.Integration.Tests/TestHelpers/FakeUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Collections.Generic;
using Octopus.Data.Model.User;
using Octopus.Server.Extensibility.Authentication.Ldap.Identities;
using Octopus.Server.MessageContracts.Features.Users;

namespace Ldap.Integration.Tests.TestHelpers
{
Expand Down Expand Up @@ -31,7 +32,7 @@ public FakeUser(string userName, string email, string displayName, IEnumerable<I

public HashSet<Identity> Identities { get; set; }

public string Id { get; set; }
public UserId Id { get; set; }

public SecurityGroups GetSecurityGroups(string identityProviderName)
{
Expand Down
2 changes: 1 addition & 1 deletion source/Server/Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="Octopus.Configuration" Version="4.0.0" />
<PackageReference Include="Octopus.Diagnostics" Version="2.1.1" />
<PackageReference Include="Octopus.Server.Extensibility" Version="14.0.5" />
<PackageReference Include="Octopus.Server.Extensibility.Authentication" Version="10.0.3" />
<PackageReference Include="Octopus.Server.Extensibility.Authentication" Version="11.0.0" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\images\icon.png">
Expand Down