hiposfer / hive

Your go-to routing app for public transport
GNU Lesser General Public License v3.0
10 stars 0 forks source link

User authentication #43

Closed carocad closed 6 years ago

carocad commented 7 years ago

Firebase already provides user authentication capabilities.

I think for the time being Google (g+) and facebook authentication would suffice. Our own custom authentication might come in the long term but right now it would only add more work to do without much benefit.

The authentication should be disabled by default in development such that the app can be tested without having to log in again even after a fresh install. This would also allow to eventually use firebase android apps testing (since the robot test cannot pass through the login page).

For development, a default dev account should be used.

carocad commented 7 years ago

Firebase seems to have some problems with react native apps. Nevertheless they mention that it is possible to authenticate externally and then pass the credentials back to firebase for login. That creates an extra overhead but it should be doable.

The flow should then be as follows:

From firebase: