Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 460
Grandizer Avatar asked Jun 14 '18 12:06

Grandizer


1 Answers

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

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

like image 68
starian chen-MSFT Avatar answered Nov 10 '22 01:11

starian chen-MSFT