Giter VIP home page Giter VIP logo

fxa-crypto-relier-old's Introduction

fxa-crypto-relier npm version CircleCI

Scoped Encryption Keys for Firefox Accounts Util Library

Installation

npm install fxa-crypto-relier --save

API

Relier

For Firefox Accounts Reliers

WebExtension

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) => {

});

Deriver

For Firefox Accounts Content Server

// TODO

Local Development

Scripts

npm run build - build library

npm run dev - development mode

Tests

npm test

Dependencies

  • 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

Dev Dependencies

  • 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.

License

MPL-2.0

fxa-crypto-relier-old's People

Contributors

vladikoff avatar

Watchers

 avatar James Cloos avatar  avatar

fxa-crypto-relier-old's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.