npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@sphereon/did-auth-siop-web-demo-root

v0.1.0

Published

**NOTE: Please note, this is not intended as production code, nor a starting point for your own implementation. It is a quite simple and crude implementation to show how the SIOP and OIDC4VP tech can work.**

Downloads

4

Readme

SIOP v2 Demo Website

This is a demo website to test and showcase the "Self Issued OpenID Provider v2 (SIOP)" library.

NOTE: Please note, this is not intended as production code, nor a starting point for your own implementation. It is a quite simple and crude implementation to show how the SIOP and OIDC4VP tech can work.

Getting started

Configure environment

In the ./onto-demo-server folder, create a file called .env.local and populate it using .env as example. A valid config will look like this

NODE_ENV=development
PORT=5001
COOKIE_SIGNING_KEY=8E5er6YyAO6dIrDTm7BXYWsafBSLxzjb
REDIRECT_URL_BASE=http://192.168.1.200:5001/ext
RP_DID=did:ethr:0xe1dB95357A4258b33A994Fa8cBA5FdC6bd70011D
RP_PRIVATE_HEX_KEY=850e54b92c6291a1ff7b8c3ef30e032571ed77c9e5c78b1cd6ee5fec4fea984f
AUTH_REQUEST_EXPIRES_AFTER_SEC=300
MOCK_AUTH_RESPONSE=false

Except for the IP address this is a valid configuration to test with. You will need to replace it with the public IP interface/address where this server will be running and make sure it is accessible from your phone and the port is open in the firewall.

Build & start

From the root directory

  • yarn global add concurrently
  • yarn global add ts-node
  • yarn install-all
  • yarn build
  • yarn start

The server will start on port 5001, the client will start & open a browser on http://localhost:3000/

Usage

Once the demo site has loaded, you should see the following screen:

/resources/start-screen.png

Click "Sign in" A QR code will appear which can be scanned with the mobile OP authenticator module from our SSI-SDK.

img_1.png

app "rn-did-siop-example-app" After a successful login two extra page will appear in the menu navigation.

Docker

From the root folder run:

docker build -t onto-web-demo .
docker run -it -p 5001:5001 -p 3000:3000 onto-web-demo

Docker compose

From the root folder run:

docker-compose up