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

AzureAuth error when called from a VSCode extension #408

Open
charlesanim opened this issue Sep 17, 2024 · 2 comments
Open

AzureAuth error when called from a VSCode extension #408

charlesanim opened this issue Sep 17, 2024 · 2 comments

Comments

@charlesanim
Copy link

I'm working on a VSCode extension that users can use to generate PAT for their dev environment by calling

import { exec } from 'child_process';

exec( azureauth ado pat --organization someorg --display-name patName --scope vso.packaging_write --prompt-hint none`)

and I keep getting this error below

Failed to generate PAT: Error: 2024-09-16 22:27:59.6371 | ERROR | logger: Microsoft.Office.Lasso.LassoMcMaster | One or more errors occurred. (Read-only file system : '/.IdentityService') 2024-09-16 22:27:59.6396 | ERROR | logger: Microsoft.Office.Lasso.LassoMcMaster | An unexpected error ocurred. Re-run with --verbosity=debug for more info.

Any ideas here? Is it possible to call AzureAuth in a VSCode extension? How would one approach this?

@charlesanim
Copy link
Author

fyi @Haard30 @emilyyang-ms

@kyle-rader-msft
Copy link
Contributor

/.IdentityService looks suspiciously like there is a missing directory path between / and .IdentityService - resulting in the cache trying to go into / - which is read-only.

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

No branches or pull requests

2 participants