• Get the basic configuration definitions for a customizable service

    Parameters

    • variables: Dict<undefined | string> = process.env

      process.env variables or custom provided values

    • Optional logger: LoggerFn

    Returns {
        environmentId: (() => string);
        idServiceAuthBaseUrl: (() => string);
        serviceAccountClientId: (() => string);
        serviceAccountClientSecret: (() => string);
        tenantId: (() => string);
    }

    The following configuration values are included:

    tenantId // e.g. TENANT_ID=add3a8b8-c960-4f9e-86ca-4a64d132fbd8
    environmentId // e.g. ENVIRONMENT_ID=c3b69496-0296-4f0e-b128-ace32dce5e53
    idServiceAuthBaseUrl // e.g. ID_SERVICE_AUTH_BASE_URL=https://id.service.eu.axinom.net
    serviceAccountClientId // e.g. SERVICE_ACCOUNT_CLIENT_ID=ff3cde26-2fc0-45c5-b1b1-8f60cd570962
    serviceAccountClientSecret // e.g. SERVICE_ACCOUNT_CLIENT_SECRET=seXdE9XWCGv3tj3j56k38xlQ
    • environmentId: (() => string)
        • (): string
        • Returns string

          Example

          ENVIRONMENT_ID=c3b69496-0296-4f0e-b128-ace32dce5e53
          
    • idServiceAuthBaseUrl: (() => string)
        • (): string
        • Returns string

          Example

          ID_SERVICE_AUTH_BASE_URL=https://id.service.eu.axinom.net
          
    • serviceAccountClientId: (() => string)
        • (): string
        • Returns string

          Example

          SERVICE_ACCOUNT_CLIENT_ID=ff3cde26-2fc0-45c5-b1b1-8f60cd570962
          
    • serviceAccountClientSecret: (() => string)
        • (): string
        • Returns string

          Example

          SERVICE_ACCOUNT_CLIENT_SECRET=seXdE9XWCGv3tj3j56k38xlQ
          
    • tenantId: (() => string)
        • (): string
        • Returns string

          Example

          TENANT_ID=add3a8b8-c960-4f9e-86ca-4a64d132fbd8
          

Generated using TypeDoc