mycoralhealth / mycoral-patient

Mobile app for patients to interact with Coral Health blockchain
17 stars 7 forks source link

Allows using corald server as an authenticated IPFS proxy #48

Closed lukecyca closed 6 years ago

lukecyca commented 6 years ago

This PR enables support for using corald as an authenticated and rate-limited IPFS proxy server:

The corresponding changes to corald and server-ops have been pushed and deployed, so the infrastructure is in place to start using this branch immediately.

KNOWN ISSUES:

Previously we were authenticating once and then storing the username forever without validating the token. Now each time a user interacts with IPFS, we are validating their auth token. If it expires or is invalid for any reason, we are showing a generic error. Instead we should kick them back to a login screen.