aio-cli icon indicating copy to clipboard operation
aio-cli copied to clipboard

AIO LOGIN yields IMSSDK errors and `.aio` folder needs to be deleted to make it work

Open rojoangel opened this issue 6 months ago • 0 comments

Expected Behaviour

aio login completes successfully

Actual Behaviour

aio login yields this message

aio login
 ›   Error: Cannot get token for context 'onboarding-config': [IMSSDK:CONTEXT_NOT_CONFIGURED] IMS context 'onboarding-config' is not configured

aio login --force does not help and yields

aio login --force
 ›   Error: Cannot get token for context 'onboarding-config': [IMSSDK:CANNOT_GENERATE_TOKEN] Cannot generate token because no plugin supports configuration:
 ›   [plugin:jwt]: [IMSJWTSDK:MISSING_PROPERTIES] JWT not supported due to some missing properties: client_id,client_secret,technical_account_id,meta_scopes,ims_org_id,private_key
 ›   [plugin:oauthSTS]: [IMSOAuthSDK:MISSING_PROPERTIES] OAuth2 not supported due to some missing properties: client_id,client_secrets,technical_account_email,technical_account_id,scopes,ims_org_id
 ›   [plugin:cli]: [IMSOAuthSDK:MISSING_PROPERTIES] OAuth2 not supported due to some missing properties: cli.bare-output
 ›   [plugin:oauth]: [IMSOAuthSDK:MISSING_PROPERTIES] OAuth2 not supported due to some missing properties: client_id,client_secret,scope

The workaround that seems to work is

rm -rf .aio
aio login --force

Reproduce Scenario (including but not limited to)

The issue seems to appear when the same project is used for logging in and out to different Orgs/Projects/Workspaces.

Steps to Reproduce

aio login
aio login --force

Environment Info

  System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M1 Max
    Memory: 263.55 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.0 - ~/.nvm/versions/node/v20.15.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.15.0/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v20.15.0/bin/npm
  Virtualization:
    Docker: 27.4.0 - /usr/local/bin/docker
  npmGlobalPackages:
    @adobe/aio-cli: 10.3.4

Sample Code that illustrates the problem

Logs taken while reproducing problem

rojoangel avatar Jul 07 '25 14:07 rojoangel