azure-devops-auth-samples | Samples showing how to auth with Azure DevOps | Azure library
kandi X-RAY | azure-devops-auth-samples Summary
kandi X-RAY | azure-devops-auth-samples Summary
Samples showing how to auth with Azure DevOps
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of azure-devops-auth-samples
azure-devops-auth-samples Key Features
azure-devops-auth-samples Examples and Code Snippets
Community Discussions
Trending Discussions on azure-devops-auth-samples
QUESTION
I'm trying to implement an OAUth 2.0 flow for custom webapplication for Azure Devops. I'm following this https://docs.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/oauth?view=azure-devops documentation as well as this https://github.com/microsoft/azure-devops-auth-samples/tree/master/OAuthWebSample OauthWebSample but using ASP.NET Core (I also read one issue on SO that looked similar but is not: Access Azure DevOps REST API with oAuth)
ReproductionI have registered an azdo app at https://app.vsaex.visualstudio.com/app/register and the authorize step seems to work fine, i.e. the user can authorize the app and the redirect to my app returns something that looks like a valid jwt token:
...ANSWER
Answered 2020-Apr-19 at 12:44When asking for access tokens the Client Secret and not the App Secret must be provided for the client_assertion parameter:
QUESTION
I need to create an organizational feed to host nuget packages shared among projects on our Azure DevOps environment.
After several unsuccesful attempts and research, I discovered that the only way to create an organizational feed is, by design from Microsoft mouth, the Azure DevOps API.
Source for the claim : This question on VS dev community and The MS docs on project-scoped feeds
Basically, I just need to be able to perform a POST here : https://feeds.dev.azure.com/{organization}/_apis/packaging/feeds?api-version=5.1-preview.1
with the body :
...ANSWER
Answered 2020-Feb-19 at 04:44I understand that I have to register and run a whole web application. Am I understanding this correctly ? I there a simpler way ?
Yes, you are right. You have to register whole web application.
As the interface in Postman for OAuth2
, we need provide the CallbackUrl
, ClientID
, ClientSecret
and so on. Then, we check the document Requesting an OAuth 2.0 token, we could to know the Callback URL
is:
The client application callback URL redirected to after auth, and that should be registered with the API provider.
So, we have to register an OAuth client app in Azure DevOps (https://app.vsaex.visualstudio.com/app/register), then we could get the following information, like:
You could check the document Authorize access to VSTS REST APIs with OAuth 2.0 for some more details.
AFAIK, there is currently no simpler way to get a bearer token to send requests to the Azure DevOps API.
Hope this helps.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install azure-devops-auth-samples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page