web-eid / web-eid-app

The Web eID application performs cryptographic digital signing and authentication operations with electronic ID smart cards for the Web eID browser extension
https://web-eid.eu
MIT License
25 stars 26 forks source link

(Linux): Install JSON files on the right place for Chrome (and add Chromium support) #308

Closed klondi closed 1 week ago

klondi commented 7 months ago

Currently, the native-messaging json file for chrome is installed on /usr/share/web-eid as a result after installing the extension it will not work as it cannot run.

Instead as stated on https://developer.chrome.com/docs/extensions/develop/concepts/native-messaging the JSON file should be installed on /etc/opt/chrome/native-messaging-hosts

With this adding Chromium support is fairly easy too. According to https://developer.chrome.com/docs/extensions/how-to/distribute/install-extensions ncibgoaomkmdpilpocfeponihegamlic.json should be installed on /usr/share/chromium/extensions/ and to allow native messaging https://developer.chrome.com/docs/extensions/develop/concepts/native-messaging requires installing eu.webeid.json into /etc/chromium/native-messaging-hosts/

In summary to address these issues: Install eu.webeid.json into both /etc/opt/chrome/native-messaging-hosts and /etc/chromium/native-messaging-hosts/ Install ncibgoaomkmdpilpocfeponihegamlic.json also into /usr/share/chromium/extensions/

mrts commented 5 months ago

Sorry for the delayed response! We will discuss this internally and get back to you.

sergey-abc commented 4 months ago

Spent lot of time trying to understand why web-eid is not executed from Chromium. As a result I see the message that it's not possible to use outdated ID card software. Thanks for solution @klondi !

mrts commented 3 months ago

We discussed this with the project leads. We are basically interested in adding Chromium support, but it is not a priority currently. We'll get back to it as other priorities allow later.

mrts commented 2 weeks ago

Thanks for your contribution! We intend to add Chromium support in the upcoming 2.6 release.