How to consume an azure devops API without PAT

Hassan Hammad 0 Reputation points
2024-04-30T13:56:04.42+00:00

Hi, I'm able to programmatically (C#) call an azure devops API to get all the area paths in my organization. I'm using a PAT that I created.
However, this PAT will expiry and don't want to generate new ones every time they expire, even though it can be every year maximum.

So, my question is, how else can I authenticate said API other than using a PAT? (Wish there were non-expiring PATs).

Thanks in advance for the help.

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2024-04-30T14:23:50.37+00:00

    You can use the methods documented at https://learn.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/authentication-guidance?view=azure-devops


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.