Connection Settings

Keycloak

Keycloak is used when the data provider type is set to CPS. Set up the Keycloak server URL and secret; the other properties can be left as they are.

gkr.customer-profile-service.keycloak-client.id=customer-profile-service
 gkr.customer-profile-service.keycloak-client.server=http://localhost:8080/auth
 gkr.customer-profile-service.keycloak-client.prefix=/admin/realms
 gkr.customer-profile-service.keycloak-client.secret=oqZDH80qyEvfdJT+sfNHfobDzJngB2VEBkDnjMcgnPUIoXOiRJYgU45qz09xhS5x
 gkr.customer-profile-service.keycloak-client.realm=cps-default
 gkr.customer-profile-service.keycloak-client.usersRealm=cps-default 

JWT (JSON Web Tokens) URIs can also be set up inside security.properties:

# Comma separated patterns of JWT issuers. '{tenantRealm}' may be used as placeholder for Keycloak tenant realm.
 gkr.customer-profile-service.multitenancy.issuerPatterns=${keycloak.host.external.url}/realms/{tenantRealm}
# Pattern of URLs with OAuth2 certificates. '{tenantRealm}' may be used as placeholder for Keycloak tenant realm.
 gkr.customer-profile-service.multitenancy.certificatesUrlPattern=${keycloak.host.internal.url}/realms/{tenantRealm}/protocol/openid-connect/certs
# Comma separated patterns of JWT issuers for service to service auth
 gkr.customer-profile-service.service2service.issuerPatterns=http://keycloak/auth/realms/service
# Pattern of URLs with OAuth2 certificates for service to service auth
 gkr.customer-profile-service.service2service.certificatesUrlPattern=http://keycloak/auth/realms/service/protocol/openid-connect/certs
# Comma separated patterns of JWT issuers for CIMS auth
 gkr.customer-profile-service.cims.issuerPatterns=http://keycloak/auth/realms/clients
# Pattern of URLs with OAuth2 certificates for CIMS auth
 gkr.customer-profile-service.cims.certificatesUrlPattern=https://dev-gkr.cloud4retail.co/cims/services/rest/cims/v1/auth/jwks 

Verification

 gkr.customer-profile-service.code-verification.registrationVerificationMethod = LINK_IN_EMAIL | CODE_IN_SMS
 gkr.customer-profile-service.contact-verification.code.length=6
 gkr.customer-profile-service.contact-verification.code.validityPeriod=10m 

SAP

This configuration is used for the data provider type SAP:

# Full url to SAP CDC including port e.g. https://accounts.eu1.gigya.com
gkr.customer-profile-service.sapcdc-customers-provider.url=
# Time to live for connection with SAP CDC
 gkr.customer-profile-service.sapcdc-customers-provider.ttl=100000
# Encrypted SAP CDC api key obtained from SAP console
 gkr.customer-profile-service.sapcdc-customers-provider.api-key=
# Encrypted SAP CDC user key
 gkr.customer-profile-service.sapcdc-customers-provider.user-key=
# Encrypted SAP CDC user secret
 gkr.customer-profile-service.sapcdc-customers-provider.user-secret=
# Set to true to enable SAP CDC calls with extended logging of REST call headers & body
 gkr.customer-profile-service.sapcdc-customers-provider.extendedRestLoggingEnabled=
# Requested action if SAP Passport is used for SAP header (SapCdcRequest is the constant)
 gkr.customer-profile-service.sapcdc-customers-provider.sapPassportAction=SapCdcRequest 
# SAP_ENDORSED (SAP AIR Key)
# Activation Key contents encoded SAP AIR Key plus another data about user of this key
gkr.system.activation.key=
# Activation Signature is generated value used for validating of Activation Key
gkr.system.activation.signature= 

RECAPTCHA

Recaptcha is used to prove that the user is not a robot; in CPS the following settings are used by default:

gkr.customer-profile-service.recaptcha.enabled=false
 gkr.customer-profile-service.recaptcha.url=https://www.google.com/recaptcha/api/
gkr.customer-profile-service.recaptcha.secret=
gkr.customer-profile-service.recaptcha.threshold=5 

SMS Service

SMS service is used for verification by SMS code; in CPS, the following settings are used by default:

# Global configuration for Any SMS login id
gkr.customer-profile-service.sms.id=
# Encrypted Any SMS password
gkr.customer-profile-service.sms.password=
# Global configuration for Any SMS sender name
gkr.customer-profile-service.sms.sender=
# Global configuration for Any SMS gateway port
gkr.customer-profile-service.sms.gateway=
# Sny SMS service base path
 gkr.customer-profile-service.sms.basePath=https://www.any-sms.biz