feature-libs/product-configurator/rulebased/root/cpq/interceptor/cpq-configurator-auth.config.ts
Properties |
productConfigurator |
Type : ProductConfiguratorCpqAuthConfig
|
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 {}
}