This commit is contained in:
Anthony Stirling
2023-12-25 15:15:46 +00:00
parent 7fb8f5ed28
commit a286a92ede
5 changed files with 4 additions and 23 deletions

View File

@@ -1,5 +1,4 @@
package stirling.software.SPDF.controller.api.pipeline;
public interface UserServiceInterface {
// Define methods that you need
String getApiKeyForUser(String username);
}

View File

@@ -1,16 +0,0 @@
package stirling.software.SPDF.controller.api.pipeline;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;
@Service
@ConditionalOnProperty(name = "DOCKER_ENABLE_SECURITY", havingValue = "false")
public class UserServiceNoOpImpl implements UserServiceInterface {
// Implement the methods with no-op
@Override
public String getApiKeyForUser(String username) {
// No-op implementation
return "";
}
}