ConnectyCube / connectycube-flutter-samples

Code samples for Flutter, based on ConnectyCube platform
https://developers.connectycube.com/flutter/
Apache License 2.0
85 stars 91 forks source link

Firebase authentication #13

Closed najibghadri closed 4 years ago

najibghadri commented 4 years ago

Firebase has an extensive authentication system and a broadly used flutter package for it, firebase_auth. What if I want to authenticate my already existing firebase users (not only with phone, but with social firebase integrations) in your system? I did not find a tutorial to this and I think this would be more widely used instead of only using your authentication.

I found flutter authentication-and-users site that explains firebase phone signin, and External authentication via Custom Identity Provider, but is there a function that let's me simply authenticate with firebase and use those credentials with connectycube?

In the SDK reference it seems like you only support firebase phone tokens. So how to integreate full firebase authentication?

najibghadri commented 4 years ago

Hello!

TatankaConCube commented 4 years ago

hello @najibghadri, sorry for long time answer, Connectycube API supports authentication via firebase phone auth only. But you can use Custom Identity Provider feature to implement own provider for authentication users via firebase and save them on Connectycube server.

najibghadri commented 4 years ago

I found that, but I think there could be a simpler way. Anyways, thanks! :)

TatankaConCube commented 4 years ago

Looks like the issue is resolved, so closing it.