Doichain / dapp

Doichan dApp - a Meteor.js implementation of the "Doichain Atomic Double-Opt-In" Protocol
https://www.doichain.org
MIT License
6 stars 6 forks source link

Make dapp available for multiple users via REST API #61

Closed SendFlo closed 6 years ago

SendFlo commented 6 years ago
  1. It should be possible to create multiple accounts via REST
  2. It should be possible to send a SOI-template-URL via REST
  3. It should be possible to export user specific doi-information via REST
SendFlo commented 6 years ago

Users can be now created and updated by the admin in the restAPIaccess branch.

SendFlo commented 6 years ago

Doi-information are now exported by userid in export api query. In the future it should use user-id-token and auth-token.

silkroadnomad commented 6 years ago

Remarks: When adding an opt-in every user must authenticate and can add an opt-in (not just admin) In case admin does this, this should be not prevented. but in this case the ownerId must be given in REST request.

the template url overwrites the system default template url (and the other attributes) in the moment the email template is being sent back to Bob. It is not desirable to check all attributes (templateUrl, redirect, subject, returnPath) in the moment the user is created. it should be possible to give all attributes of the user when it is created.

Export: For the export interface we do the same thing: 1) the admin can export all opt-ins from all users (showing the owner for every opt-in) 2) the admin adds a query parameter for the onwer and receives only those. 3) a user can authenticate and see's only his opt-ins.

SendFlo commented 6 years ago
SendFlo commented 6 years ago

Need to add PUT call for users collection for users to be able to update their account-profile. Admin user should still be able to update user-profiles based on userid.

silkroadnomad commented 6 years ago

needs software tests. pls see #64 and #65