GithubHelp home page GithubHelp logo

solid-contrib / solid-signup Goto Github PK

View Code? Open in Web Editor NEW
45.0 19.0 14.0 520 KB

Signup and login app

Home Page: https://solid.github.io/solid-signup/

License: MIT License

CSS 25.95% HTML 17.11% JavaScript 56.94%

solid-signup's Introduction

solid-signup

WebID signup application for Solid servers.

App configuration

In order to use the signup app, you must first configure it to point to a server on which the accounts will be created. You can specify the server by edititing the configuration area in app.js. For example, the following constants can be set there:

var DOMAIN = 'https://databox.me';
var ACCOUNT_ENDPOINT = ',system/newAccount';
var CERT_ENDPOINT = ',system/newCert';

The value of DOMAIN sets the base URL for the new accounts, where new accounts will be subdomains -- i.e. https://alice.databox.me.

The value of DOMAIN can also be overridden without editing the app.js file, by adding a URL query parameter called domain when loading the app. For example, to override the default domain of the signup app and point to https://example.org, a user can click on the following link:

https://solid.github.io/solid-signup/?domain=https%3A%2F%2Fexample.org

The ACCOUNT_ENDPOINT and CERT_ENDPOINT values will be appended to the final URI of the user's new account. If your server does not use ACCOUNT_ENDPOINT or CERT_ENDPOINT paths, please set them to an empty value.

App workflow

  1. If the user wants to use alice to sign up, the app will check if the account https://alice.databox.me/ exists. It checks this by doing an HTTP GET on https://alice.databox.me/, using the value of DOMAIN to create the URL. If an HTTP 404 status is returned, the app will prompt the user to create that account.

  2. If the user proceeds with the account creation, an HTTP POST request will be sent to the account URL, while also appending the ACCOUNT_ENDPOINT value. In this case, the resulting URL will be https://alice.databox.me/,system/newAccount. The POST request will look like a regular form submission -- i.e. it will have the Content-Type header set to application/x-www-form-urlencoded. The form will also send the following values:

    • email - used for recovery purposes
    • username [optional] - used to specifiy the account name (for servers that do not use sub-domains)
  3. Once the account is created, the user is given the option to add her name to her profile and also to upload a profile picture.

  4. Finally, the user will be able to obtain a client certificate, that will be bound to her WebID profile.

solid-signup's People

Contributors

dan-f avatar mitzi-laszlo avatar nicola avatar

Stargazers

Leo avatar EcoBioverse avatar  avatar Kanwarpartap Singh avatar  avatar Allison Varnell avatar Emre Büyüközkan avatar Brendan A. Miller avatar Isabella Martinez avatar Fernando Cwilich Gil  avatar Roman Sivakov avatar MD s Sabtu avatar jiwon avatar Jesse Cary avatar Devereux Henley avatar RoestVrijStaal avatar ivy avatar Rene Kapusta avatar Prahalad Belavadi avatar  avatar  avatar @vicente avatar David Johnston avatar ik5 avatar SwhGo_oN avatar Ehab Ashour avatar Leho Kraav avatar Burak Sormageç avatar Gundo Sifhufhi avatar 0xZensh avatar  avatar Viraj G. Kulkarni (विराज गु. कुलकर्णी) avatar Abhinay Kumar avatar Simon Fan avatar Nolan Nichols avatar Andreas Kuckartz avatar Brad Jones avatar William Cummings avatar jon ⚝ avatar Sarven Capadisli avatar Ken Kantzer avatar David Furlong avatar  avatar  avatar Melvin Carvalho avatar

Watchers

Brad Jones avatar Andreas Kuckartz avatar Angelo Veltens avatar Andrei avatar Sarven Capadisli avatar Arne Hassel avatar James Cloos avatar Dmitri Zagidulin avatar Tim Berners-Lee avatar  avatar Alain Bourgeois avatar Ted Thibodeau Jr avatar Timea avatar anirban avatar Sharon Stratsianis avatar Gundo Sifhufhi avatar Prahalad Belavadi avatar Jeff Zucker avatar  avatar

solid-signup's Issues

Use Gravatar to auto-populate profile image

As a user convenience, support fetching of profile picture from Gravatar.

  1. Separate the 'optional recovery email' prompt and the optional profile image upload prompt (currently they're on the same screen)
  2. If the user entered the optional recovery email, try and fetch their profile pic from Gravatar, pre-populate the Profile Pic with it. (Obviously, still offer the option to override/upload a new one).

Add installation instructions for LDNode

I haven't been able to install this on LDNode. I suspect I'm running into some combination of:

  • not having the right .acl file in the solid-signup/ directory
  • not being clear where the solid-signup/ app folder is supposed to be in relation to the --root parameter.

Unable to recover my account

Completing the sign up process doesn't seem to have any effect, I am not receiving an email on it's completion.

Add 'About' or 'What is WebID' link to signup screen

Here's the current UI that a user encounters when loading the Signup app (taken from http://databox.me):

screen shot 2016-01-08 at 5 27 21 pm

- Add explanatory wording, to the effect of "This will set you up with a WebID identity and storage account." - Link the WebID to an explanation - Add an `About` link at the bottom, to a page explaining why one should sign up, what WebID is, and what the user should do (like which apps to try) once they create an account. - Add a github 'source code' link to the repo

Make request personalizable

At the moment I can do this:

https://solid.github.io/solid-signup/?domain=' + host

and this will make a request to my domain, however I can't personalize what url the requests head to, since ,system/* are hard-coded, maybe can be passed as get param!

Specify that the Full name and Picture step is optional

During the second step of the Signup process, after it reserves the name, the app prompts you to enter a full name and profile picture.

  1. Add language to point out that this step is optional
  2. Specify that the circle with a photo is a file upload area
  3. Mention that you can edit this info later with a Profile Editor

Add hyphens when typing spaces

More and less the same way github does,
when I type nicola greco, it lets me type it and it shows me that I will be given nicola-greco

Option to re-install certificate

You're all set!
A certificate should have been installed in your browser.

What if the certificate did not install? There should be a button or link saying "not installed? try again"

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.