Skip to content

Instantly share code, notes, and snippets.

var _ = require("underscore");
var gift = require('gift')
var DeepFstream = require("punch").Utils.DeepFstream;
var Path = require("path");
var fs = require('fs-extra');
module.exports = {
repo: null,
@avalez
avalez / login.js
Created November 30, 2013 18:33
Bitbucket OAuth consumer example (nodejs w. passport)
var passport = require('passport'),
BitbucketStrategy = require('passport-bitbucket').Strategy,
request = require('request');
module.exports = function (app) {
var oauth = {
consumer_key: process.env.BB_CONSUMER_KEY,
consumer_secret: process.env.BB_CONSUMER_SECRET
};