Grandizer
Grandizer

Reputation: 3025

Programmatically Generate Personal Access Token for VSTS

Is there are VSTS REST endpoint I can connect to in order to let a user self-serve themselves another PAT? Ideally a few days before their current one expires. I have a time sheet application that is now connecting to VSTS to get Workitem information and to update said Workitem. However, at some point (90 days, 180 days or a year later) the PAT will expire. I would rather them not have to leave the application to generate a new one and save it in my application at each interval. I would love for them to just click a button to generate it again from my app. It would be secure seeing that I would connect to the REST endpoint with their current PAT.

Upvotes: 6

Views: 4124

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33708

There isn’t official API to get Personal Access Token programmatically.

You may consider OAuth: Authorize access to REST APIs with OAuth 2.0

Upvotes: 5

Related Questions