Code Monkey home page Code Monkey logo

firefox_credentials's People

Contributors

axelnennker avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

firefox_credentials's Issues

Implement PasswordCredential

As a website developer I want to create a new PasswordCredential object by writing e.g.:

var credential = new PasswordCredential("JaneDoe98","MfPeRQq5P3yVry68Q4KZMMhB");

Please note the difference to the current spec which requires an objects as parameter:

var credential = new PasswordCredential({
  "id": "JaneDoe98",
  "password": "MfPeRQq5P3yVry68Q4KZMMhB"
});

This is not possible with the current WebIDL.

WebIDL.py does not like PasswordCredentials Constructor Arguments

Mozilla's WebIDL.py barfs on this constructor
http://w3c.github.io/webappsec/specs/credentialmanagement/#interfaces-credential-types-passwordcredential

WebIDL.WebIDLError: error: Dictionary argument or union argument containing a dictionary not followed by a required argument must be optional, 
 [Constructor(PasswordCredentialData data), Exposed=Window]

I think that the spec for WEBIDL is too restrictive here but will change the constructor anyways (for now) to include just the parameters from the example.

[Constructor(DOMString id, DOMString password), Exposed=Window, JSImplementation="@mozilla.org/credentials/passwordcredential;1"]
interface PasswordCredential {
  Promise<Response> send(USVString url);
};

Interaction with browser extensions

From a cursory glance over the spec, it doesn't appear to mention interaction with existing browser extensions for credential management. Do you know if that has been discussed at all?

I've been working on a pure-JS cross-browser extension which is file-format compatible with the popular 1Password extension. I think the experience could be much better on supported pages if it integrated with browser APIs for credential management.

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.