Skip to content

Commit

Permalink
fix: auth is gone
Browse files Browse the repository at this point in the history
  • Loading branch information
arlac77 committed May 31, 2020
1 parent 6ac68a2 commit 053147a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/hook-ci.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ import { expand } from "config-expander";
import ServiceLDAP from "@kronos-integration/service-ldap";
import ServiceAuthenticator from "@kronos-integration/service-authenticator";


import { defaultServerConfig, initializeServer } from "./server.mjs";
import { initializeWebsockets } from "./websockets.mjs";
import { defaultQueuesConfig, initializeQueues } from "./queues.mjs";
import { defaultAnalyserConfig } from "./analyser.mjs";
import { defaultProcessorConfig } from "./processor.mjs";
import { defaultAuthConfig } from "./auth.mjs";
import {
defaultRepositoriesConfig,
initializeRepositories
Expand All @@ -20,7 +18,6 @@ import { defaultNodesConfig, initializeNodes } from "./nodes.mjs";
const here = dirname(fileURLToPath(import.meta.url));

export default async function setup(sp) {

await sp.declareServices({
auth: {
type: ServiceAuthenticator,
Expand All @@ -36,6 +33,10 @@ export default async function setup(sp) {

await sp.start();

console.log(
await sp.services.config.configFor("server", defaultServerConfig.server)
);

const configDir = process.env.CONFIGURATION_DIRECTORY || args[1];

const config = await expand(configDir ? "${include('config.json')}" : {}, {
Expand All @@ -47,7 +48,6 @@ export default async function setup(sp) {
version: "1.0.0",
nodename: "${os.hostname}",
...defaultNodesConfig,
...defaultAuthConfig,
...defaultRepositoriesConfig,
...defaultServerConfig,
...defaultProcessorConfig,
Expand Down

0 comments on commit 053147a

Please sign in to comment.