Plan smarter, collaborate better, and ship faster with a set of modern dev services
Go to siteimport { axios } from "@pipedream/platform"
export default defineComponent({
props: {
azure_devops: {
type: "app",
app: "azure_devops",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.vssps.visualstudio.com/_apis/profile/profiles/Me`,
headers: {
Authorization: `Bearer ${this.azure_devops.$auth.oauth_access_token}`,
},
params: {
"api-version": `5.0`,
},
})
},
})
Azure DevOps uses OAuth authentication. When you connect your Azure DevOps account, Pipedream will open a popup window where you can sign into Azure DevOps and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Azure DevOps API.
Pipedream requests the following authorization scopes when you connect your account:
vso.analytics
vso.auditlog
vso.build_execute
vso.code_manage
vso.dashboards_manage
vso.entitlements
vso.extension.data_write
vso.extension_manage
vso.gallery_manage
vso.graph_manage
vso.identity_manage
vso.loadtest_write
vso.machinegroup_manage
vso.memberentitlementmanagement_write
vso.notification_diagnostics
vso.notification_manage
vso.packaging_manage
vso.profile_write
vso.project_manage
vso.release_manage
vso.serviceendpoint_manage
vso.symbols_manage
vso.taskgroups_manage
vso.test_write
vso.threads_full
vso.variablegroups_manage
vso.wiki_write
vso.work_full
GET
https://app.vssps.visualstudio.com/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=Assertion
&
scope={{oauth.space_separated_scopes}}
POST
https://app.vssps.visualstudio.com/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&
client_assertion={{oauth.client_secret}}
&
grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
&
assertion={{oauth.code}}
&
redirect_uri={{oauth.redirect_uri}}
POST
https://app.vssps.visualstudio.com/oauth2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer
&
grant_type=refresh_token
&
assertion={{oauth.refresh_token}}
&
client_assertion={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}