Developers
  • Docs
  • Resources
  • API
  • Help
  • Blog

›LWS Server Libraries

Developer Resources

  • Developer Resources
  • Signature Verification Service

LWS Client Libraries

  • JavaScript
  • ReactJS
  • AngularJS
  • iOS
  • Android

LWS Server Libraries

  • NodeJS Server SDK
  • C# .NET
  • Java
  • PHP
  • Ruby
  • Python

Additional Projects

  • NodeJS DID Resolver

NodeJS Server SDK

Overview

The NodeJS Server SDK for Login with SelfKey

Implementation

To integrate Login with SelfKey on your frontend, please read:

  • Client Implementation
  • Client Library

For more details about integrationg Login with SelfKey on your backend, please read:

  • Server Implementation

Resources

Node Packages (NPM)

SelfKey currently provides 2 NPM libraries for use with Login with SelfKey along with some custom configuration to integrate.

selfkey.js

selfkey.js is a library with functions used for generating and verifying the cryptographic signatures used by the Login with SelfKey authentication process as well as additional helpers.

npm install selfkey.js

  •   https://www.npmjs.com/package/selfkey.js
  •   https://github.com/SelfKeyFoundation/selfkey.js

passport-selfkey

passport-selfkey is a passportjs Strategy library to integrate Login with SelfKey authentication process with passportjs.

npm install passport-selfkey

  •   https://www.npmjs.com/package/passport-selfkey
  •   https://github.com/SelfKeyFoundation/passport-selfkey

Demo Site

An example implementation of Login with SelfKey in NodeJS can be found in the demo site repository. It can be used to help integrate Login with SelfKey with your NodeJS API.

https://github.com/SelfKeyFoundation/selfkey-nodejs-demo

The SelfKey NodeJS Demo (B*Trade) is a mock web application that is used for integration testing for the Login w/ SelfKey (LWS) system and the SelfKey Marketplace. It's built on NodeJS and Express, serves static renders of pages and manages authentication and session using the PassportJS library.

LWS currently provides some NPM packages along with some custom configuration to integrate. There is passport-selfkey which is a Strategy library to integrate LWS with the auth and session management provided by the Passport library. There is selfkey.js which is a collection of functions related to generating and verifying the cryptographic signatures used by LWS as well as additional helper functions.

← PreviousNext →
  • Overview
  • Implementation
  • Resources
    • Node Packages (NPM)
    • Demo Site
Developers
Docs
Getting StartedMarketplace IntegrationLogin with SelfkeyAdditional Projects
Resources
View All ResourcesLogin with SelfKey NodeJS SDKSelfkey Developer Twitter
More
SelfKey Developer BlogSelfKey Foundation GitHubStar
Copyright © 2019 SelfKey Foundation