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

Time to Switch to JWT Access Tokens! #241

Closed GretaPerdichizzi closed 1 year ago

GretaPerdichizzi commented 1 year ago

Discussed in https://github.com/SalesforceCommerceCloud/b2c-crm-sync/discussions/240

Originally posted by **GretaPerdichizzi** May 18, 2023 Hi everyone! I found [this](https://help.salesforce.com/s/articleView?id=000394343&type=1) article about the coming need to switch from UUID to JWT. Are you aware of which are the steps to be compliant to this requirement on Salesforce CRM side? Great thanks! Greta
GretaPerdichizzi commented 1 year ago

Hi everyone,

The fix is the following:

B2CCommerce_B2CClientID_B2CAuthTokenGet.flow-meta _recGetValidAuthToken.Name becomes: _recGet_ValidAuthToken.B2C_AuthToken_c

B2CCommerce_PlatformEvent_ProcessContactUpdate.flow-meta _recGetB2CAuthToken.Name becomes: _recGet_B2CAuthToken.B2C_AuthToken_c

B2CIAPersistB2CAuthToken Name = thisAuthTokenResult.accessToken becomes: _B2C_AuthToken_c = thisAuthTokenResult.accessToken

With the new field B2C_AuthToken__c a long text area of max lenght.

I hope it can be useful, Greta