Problem/Motivation
Currently once Acquia DAM has been connected and users have been authenticated, their tokens are saved in users_data table. If a site admin clicks on Disconnect DAM and afterwards changes the DAM domain to a different one, the user data for acquia_dam is not cleared and users are still able to connect to old DAM domain.
Steps to reproduce
- Once DAM is connected and users have been using DAM in content creation, admin clicks on Disconnect Site button.
- After disconnecting the site from DAM, change the DAM domain to a different valid URL and submit the form.
- Expected result: Users already authenticated to use DAM assets should be prompted to authenticate to new DAM.
- Actual result: Users previously authenticated to use old DAM are still able to use Old DAM and are not prompted to re-authenticate to new DAM. Also any new users authenticating will be using new DAM.
Proposed resolution
Clear the users data on disconnecting DAM.
Remaining tasks
Tests
User interface changes
API changes
Data model changes
Issue fork acquia_dam-3445449
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
amangrover90 commentedComment #4
amangrover90 commentedComment #5
amangrover90 commentedComment #6
amangrover90 commentedComment #7
baluertlTested, found working as expected. The bugfix itself is RTBC'd but we still need add test coverage.
Set target branch to the latest dev version. Also, renamed ticket to describe the desired situation.
Comment #8
baluertlAs being a bugfix, it supposed to target the
1.0.xbranch. Sorry for confusion earlier.