public boolean isEnabled() {
        BasicAuthConfiguration basicAuthConfiguration = configuration();
        if (basicAuthConfiguration == null) {
            return false;
        }

        return Boolean.TRUE.equals(basicAuthConfiguration.getEnabled()) && basicAuthConfiguration.getUsername() != null && basicAuthConfiguration.getPassword() != null;
    }
@Test
    void initFromYamlConfig() throws TimeoutException {
        assertThat(basicAuthService.isEnabled(), is(true));

        assertConfigurationMatchesApplicationYaml();

        awaitOssAuthEventApiCall("admin@kestra.io");
    }