File

feature-libs/product-configurator/rulebased/root/cpq/interceptor/cpq-configurator-auth.config.ts

Index

Properties

Properties

cpq
cpq: literal type
Type : literal type
Optional
import { Injectable } from '@angular/core';
import { Config } from '@spartacus/core';
import '@spartacus/product-configurator/common';

export interface ProductConfiguratorCpqAuthConfig {
  cpq?: {
    authentication: {
      /** We should stop using/sending a token shortly before expiration,
       * to avoid that it is actually expired when evaluated in the target system.
       * Time given in ms. */
      tokenExpirationBuffer: number;
      /** max time in ms to pass until a token is considered expired and re-fetched,
       * even if token expiration time is longer */
      tokenMaxValidity: number;
      /** min time to pass until a token is re-fetched, even if token expiration time is shorter */
      tokenMinValidity: number;
    };
  };
}

@Injectable({
  providedIn: 'root',
  useExisting: Config,
})
export abstract class CpqConfiguratorAuthConfig {
  productConfigurator: ProductConfiguratorCpqAuthConfig;
}

declare module '@spartacus/product-configurator/common' {
  interface ProductConfiguratorConfig
    extends ProductConfiguratorCpqAuthConfig {}
}

result-matching ""

    No results matching ""