How to use the bitbucket.secret function in bitbucket

To help you get started, we’ve selected a few bitbucket examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github naholyr / github-todos / lib / issue-service / bitbucket.js View on Github external
function connect (conf) {
  if (conf["bitbucket.secret"] && conf["bitbucket.key"]) {
    var oauth = {
      "consumer_key":     conf["bitbucket.key"],
      "consumer_secret":  conf["bitbucket.secret"]
    };

    return checkOAuth(oauth).then(null, createOAuth);
  } else {
    // No token found: create new one
    return createOAuth();
  }
}
github naholyr / github-todos / lib / issue-service / bitbucket.js View on Github external
function connect (conf) {
  if (conf["bitbucket.secret"] && conf["bitbucket.key"]) {
    var oauth = {
      "consumer_key":     conf["bitbucket.key"],
      "consumer_secret":  conf["bitbucket.secret"]
    };

    return checkOAuth(oauth).then(null, createOAuth);
  } else {
    // No token found: create new one
    return createOAuth();
  }
}

bitbucket

Bitbucket API client for Browser and Node.js

MIT
Latest version published 2 months ago

Package Health Score

71 / 100
Full package analysis