Uploaded image for project: 'Marketing Automation'
  1. Marketing Automation
  2. MKTAUT-51

re-generate new token when token is expired for salesforce

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 1.0
    • None
    • None

    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:?]

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                chuong.doan Chuong Doan Huy
                oanh.thai Oanh Thai Hoang
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - 0d
                      0d
                      Logged:
                      Time Spent - 3.75d
                      3.75d