0.2.1 • Published 3 years ago

eid-provider v0.2.1

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

NPM version stability-stable version maintained maintainer License

eid-provider

This module is developed to enable rapid deployment of identity based authentication for Node.js by creating a common interface to most of the suppliers for official electronic identification and it allows you to mix and match your suppliers. This is a reusability code port of code that I have contributed to teams-app-eid with some smart addons and international support.

Simple to use

There is only one way of sending data into and out of the modules. Uniformity regardless of service. You can read details of the methods or see some more examples

const  eidprovider = require('./eid-provider.js')('frejaeid');  
const  config = eidprovider.settings.testing;
eidprovider.initialize(config);

eidprovider.authRequest('200101011212').then(function(result){
	console.log(result);
});

Supported modules

There are basically right now two main types of integrations: one is working directly with the service apis and the other kind is working with a broker service. The broker services can be usefull if you have many integrations or other sources in your enterprise and you wish to use the same sources for these.

ID-TypeModuleVendorAuthenticationSigningGeographiesReadiness
BankIDbankidBankID:heavy_check_mark::heavy_check_mark::sweden:Production
Freja eIDfrejaeidVerisec (Freja eID):heavy_check_mark::heavy_check_mark::sweden: :denmark: :norway: :finland:Production
Freja eID Org IDfrejaorgidVerisec (Freja eID):heavy_check_mark::heavy_check_mark::sweden: :denmark: :norway: :finland:Production
Mobilt BankIDftbankidFunktionstjänster (CGI):heavy_check_mark::heavy_check_mark::sweden:Production
Freja eIDftfrejaeidFunktionstjänster (CGI):heavy_check_mark::heavy_check_mark::sweden: :denmark: :norway: :finland:Production
Mobilt BankIDgbankidSvensk e-Identitet:heavy_check_mark::heavy_check_mark::sweden:Production
Freja eIDgfrejaeidSvensk e-Identitet:heavy_check_mark::heavy_check_mark::sweden:Stable*
SITHS MobileghsaidSvensk e-Identitet:heavy_check_mark::heavy_check_mark::sweden:Production
Mobilt BankIDgbankidIDKollen:heavy_check_mark::heavy_check_mark::sweden:Production

* GrandID do not officially support Freja eID for silent logins. Using some ugly workarounds tbh. Evaluate before production!

The configuration options should be quite obvious as what they do. If you are unsure your supplier will most probably be able to determine what information you need. Most modules have sane values, certificates etc for most testing services and production services however there is no production credentials and you need to strike an agreement with the services yourself to obtain these.

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago