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
| /* examples/foo.js */ | |
| var msg = _('hello world!'), | |
| msg2 = gettext('goodby cruel world'); | |
| /* from command line */ | |
| xgettext -L Perl --keyword=_ --output-dir=examples/ --from-code=utf-8 --output=client.pot `find examples/ -name '*.js' | grep -v 'gettext.js'` | |
| /* examples/client.po */ | |
| # SOME DESCRIPTIVE TITLE. | |
| # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER |
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
| In user.js At provisionPrimaryUser: function(email, info, onComplete, onFailure) { | |
| User.primaryUserAuthenticationInfo(email, info, function(authInfo) { | |
| alert('provisionPrimaryUser in Info callback authInfo=' + JSON.string | |
| authInfo=provisionPrimaryUser in Info callback authInfo= | |
| { | |
| "cert":"eyJhbGci...reallybigstring...U7Hvn-drVg", | |
| "authenticated":true, | |
| "auth":"https://dev.clortho.mozilla.org/browserid/sign_in", | |
| "prov":"https://dev.clortho.mozilla.org/browserid/provision", |
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
| Goal - to "prime the pump" from dev.clortho.mozilla.org Basic Auth from an HTML for that is not restricted to Basic Auth. | |
| So the next time a visitor requests a protected resource from dev.clortho.mozilla.org, they will automatically send Basic Auth headers. | |
| ====== Via XHR ======= | |
| GET /protected HTTP/1.1 | |
| Host: dev.clortho.mozilla.org | |
| User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0a2) Gecko/20120306 Firefox/12.0a2 | |
| Accept: text/html, */*; q=0.01 | |
| Accept-Language: en-us,en;q=0.8,es;q=0.5,it-ch;q=0.3 | |
| Accept-Encoding: gzip, deflate |
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
| Goal - to "prime the pump" from dev.clortho.mozilla.org with Basic Auth info for dev.intranet.org, | |
| so the next time a visitor goes to intranet, they will automatically send Basic Auth headers. | |
| ====== Via XHR ======= | |
| OPTIONS / HTTP/1.1 | |
| Host: dev.intranet.org:3667 | |
| User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0a2) Gecko/20120306 Firefox/12.0a2 | |
| Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 | |
| Accept-Language: en-us,en;q=0.8,es;q=0.5,it-ch;q=0.3 | |
| Accept-Encoding: gzip, deflate |
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
| require('./lib/test_env.js'); | |
| const | |
| assert = require('assert'), | |
| vows = require('vows'), | |
| start_stop = require('./lib/start-stop.js'), | |
| wsapi = require('./lib/wsapi.js'), | |
| primary = require('../lib/primary.js'); | |
| const TEST_DOMAIN = 'example.domain', |
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
| built /production/cs/dialog.js in 113.44s | |
| built /production/da/dialog.js in 113.80s | |
| built /production/de/dialog.js in 44.49s | |
| built /production/el/dialog.js in 51.37s | |
| built /production/eo/dialog.js in 87.90s | |
| /home/app/node_modules/uglify-js/lib/parse-js.js:272 | |
| throw new JS_Parse_Error(message, line, col, pos); | |
| ^ | |
| TypeError: object is not a function |
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
| this.headerSegment + "." + this.payloadSegment | |
| eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJkZXYuY2xvcnRoby5tb3ppbGxhLm9yZyIsImV4cCI6MTMzMDE1MzEzNjQ4NiwiaWF0IjoxMzMwMTMxNTM2NDg2LCJwdWJsaWMta2V5Ijp7ImFsZ29yaXRobSI6IkRTIiwieSI6IjVlMDVlYWYxZjE4NzUyMzVlNjM4MGZjNWM2Y2Q2YTk5YzZjMDYxOWQxYWFiODQ0OTM4YTM2MzE2ZDQzMzlmZjc2MTNiMmI5NGU0MjRhMTI3MjZmMzU5MWNmMzFlOWJiZGIzOTk1NGU5MmNmNDdhN2ZmYjhhOWQxYTg1YTc1N2RkM2Q0NjY2MmE1YmQ1MjBhY2FmZjFkYjljMzg0YmFlYzg3NmU2MjQ4YTkyY2NjM2EwYWI4NTBhODk4ZjE2NjFjNmY1YWJiMTkzZGRhY2QxM2JhNGUyYjUxNTc5MGRkYWJjOWUwZmUyYjc3MjQ1NWNiYTcxOGI4ZWRkMDFmZDVkYzJmNmFmZDk0ZjI4MWJiYjk5OWY2YzI2YWY1ZDZiN2RmMGE3YjJhNmYxNmMxYWNkMGEwNTRmMWIwZTMwZWM5NDk1MThjYzA1MDFiMmZjMGE1ODkzNGIyMGE2MDhhZjI5MDUzYTMyZTQwMzBmZDdlNzNiMjI3N2UyNjBjM2EzYjFiYTFhYTk5ODAyNzc5MTlmOWEyZmIzYWQ1M2EwYzk5NzVmMzdmMTQ1YTJmZGU1ZmUyOGU4ODdhZmM4YzliMGUxMDYwZjVkNTgyNjc4ZTkxZmVjYjM3ZDMxZDkxNTAwMDdkMzUyNjBlYmY0MWM3Y2Y1NzY3MmJjNzM2N2JhNGYzZTYiLCJwIjoiZDZjNGU1MDQ1Njk3NzU2YzdhMzEyZDAyYzIyODljMjVkNDBmOTk1NDI2MWY3YjU4NzYyMTRiNmRmMTA5YzczOGI3NjIyNmIxOTliYjdlMzNmOGZjN2FjMWRj |
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
| https://gist.github.com/332d1e6ac56d862ba0e9 |
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
| "public-key": {"algorithm":"RS","n":"87050379017745369837393957829719111830526739494877792901155429228318958763102078110504106024572207885148672218264555884646451732508062945162344214881850250696359102708487093890727643128596402186925113686618140730005033681273110532673130040763911347769647771601750446931178643397172602773006595321124249455279","e":"65537"}, |
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
| lib/keysigner/ca.js:function verifyChain(hostname, certChain, cb) { | |
| lib/keysigner/ca.js- // raw certs | |
| lib/keysigner/ca.js- console.log('IN keysigner ca.js VERIFY CHAIN'); | |
| -- | |
| lib/jwcrypto/jwcert.js:JWCert.verifyChain = function(listOfSerializedCert, rootCB, successCB, errorCB) { | |
| lib/jwcrypto/jwcert.js- console.log('IN JWCert VERIFY CHAIN'); | |
| lib/jwcrypto/jwcert.js- // parse all the certs | |
| -- | |
| lib/jwcrypto/vepbundle.js:JWCert.verifyChain = function(listOfSerializedCert, rootCB, successCB, errorCB) { | |
| lib/jwcrypto/vepbundle.js- console.log('IN VEP Bundle VERIFY CHAIN'); |