This file contains hidden or 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
{ | |
"env": "production", | |
"bind_to": { | |
"host": "127.0.0.1" | |
}, | |
"use_minified_resources": true, | |
"public_static_url": "https://static.login.persona.org", | |
"database": { | |
"driver": "mysql", |
This file contains hidden or 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
// At the top of routes.js | |
var io = require('socket.io-client'); | |
// Later | |
socket = io.connect('http://localhost:9714', {headers: {'X-express-to-socket-password': 'some secret string'}}); | |
//or | |
socket = io.connect('http://localhost:9714', {'query': 'express-to-socket-password=some secret string'}); |
This file contains hidden or 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
Problem I use a CLI to start a build on jenkins.mozilla.org, which is password authenticated | |
and requires me to be [email protected] | |
Example Usage: | |
$ ./start-build.js [email protected] --project=mozilla/browserid --branch=train-2012-04-12 | |
Password: 324klj234kl3j4 | |
Build Success, 42 unit tests passed, rpm built, have a nice day | |
$ |
This file contains hidden or 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
Hi folks.. I'm pretty sure everyone involved in Persona ops already | |
knows about this, but I figured I'd send it to services-ops just to be | |
completely sure. | |
My "expire-session" changes[1] finally landed on the master "dev" branch | |
last friday (10-Aug-2012)[2], and are scheduled to be included in the | |
branch we'll cut next friday (train-2012.08.17, I think), which should | |
turn into our Beta1 offering. | |
This feature includes a schema change, which adds a `lastPasswordReset` |
This file contains hidden or 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
CREATE TABLE IF NOT EXISTS user (id BIGINT AUTO_INCREMENT PRIMARY KEY,passwd CHAR(64),lastPasswordReset TIMESTAMP DEFAULT 0 NOT NULL) ENGINE=InnoDB; | |
CREATE TABLE IF NOT EXISTS email (id BIGINT AUTO_INCREMENT PRIMARY KEY,user BIGINT NOT NULL,address VARCHAR(255) UNIQUE NOT NULL,type ENUM('secondary', 'primary') DEFAULT 'secondary' NOT NULL,verified BOOLEAN DEFAULT TRUE NOT NULL, FOREIGN KEY user_fkey (user) REFERENCES user(id)) ENGINE=InnoDB; | |
CREATE TABLE IF NOT EXISTS staged (id BIGINT AUTO_INCREMENT PRIMARY KEY,secret CHAR(48) UNIQUE NOT NULL,new_acct BOOL NOT NULL,existing_user BIGINT,email VARCHAR(255) UNIQUE NOT NULL,passwd CHAR(64),ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL,FOREIGN KEY existing_user_fkey (existing_user) REFERENCES user(id)) ENGINE=InnoDB; |
This file contains hidden or 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
// If you change these schemas, please notify <[email protected]> | |
const schemas = [ | |
"CREATE TABLE IF NOT EXISTS user (" + | |
"id BIGINT AUTO_INCREMENT PRIMARY KEY," + | |
"passwd CHAR(64)," + | |
"lastPasswordReset TIMESTAMP DEFAULT 0 NOT NULL" + | |
") ENGINE=InnoDB;", | |
"CREATE TABLE IF NOT EXISTS email (" + | |
"id BIGINT AUTO_INCREMENT PRIMARY KEY," + |
This file contains hidden or 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
navigator.id.completeAuthentication({ | |
“id”: <identifier>, | |
“limitedToRPs”: [“https://pay.bluevia.com”, “https://marketplace.mozilla.org”] | |
}); |
This file contains hidden or 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
{ | |
"log": { | |
"version": "1.1", | |
"creator": { | |
"name": "Firebug", | |
"version": "1.10" | |
}, | |
"browser": { | |
"name": "Firefox", | |
"version": "16.0a2" |
This file contains hidden or 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
{ | |
"log": { | |
"version": "1.1", | |
"creator": { | |
"name": "Firebug", | |
"version": "1.10" | |
}, | |
"browser": { | |
"name": "Firefox", | |
"version": "16.0a2" |
This file contains hidden or 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
/* | |
cd into directory with root.cert | |
node extract_public_key.js | |
*/ | |
var fs = require('fs'); | |
cert = fs.readFileSync('root.cert').toString('utf8'); | |
var pkEnc = cert.split('.')[1] |