This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var convertTimes = true; | |
function handleEmail(obj) { | |
delete obj.pub; | |
delete obj.priv; | |
var cert = obj.cert; | |
if (cert) { | |
delete cert.header; | |
var payload = cert.payload; | |
if (payload) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
my $requests = {}; | |
sub strip_args { | |
$_ = $_[0]; | |
s/\?ver=.*/\?ver=/; | |
s/\?email=.*/\?email=/; | |
s/\?token=.*/\?token=/; | |
s/\?domain=.*/\?domain=/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage: cat file | verifier-metrics.js | |
const ONE_HOUR_MS = 60*60*1000; | |
function handleData(data, struct) { | |
var message, epoch = Date.parse(data.timestamp); | |
try { | |
message = JSON.parse(data.message); | |
} catch(e) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"domains": { | |
/* | |
"browserid.org": [ | |
"browserid-org-0520-1279444257.us-east-1.elb.amazonaws.com" | |
], | |
"www.browserid.org": [ | |
"browserid-org-0520-1279444257.us-east-1.elb.amazonaws.com" | |
], | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const fs = require('fs'); | |
const rimraf = require('rimraf'); // XXX remove this dependency | |
const format = require('util').format; | |
function createAliases(loadBalancers, targetDirectory) { | |
var aliases = {}; | |
Object.keys(loadBalancers).forEach(function(key) { | |
var lb = loadBalancers[key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
var client = require('../lib/wsapi_client.js'); | |
var optimist = require('optimist'); | |
var path = require('path'); | |
var urlparse = require('urlparse'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/server/lib/passport_yahoo.js b/server/lib/passport_yahoo.js | |
index 2b4d7fb..9cac18c 100644 | |
--- a/server/lib/passport_yahoo.js | |
+++ b/server/lib/passport_yahoo.js | |
@@ -71,7 +71,15 @@ exports.views = function(app) { | |
session.clearBidUrl(req); | |
session.setCurrentUser(req, email); | |
- res.redirect(redirect_url); | |
+ if (config.get('env') === 'production') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* This Source Code Form is subject to the terms of the Mozilla Public | |
* License, v. 2.0. If a copy of the MPL was not distributed with this | |
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | |
// This test is only intended for occasional use to confirm the actual browser | |
// userAgent and OS. Useful in checking changes to sauce-platforms.js. | |
const |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/wsapi_client.js b/lib/wsapi_client.js | |
index 3531810..ad9ea09 100644 | |
--- a/lib/wsapi_client.js | |
+++ b/lib/wsapi_client.js | |
@@ -13,8 +13,26 @@ const | |
http = require('http'), | |
https = require('https'), | |
url = require('url'), | |
-querystring = require('querystring'), | |
-version = require('./version.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var crypto = require('crypto'); | |
var targetSha = '25f7bcf998cc3747cad755d53dec4c6698aad834'; | |
var candidates = { | |
includeJs_2425cff7: { | |
filename: 'whatis-25f7bcf.at.2425cff7aeb9c8d4b4b930168d341e3b401a4d89', | |
knownSha: '7b7d2e96f46271f79a83395ed1486a69c2135d89', | |
}, |