Skip to content
This repository has been archived by the owner on Jan 21, 2025. It is now read-only.

Changing expiration time to avoid PatLifespanPolicyViolation Exception. #274

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

rahuldeepattri
Copy link

Changes in this pull request

Changing expiration time to 90 days for vsts-npm-auth command.

Why

Following the instructions to setup Azure Portal CLI at here I was getting below error

Error: Error: Command failed: vsts-npm-auth -F -R -E 525600 -C .npmrc

After the error message, following the instructions prompted for manual setup, I get the following error from vsts-npm-auth

D:\cwd\>vsts-npm-auth -F -R -E 525600 -C .npmrc

vsts-npm-auth v0.41.0.0
-----------------------
Getting new credentials for source:https://xxxxx/, scope:vso.packaging
Caught exception: PatLifespanPolicyViolation
Caught exception: PatLifespanPolicyViolation

This change is needed to prevent the above errors.

Improvements

We set a lifespan of 90 days for the authorization and after these changes everything works okay.

Changing expiration time to avoid PatLifespanPolicyViolation Exception.
@rahuldeepattri
Copy link
Author

@nickharris

@JohnHKoh
Copy link

JohnHKoh commented Jan 6, 2022

Was running into the same issue. Thanks for the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants