Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sbs auth #326

Merged
merged 2 commits into from
Feb 23, 2024
Merged
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 @@ -19,7 +19,6 @@ public class InitializeFileCommandHandler : IHandler<InitializeFileCommandReques
private readonly IFileRepository _fileRepository;
private readonly IFileStatusRepository _fileStatusRepository;
private readonly IActorFileStatusRepository _actorFileStatusRepository;
private readonly IResourceManager _resourceManager;
private readonly IBackgroundJobClient _backgroundJobClient;
private readonly ILogger<InitializeFileCommandHandler> _logger;

Expand All @@ -30,7 +29,6 @@ public InitializeFileCommandHandler(
IFileRepository fileRepository,
IFileStatusRepository fileStatusRepository,
IActorFileStatusRepository actorFileStatusRepository,
IResourceManager resourceManager,
IBackgroundJobClient backgroundJobClient,
ILogger<InitializeFileCommandHandler> logger)
{
Expand All @@ -40,7 +38,6 @@ public InitializeFileCommandHandler(
_fileRepository = fileRepository;
_fileStatusRepository = fileStatusRepository;
_actorFileStatusRepository = actorFileStatusRepository;
_resourceManager = resourceManager;
_backgroundJobClient = backgroundJobClient;
_logger = logger;
}
Expand All @@ -52,10 +49,6 @@ public async Task<OneOf<Guid, Error>> Process(InitializeFileCommandRequest reque
{
return Errors.NoAccessToResource;
};
if (request.Token.Consumer != request.SenderExternalId)
{
return Errors.NoAccessToResource;
}
var resource = await _resourceRepository.GetResource(request.ResourceId);
if (resource is null)
{
Expand Down
Loading