Kyma Integration
Note: Spartacus 4.x is no longer maintained. Please upgrade to the latest version.
Note: Spartacus 4.x was tested with SAP Commerce Cloud versions 1905 to 2205. Spartacus 4.x has not been verified to work with (and is not guaranteed to work with) SAP Commerce Cloud 2211 or later releases.
The following steps describe how to integrate Kyma into your Spartacus storefront.
Table of Contents
Prerequisites
If your Spartacus application is running on Commerce Cloud, the following configs should already be in place:
local.properties
:
oauth2.client4kyma.kid=test1
oauth2.client4kyma.keystore.location=/security/keystore.jks
oauth2.client4kyma.keystore.password=nimda123
oauth2.algorithm=RS256
Add a new OAuth client using the following impex:
### Kyma OAuth client
INSERT_UPDATE OpenIDClientDetails;clientId[unique=true] ;resourceIds ;scope ;autoApprove ;authorizedGrantTypes ;authorities ;clientSecret ;registeredRedirectUri ;externalScopeClaimName ;issuer
;client4kyma ;hybris ;openid ;openid ;password,client_credentials ;ROLE_CLIENT ;secret ;http://MY_APPLICATION/ ;scope ;ec
NOTE: these values are for the testing environment. Do not use them in production.
Spartacus Configuration
You can integrate Kyma functionality in Spartacus by providing an appropriate authentication
configuration, as described in Configuring OpenID.