geeklearningio / gl-vsts-tasks-inception

With Inception tasks queue builds from builds.
MIT License
4 stars 0 forks source link

[Queue a build] Get token from VSS Endpoint instead of environment variable #1

Closed sandorfr closed 8 years ago

sandorfr commented 8 years ago

This would be more secure and easier to use if the token was retrieved from VSS Endpoint. In poweshell this would be something like this :

$endpoint = Get-ServiceEndPoint -Name "SystemVssConnection" -Context $distributedTaskContext
$endpoint.Authorization.Parameters.AccessToken

Node : https://github.com/Microsoft/vsts-tasks/blob/94fac0440dde0129e5317ed02bea19a93a4cd88e/Tasks/Common/nuget-task-common/Authentication.ts

sandorfr commented 8 years ago

Done