Authentication fails when using a new account with an existing installation

Created on 1 March 2024, 10 months ago
Updated 5 March 2024, 10 months ago

Problem/Motivation

My team recently had to switch accounts on Constant Contact. I changed the credential configuration, but found that authentication fails unless you completely reinstall the module.

Steps to reproduce

  1. Set up this module with one account and retrieve contact lists
  2. Reconfigure this module to use a new account with a different CC API application
  3. Refresh tokens through the form at /admin/config/services/ik-constant-contact
  4. Token expiry date does not change below the form, and list retrieval fails with the error: "You must authorize Constant Contact before enabling a list or there are no lists available on your account."

Proposed resolution

The issue seems to occur because src/Controller/AuthenticationCallback::callbackUrl() does not utilize src/Service/ConstantContact::saveTokens() to save new client tokens. I have attached a patch file to this issue which can resolve the error.

Remaining tasks

Apply the patch file.

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024