I have integrated AEM with Salesforce using salesforce cloud config. I am able to connect to salesforce successfully and able to pull data from salesforce. After sometime when I access aem page am getting error below
[{"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}]
I have also checked below settings in salesforce
Session timeout after 4 hours of inactivity
Selecte OAuth scopes
Perform requests on your behalf at any time (refresh_token, offline_access)
Access and manage your data (api)
Full Access (Full)
Resolution:
In salesforce we need to remove Full Access (Full) OAuth Scopes, if we use this then refresh token will not be effective.

Check here how to integrate Salesforce with AEM
I have also checked below settings in salesforce
Session timeout after 4 hours of inactivity
Selecte OAuth scopes
Perform requests on your behalf at any time (refresh_token, offline_access)
Access and manage your data (api)
Full Access (Full)
Resolution:
In salesforce we need to remove Full Access (Full) OAuth Scopes, if we use this then refresh token will not be effective.

Check here how to integrate Salesforce with AEM
No comments:
Post a Comment
If you have any doubts or questions, please let us know.