1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 09:32:48 -05:00

Moved Slack OAuth to take into account the Organization it's being stored for. Added methods to store the top level integration for Slack

This commit is contained in:
Brant DeBow
2025-03-24 11:13:23 -04:00
parent 61a621b04b
commit ffda25608c
13 changed files with 200 additions and 124 deletions

View File

@ -47,11 +47,8 @@ public class WebhookEventHandlerTests
clientFactory.CreateClient(WebhookEventHandler.HttpClientName).Returns(_httpClient);
var repository = Substitute.For<IOrganizationIntegrationConfigurationRepository>();
repository.GetConfigurationsAsync<WebhookConfiguration>(
IntegrationType.Webhook,
Arg.Any<Guid>(),
Arg.Any<EventType>()
).Returns(configurations);
repository.GetConfigurationsAsync<WebhookConfiguration>(Arg.Any<Guid>(),
IntegrationType.Webhook, Arg.Any<EventType>()).Returns(configurations);
return new SutProvider<WebhookEventHandler>()
.SetDependency(repository)