credentialmanagement
credentialmanagement copied to clipboard
Flying Cars and opaque FormData attributes.
From a conversation with @slightlyoff:
- Return an opaque FormData object instead of raw username/password.
- Limit submission of said FormData via
connect-src(XHR) andform-action(POST). - Maybe an 'unsafe' flag of some sort to return raw credentials if crazy websites want to be crazy?
- Maybe a no-unsafe flag of some sort to stop #3 from leaking data via XSS? (Perhaps the CSP bits from http://projects.mikewest.org/credentialmanagement/writeonly/?)
Started poking at the FormData bits here: https://mikewest.github.io/credentialmanagement/writeonly/#opaque-formdata
/cc @annevk
You might want to allow writeonly at the form-level too (or maybe at the form-level only for a start).
@tobie: Sure, why not. I think this is @annevk's proposal in https://twitter.com/annevk/status/507838270038761472 which I misunderstood.
Note that the proposal currently proposes a CSP directive to set the flag on all input elements of a given type, which is similar.
Yeah, my proposal was to make it for <form> if we are not going to expose individual fields anyway.