azure-pipelines-tasks-artifacts-common
Advanced tools
Comparing version 2.241.0 to 2.241.1
@@ -20,4 +20,5 @@ { | ||
"ServiceConnections_Error_FailedToParseServiceEndpoint_BadScheme": "Failed to parse the service endpoint '%s' because the auth scheme '%s' was invalid", | ||
"SettingAzureCloud": "Setting active cloud to: %s" | ||
"SettingAzureCloud": "Setting active cloud to: %s", | ||
"Info_GotAndMaskAuth":"Got auth token, setting it as secret so it does not print in console log" | ||
} | ||
} |
{ | ||
"name": "azure-pipelines-tasks-artifacts-common", | ||
"version": "2.241.0", | ||
"version": "2.241.1", | ||
"description": "Azure Artifacts common code (for new authentication tasks)", | ||
@@ -5,0 +5,0 @@ "scripts": { |
import * as api from 'azure-devops-node-api'; | ||
import { IRequestOptions } from 'azure-devops-node-api/interfaces/common/VsoBaseInterfaces'; | ||
export declare function getWebApiWithProxy(serviceUri: string, accessToken: string, options?: IRequestOptions): api.WebApi; | ||
/** Return a masked SystemAccessToken */ | ||
export declare function getSystemAccessToken(): string; | ||
export declare function getFederatedToken(connectedServiceName: string): Promise<string>; |
@@ -29,2 +29,3 @@ "use strict"; | ||
exports.getWebApiWithProxy = getWebApiWithProxy; | ||
/** Return a masked SystemAccessToken */ | ||
function getSystemAccessToken() { | ||
@@ -34,3 +35,4 @@ tl.debug('Getting credentials for local feeds'); | ||
if (auth.scheme === 'OAuth') { | ||
tl.debug('Got auth token'); | ||
tl.debug(tl.loc("Info_GotAndMaskAuth")); | ||
tl.setSecret(auth.parameters['AccessToken']); | ||
return auth.parameters['AccessToken']; | ||
@@ -37,0 +39,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111735
1532