bitbucket-auth-token
Advanced tools
Comparing version
11
index.js
@@ -9,3 +9,3 @@ var homeDir = require('home-dir'); | ||
// appName, consumerKey, consumerSecret, credentialsProvider, forceCredentials | ||
// appName, consumerKey, consumerSecret, credentialsProvider, forceCredentials, domain | ||
var configPath = homeDir("/." + opts.appName); | ||
@@ -18,6 +18,7 @@ var config; | ||
} | ||
opts = _.extend({}, opts, { | ||
opts = _.extend({}, { | ||
configPath: configPath, | ||
config: config | ||
}); | ||
config: config, | ||
domain: "bitbucket.org" | ||
}, opts); | ||
@@ -61,3 +62,3 @@ if (config.refreshToken && !opts.forceCredentials) { | ||
request | ||
.post('https://bitbucket.org/site/oauth2/access_token') | ||
.post('https://' + opts.domain + '/site/oauth2/access_token') | ||
.auth(opts.consumerKey, opts.consumerSecret) | ||
@@ -64,0 +65,0 @@ .accept('application/json') |
{ | ||
"name": "bitbucket-auth-token", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Maintain a local cache of Bitbucket OAuth tokens for use with the Bitbucket REST API.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
88
1.15%3313
-88.02%3
-78.57%