You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to use the credentials api (https://w3c.github.io/webappsec-credential-management/) so that i dont need to store username and password for an external service. Trying to call navigator.credentials.get() results in a Could not establish connection to the credential manager. error in a rejected promise. Looking through the code and credentials spec, I think it's because file:// isn't treated as a secure context.
I tried to register file:// as a secure scheme with
Haven't used credentials api just read the spec, but chromium doesn't throw the error with file scheme. So its a bug in Electron Electron has to integrate password_manager component for the api to work. Aside from it, why would you want to use the api with file scheme, it doesn't have any origin concept and there are algorithms in the spec that rely on origin which would definitely cause you problem.
I wonder if its possible to give electron apps a kind of "pseudo origin" like a bundle identifier that gives them proper sandboxing. This would allow the credential API to plug into the credential storage manager of the OS. For example, keychain on OSX. Does this make sense?
happening in v1.4.4 (via Nightmare) when accessing http://localhost:8000 with code
Activity
deepak1556 commentedon Sep 10, 2016
Haven't used credentials api just read the spec, but chromium doesn't throw the error with
filescheme.So its a bug in ElectronElectron has to integratepassword_managercomponent for the api to work. Aside from it, why would you want to use the api withfilescheme, it doesn't have any origin concept and there are algorithms in the spec that rely onoriginwhich would definitely cause you problem.jkingyens commentedon Oct 7, 2016
I wonder if its possible to give electron apps a kind of "pseudo origin" like a bundle identifier that gives them proper sandboxing. This would allow the credential API to plug into the credential storage manager of the OS. For example, keychain on OSX. Does this make sense?
piotr-cz commentedon May 30, 2017
happening in v1.4.4 (via Nightmare) when accessing
http://localhost:8000with codecodebytere commentedon Aug 30, 2019
Hi, while we appreciate this enhancement request it's not something that our team will be able to implement in the near future.
If you'd like to make a PR for this request we would welcome that but in the meantime I'm going to go ahead and close this.