Data Provider

Data Provider Type

CPS can work in 3 different modes (or use 3 different data providers):

  • CPS (default) - all customer-related data is saved in the CPS database; the Keycloak application is used to store usernames, passwords, etc.
  • SAPCDC - customer data is provided by the remote SAP system (there is no persistence on CPS side)

This can be set up in:

gkr.customer-profile-service.data-provider.type=CPS 

This property influences the usage of other properties, especially those used for connection to other systems.

Multitenancy

CPS can work in different modes for multitenancy. Those parameters can be set:

# Multitenancy mode: FULL | SINGLE | MIXED (in MIXED mode all customers are stored under default tenant)
gkr.customer-profile-service.multitenancy.mode=MIXED
# Pattern for Keycloak realm name, use '{tenantId}' as placeholder for tenantId e.g. tenantId=001, realmNamePattern={tenantId}-customers => realm name: 001-customers
 gkr.customer-profile-service.multitenancy.realmNamePattern=cps-default
# The tenantId that should be used in MIXED mode
 gkr.customer-profile-service.multitenancy.defaultTenantId=001
# Set to true to enable calls without tenant ID if SINGLE mode is used. (Only one tenant in registry is allowed)
tenant.autocomplete.enabled=false
# Set to true to enable calls without tenant ID if MIXED mode is used, should be false for SINGLE and FULL mode
tenant.filter.noTenantAllowed=false