I am trying to call REST API using OAuth authentication from Azure Devops using Postman. But, it is giving me error.
PFA the screenshots of the APP, and
please can someone tell me end to end process to authenticate and get the access token please.
I had tried making the app and using the credentials like -
But, still not able to fetch. Please help
This is the Screenshot of the page that open in Azure Devops side to get the authentication - Accept/Deny but after I accept - it comes up with the error. enter image description here




I can get the
access_tokenfollowing the steps in the document.Here are my steps.
After completing the above URL, paste it into your browser and click Enter.
It will need you to accept the app.
After we accept it, it redirects the browser to the callback URL, including a short-lived authorization code and the state value provided in the authorization URL. We will use the code in the next step.
POST https://app.vssps.visualstudio.com/oauth2/token. The bodyContent-Typeisapplication/x-www-form-urlencoded.Body details:
My test result:
access_tokenin step 3, we can use it in postman to get the work item details.My test result:
grant_typetorefresh_tokenand change theassertionwith the "refresh_token" you get in the step 3.Body details:
My test result:
Note:
You should go to the organization's settings Policy to enable the
Third-party application via OAuth. This policy is defaulted to off for all new organizations. We need to enable the policy to use the Azure DevOps OAuth apps.