dkrprasetya / simple-firebase-unity

Firebase Realtime-Database's REST API Wrapper for Unity in C#
143 stars 40 forks source link

Authentication #3

Open TeddyMathias opened 8 years ago

TeddyMathias commented 8 years ago

Hi thanks for working on this. Do you have any plans to integrate support for Firebase Authentication? Firebase Analytics?

Is that possible through the REST API?

dkrprasetya commented 8 years ago

Hi TeddyMathias,

Thanks for visiting my repository!

Yes, I have thought about that. But since I am working on this alone and this is merely a side project, it sure will take time. However, if you could help maybe it could be faster :)

For Firebase Authentication, I think this might be possible, but I'm still looking for the best way to do that. As I read in https://firebase.google.com/docs/reference/rest/database/user-auth and https://developers.google.com/identity/protocols/OAuth2ServiceAccount, there may be a chance to wrap this on REST. Will dig it more later.

For Firebase Analytics, I haven't found a way to do that through REST. As the Analytics is actually just provided recently, they probably will add this in the future though. Just probably...

chrisdrogaris commented 7 years ago

Hi, I will be interested in looking into the authentication part if you need help.

dkrprasetya commented 7 years ago

Hi @chrisdrogaris , that would be very awesome if you could help me. Do you already have something in mind on how to tackle it?

simonhopkin commented 7 years ago

Hi, did you manage to make any progress on the authentication side?

asifoncue commented 6 years ago

Has there been any progress on this front? It would be very helpful.

dkrprasetya commented 6 years ago

For those who are still wondering, other than using Firebase secret, you have to create a Google OAuth2 access token (obtainable using Google's SDK) or use Firebase ID Token (obtainable using Firebase's SDK on Authentication). I couldn't find a way to create a legit auth token without those SDKs.

Helpful reads: https://firebase.google.com/docs/database/rest/auth https://groups.google.com/forum/#!topic/firebase-talk/M6oQa29J1qg

angusmf commented 6 years ago

Looks like the answer in that second link is outdated. There is a .NET client API now. https://developers.google.com/api-client-library/dotnet/

The Java example here-> https://firebase.google.com/docs/database/rest/auth is probably pretty close to what we need to do.

hartefactoestudio commented 5 years ago

Has there been any progress on this front?

davoodkharmanzar commented 5 years ago

is it possible for Phone verification on PC? i mean sending request from pc to Firebase and after receiving SMS on target phone number , just typing secret code on PC to login or register.