This demonstrates using peer-identity to manage an identity and validate it with an identity provider.
TODO: Validate peers with peer-crdt shared identities.
Before running this demo, install, update, and run https://github.com/ipfs-shipyard/dapp-identity-api/tree/did-attest (the did-attest branch).
- Clone the Repo
npm install
npm start
- Load the url listed as a results of
npm start
- The client creates or loads the session key pair.
- The client generates a distributed identity document (DID)
- The user clicks [Attest]
- The client redirects to a url on the dapp-identity-api asking for attestation
- The user must log in and provide their password
- The dapp-identity-api#did-attest generates a proof and redirects the user back to their app
- The app reloads, loading it's previous session from localStorage.
- The app loads the identity of the user from dapp-identity-api.
- The app checks to see if the attestation exists on the server and retrieves it.
- The app loads the public key of dapp-identity-api and validates the proof.