Scoped Encryption Keys for Firefox Accounts Util Library
npm install fxa-crypto-relier --save
For Firefox Accounts Reliers
const oAuthUtils = new window.fxaCryptoRelier.OAuthUtils();
oAuthUtils.launchFxaScopedKeyFlow({
client_id: FXA_CLIENT_ID,
// oauth_uri: FXA_OAUTH_SERVER,
pkce: true,
redirect_uri: browser.identity.getRedirectURL(),
scopes: ['profile', 'https://identity.mozilla.org/apps/[APP_NAME]'],
})
.then((scopedKey) => {
});
For Firefox Accounts Content Server
// TODO
npm run build
- build library
npm run dev
- development mode
npm test
- base64url: For encoding to/from base64urls
- install: Minimal JavaScript module loader
- node-hkdf: HKDF key derivation function
- node-jose: A JavaScript implementation of the JSON Object Signing and Encryption (JOSE) for current web browsers and node.js-based servers
- strftime: strftime for JavaScript
- babel-cli: Babel command line.
- babel-core: Babel compiler core.
- babel-eslint: Custom parser for ESLint
- babel-loader: babel module loader for webpack
- babel-plugin-add-module-exports: Fix babel/babel#2212
- babel-preset-es2015: Babel preset for all es2015 plugins.
- chai: BDD/TDD assertion library for node.js and the browser. Test framework agnostic.
- eslint: An AST-based pattern checker for JavaScript.
- eslint-loader: eslint loader (for webpack)
- mocha: simple, flexible, fun test framework
- webpack: Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
- yargs: yargs the modern, pirate-themed, successor to optimist.
MPL-2.0