Giter Site home page Giter Site logo

stombeur / open-eid Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 20.65 MB

native plugin for the web to make e-ID card reading and signing easier

Home Page: https://e-id.eu.org

JavaScript 69.34% Shell 13.69% HTML 12.35% AppleScript 3.91% Batchfile 0.71%

open-eid's Introduction

<eID) open-eid

open-eid is a native plugin for the web to make e-ID card reading and signing easier.

Read more

Status

This is a pre-release version 0.2 with the following features

  • Read eID card content using URL or Web extension
  • Sign content with eID card content using URL or Web extension

The app has been tested on Windows and Mac OS with belgian e-ID cards.

Windows and Mac versions are not synchronized about features or output format.

Using

You can use Open-eID with a simple URL starting with open-eid: followed by your redirection URL.

Signing data is done using open-eid-sign: followed by your redirection URL ending with & message argument containing base64 encoded data to sign.

Sample sign URL: open-eid-sign:https://e-id.eu.org/src/url_test.html?&message=SGVsbG8%3D

The card data or sign result is "sent" to your redirection URL using the "hash" part (right after #).

The data is URI component encoded JSON object with every value escaped/URI component encoded.

Open-eID detects the browser automatically but the result will open in a new window/tab.

The easiest thing to do to capture the data from the origin tab/window is to save the result in LocalStorage and read it from your origin page.

The Web Extension allows you to read the card data without opening a new tab/window but requires users to install both the app and the extension and enable it for each website requesting access to the extension.

The easiest way to use Open-eID is to use the helper function. Just add the following code to head section of your HTML page.

<script type="text/javascript" src="https://e-id.eu.org/release/Open-eID.js"></script>

The openEID.read function can then be called with a callback function.

The callback function has a single parameter as an object containing decoded card data.

openEID.read(function(result) { console.log(result); })

The openEID.sign function can then be called with a message to sign and a callback function.

The callback function has single parameter as an object containing signed data.

openEID.sign(message, function(result) { console.log(result); })

You can test the helper function on the following page

Building

To build open-eid you need the following tools:

Windows

  • FreeBasic compiler
  • Swelio library (Swelio32.dll)

Mac

  • NodeJS
  • pkg
  • pkcs11js

References

open-eid's People

Contributors

michael-barchy avatar

Watchers

James Cloos avatar Stephane Tombeur avatar

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.