GithubHelp home page GithubHelp logo

easy-recipe's Introduction

Easy token

A Solid Community Server recipe with the easy-token registration page.

Status: Currently a working POC, but some improvement remains, including a decent amount of code cleaning ( see TODO below ).

Description

Easy-token is a CSS component that improve registration flow when creating a Pod with an existing WebID.

Easy-token allows verifying WebIDs ownership by simply clicking a button instead of manually adding a verification token.

Problem

When creating a new Pod with an existing WebID, CSS would ask the user to prove that their own the given WebID by adding a verification token to their WebID document ( see screenshot below). To do so, the user would do the following steps:

  1. Open a pod browser (such as Penny) in a new window
  2. Log in to the pod browser
  3. Browse to the WebID document
  4. Copy past the verification token triple and add it to the WebID document ( this operation can be complicated for newcomers)

Solution

The proposed solution is to automate the former steps with a simple button. The steps to verify the WebID are the following:

  1. click the "Proove that I own this webId" button
  2. login to your IDP The script will do the rest.

Screenshot

without easy-token with easy-token
image image

|

Install

git clone https://github.com/joeitu/easy-token.git
cd easy-token
npm ci
npm run start -- -c ./config/default-easy-token.json

Usage

Assuming that you already have a WebID, you can now go to the registration page /idp/register/ and choose the option to Use my existing WebID to access my Pod

Enter your WebID host and click the Verify my WebID button. You should be redirected to your IDP provider, log in with your credential, and done! Now you can finish the registration form as usual.

TODO's

  • Clean and refactore code
    • Simplify config import
  • Add a function that check that the verification toekn is correclty added to the WebID document
    • Display an error or validation message
  • Don't fail quietly, display error message to the user
  • remove oidcIssuerRegistrationToken after registration
  • add oidcIssuer to the webId document after registration?
  • Make a NPM package

easy-recipe's People

Contributors

joeitu 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.