Read eId with react

291 views
Skip to first unread message

Jordy Vanhentenrijk

unread,
Mar 20, 2020, 9:24:55 AM3/20/20
to eID Middleware Dev
Dear,

We are using a react js webapp and want to implement an EID card reader function for our clients. 
Is this possible in react javascript and how? I am very new to eid implementation. 

Thanks in advance. 

Wouter Verhelst

unread,
Mar 20, 2020, 10:08:09 AM3/20/20
to eid-middl...@googlegroups.com
Hi Jordy,

Not directly. There is no portable way to access the eID from Javascript.

What is possible:
  • Have your users authenticate to a server, and provide an API from that server for your React app. This can use the official middleware.
  • Provide an add-on for the browsers that you wish to support, to provide the necessary access to the middleware to read out the data on the card. You'll have to write the add-on yourself, but it's definitely possible to do something like this for every browser. Make sure to consider the privacy issues of this option if you go down that route, however.
  • Some browsers provide (browser-specific) APIs that allow to communicate with the USB bus. You can, theoretically, access the smart card over those APIs and talk to the card that way. You would, however, have to implement all the low level code that is in the middleware yourself; for that reason, I wouldn't recommend this method.

Regards,

Jordy Vanhentenrijk schreef op vr 20-03-2020 om 02:20 [-0700]:

Luc Saffre

unread,
Mar 21, 2020, 4:02:19 AM3/21/20
to Wouter Verhelst, eid-middl...@googlegroups.com
For the second point in Wouter's list, I wrote a tool which is used by our customers: https://eidreader.lino-framework.org/
It's free software and we would love to hear that it is useful to others as well.

Luc
--
You received this message because you are subscribed to the Google Groups "eID Middleware Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eid-middleware-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/eid-middleware-dev/c884fb53aed0dd5273dcadab7d498bf0b46fc16b.camel%40zetes.com.

Jordy Vanhentenrijk

unread,
Mar 23, 2020, 5:23:25 AM3/23/20
to eID Middleware Dev
Hello Luc,

I will give it a try, many thanks!
To unsubscribe from this group and stop receiving emails from it, send an email to eid-middleware-dev+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages