Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: ensure advanced use steps works on windows #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

christianacca
Copy link

on windows using the preinstall script with single quotes fails

Example:

{
  "preinstall": "npx [email protected] --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