[MKTAUT-51] re-generate new token when token is expired for salesforce Created: 23/Oct/19  Updated: 19/Nov/19  Resolved: 13/Nov/19

Status: Closed
Project: Marketing Automation
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Bug Priority: Neutral
Reporter: Oanh Thai Hoang Assignee: Chuong Doan Huy
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 3.75d
Original Estimate: Not Specified

Attachments: PNG File Screen Shot 2019-10-23 at 17.35.47.png     PNG File Screen Shot 2019-10-23 at 17.41.56.png     PNG File set-up-time-out-in-connected-app.png    
Issue Links:
Cloners
clones MKTAUT-39 Generate new token when token is expired Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Epic Link: Forms export
Sprint: Add-Ons 24
Story Points: 5

 Description   

After running instance for long time, Token of salesforce is expired. We should generate the new one instead.

  • Re-generate token when it expires 

For salesforce configuration:

Session expiration of salesforce is configurable in salesforce admin so we don't really know the real expire time of token

And you can manage your token here to re-produce issues:

 

You need to configure time out token in your connected app as well

 

Log error:

ERROR info.magnolia.marketingautomation.salesforce.client.SalesForceClient 17.10.2019 13:00:47 -- Couldn't get result, response status code is: '400'.
ERROR info.magnolia.marketingautomation.salesforce.client.SalesForceClient 17.10.2019 13:00:47 -- Token couldn't be generated for connection of 'salesforce'.
java.lang.IllegalStateException: Token couldn't be generated for connection under definition: 'salesforce' with error 'HTTP/1.1 400 Bad Request'.
	at info.magnolia.marketingautomation.salesforce.client.SalesForceClient.generateToken(SalesForceClient.java:118) ~[magnolia-marketing-automation-salesforce-connector-1.0-SNAPSHOT.jar:?]

Generated at Mon Feb 12 10:11:49 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.