rlamasb / Firebase.Xamarin

Light weight wrapper for Firebase Realtime Database REST API.
MIT License
149 stars 39 forks source link

Update from upstream to fix Auth issues stemming from #2 #3

Closed se1exin closed 8 years ago

se1exin commented 8 years ago

I was having a lot of trouble getting my Auth tokens to work using the additions in #2 and saw that step-up-labs have made some pretty significant changes in their firebase-authentication-dotnet repo since Firebase.Xamarin was forked/started. Updating those sources fixed my Authentication issues as well as the latest updates from step-up-labs.

This pull introduces those updates, which include Firebase offline database, while still maintaining @rlamasb's work on Custom Authentication Tokens.

Changes from step-up-labs are as at the following commits:

Additionally, I have spit up the namespaces for the Auth, Database, and Token components for maintainability.

One thing to look out for is that the constructor for FirebaseClient(String url, String token) has changed to just FirebaseClient(String url), with the Auth token now being passed via .WithAuth("token") on a QueryChild class. See the Auth Section of the README for more details.

Please let me know if there are any issues and I will try to fix them