Skip to content

chore: ensure advanced use steps works on windows#32

Open
Christian Crowhurst (christianacca) wants to merge 2 commits intoworkleap:masterfrom
christianacca:fix-advanced-use-for-windows
Open

chore: ensure advanced use steps works on windows#32
Christian Crowhurst (christianacca) wants to merge 2 commits intoworkleap:masterfrom
christianacca:fix-advanced-use-for-windows

Conversation

@christianacca

on windows using the preinstall script with single quotes fails

Example:

{
  "preinstall": "npx azure-devops-npm-auth@1.0.13 --client_id='redacted-client-id' --tenant_id='redacted-tenant-id' --ci=CI_BUILD"
}

produces the following error:

OPError: invalid_tenant (AADSTS90002: Tenant ''redacted-tenant-id'' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant.
Trace ID: 7fa28a92-68d2-4a61-a4f7-683cf7856a00
Correlation ID: 0bca9cba-584e-4f49-b795-1a30a123dd26
Timestamp: 2022-04-07 15:30:34Z)
    at processResponse (C:\PD\tools\node_cache\_npx\7fde29e10f8043c0\node_modules\openid-client\lib\helpers\process_response.js:45:13)
    at Function.discover (C:\PD\tools\node_cache\_npx\7fde29e10f8043c0\node_modules\openid-client\lib\issuer.js:220:20)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  error: 'invalid_tenant',
  error_description: "AADSTS90002: Tenant ''redacted-tenant-id'' not found. Check to make sure you have the correct tenant ID and are signing into the correct cloud. Check with your subscription administrator, this may happen if there are no active subscriptions for the tenant.\r\n" +
    'Trace ID: 7fa28a92-68d2-4a61-a4f7-683cf7856a00\r\n' +
    'Correlation ID: 0bca9cba-584e-4f49-b795-1a30a123dd26\r\n' +
    'Timestamp: 2022-04-07 15:30:34Z',
  error_uri: 'https://login.microsoftonline.com/error?code=90002'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant