MCPcopy Create free account
hub / github.com/Azure/powershell / getRequestToken

Method getRequestToken

lib/index.js:523–529  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

521 return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions);
522 }
523 static getRequestToken() {
524 const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN'];
525 if (!token) {
526 throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable');
527 }
528 return token;
529 }
530 static getIDTokenUrl() {
531 const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL'];
532 if (!runtimeUrl) {

Callers 1

createHttpClientMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected