Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to another database engine #70

Closed
timwis opened this issue Sep 5, 2016 · 3 comments
Closed

Switch to another database engine #70

timwis opened this issue Sep 5, 2016 · 3 comments

Comments

@timwis
Copy link
Owner

timwis commented Sep 5, 2016

What's missing from CouchDB:

  1. Password reset functionality
  2. Invite user functionality
  3. Login via another provider (oauth), which may make 1 irrelevant
  4. The only real provider is Cloudant. They have a free tier so long as you don't exceed $50/mo, but require you to have a credit card after 30 days.

Considering firebase, kinto, horizon+rethink

@timwis
Copy link
Owner Author

timwis commented Sep 6, 2016

Firebase approach:

  • Account creation: Admins can create users in the UI. createUserWithEmailAndPassword with a random password, then sendPasswordResetEmail. Also create a record in agents with their new uid.
  • Forgot password: sendPasswordResetEmail + confirmPasswordReset
  • Login: messages has a .read/.write rule that requires a record exist inside agents or admins with the uid as its key (explanation)

@timwis
Copy link
Owner Author

timwis commented Sep 6, 2016

I wonder... What if I just wrote the password reset functionality? Could use that for account activations. Maybe the gap there is narrower than switching everything to firebase.

@timwis
Copy link
Owner Author

timwis commented Sep 21, 2016

Wrote the password reset functionality, so closing for now.

@timwis timwis closed this as completed Sep 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant