SalesforceCommerceCloud / b2c-crm-sync

... a contemporary perspective on how to integrate B2C Commerce and the Salesforce Customer 360 Platform to power frictionless customer experiences in the B2C domain.
https://salesforcecommercecloud.github.io/b2c-crm-sync/
BSD 3-Clause "New" or "Revised" License
65 stars 45 forks source link

Modify the Account Manager Auth Token token type from UUID to JWT #199

Closed jbachelet closed 1 year ago

jbachelet commented 1 year ago

In order to prepare the b2c-crm-sync framework to the UUID token type depreciation, this PR aims to migrate how b2c-crm-sync authenticates with the B2C Commerce Account Manager, by moving from UUID usage to JWT. Now the auth token is stored in a custom field on the B2C_Auth_Token__c custom object as it cannot live in the Name standard field anymore due to its length.

Screenshot 2022-10-06 at 12 50 42 PM

Related to #195

orvischoinierec commented 1 year ago

Will there be a migration guide as part of this PR that goes along with the code updates? We're starting to explore the impact of this change and have identified b2c-crm-sync as the only place where we are currently using UUID-based tokens.

gabbas-sfcc commented 1 year ago

A customer reported issue while merging this PR into their environment. Changes to B2C_Contact_Integration_History__c are missing in the PR.