Firebase Authentication From .Net Application

885 views
Skip to first unread message

Trevortni

unread,
Nov 1, 2016, 9:28:34 PM11/1/16
to Firebase Google Group
Is it possible to use Firebase Authentication from a .Net application on Windows? It seems to be impossible to find, or get, a straight answer to this question anywhere I have looked or asked.

Jacob Wenger

unread,
Nov 1, 2016, 9:40:11 PM11/1/16
to fireba...@googlegroups.com
Hey there,

How would you like to use Firebase Authentication from your .Net application specifically? Do you want to generate a custom token which can be used to sign in a client device? If so, you can use a third-party JWT library to do that, documented here. Do you want to read from the Realtime Database from .NET? If so, you can use the REST API. Do you want to verify an ID token from a client device? If so, you can use a third-party JWT library to do that, documented here. Do you want to create or manage Firebase Auth users? Unfortunately, that is not currently possible from a .NET application. Do you want to do something else? Let me know what it is and I'll try to help you out.

Cheers,
Jacob

On Tue, Nov 1, 2016 at 5:47 PM, Trevortni <lewis.k...@gmail.com> wrote:
Is it possible to use Firebase Authentication from a .Net application on Windows? It seems to be impossible to find, or get, a straight answer to this question anywhere I have looked or asked.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c1479dab-62f0-4d02-a92a-13250fcab056%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Trevortni

unread,
Nov 2, 2016, 6:36:50 PM11/2/16
to Firebase Google Group
Our data starts out in our existing desktop app, and the plan is to push it to the Realtime Database to be consumed by mobile devices (and have results returned, which would presumably use pretty much the same route). Using the REST API for the Realtime Database is already planned; but in order to do that, we need authentication to permit the desktop to access the correct areas of the Realtime Database. Ideally, we would like to be able to have the desktop user be able to specify other users that can access their data (our app is used by business customers that would have employees that would use the data on their mobile devices), but at a bare minimum, we would need something, anything, that would allow the business to log in through the desktop app to push the data to the Realtime Database and access only the data for that company (and then we could force the mobile users to log in with the same credentials if there is no other way to do it). Without that component, using REST to access the Realtime Database is irrelevant.

Does that help clarify things?

Jacob Wenger

unread,
Dec 6, 2016, 3:03:47 PM12/6/16
to fireba...@googlegroups.com
Hey Trevortni,

Sorry for the delay in responding. And thanks for further explaining your use case. I understand it much better now.

It is possible to access the Realtime Database REST API with end-user credentials via the auth query string parameter. You can pass a Firebase ID token as the value of this parameter to read or write data as the user represented by that Firebase ID token. However, the problem for you is that the only way to currently retrieve this ID token is to log in to one of our client SDKs. Unfortunately, there is no way for you to do this from your .NET application since we don't have a .NET SDK.

In order for you to make this work, you'd have to log a user into one of the Firebase SDKs (web, iOS, or Android) and then send the ID token from that login to your .NET application. We realize this is not really feasible for your app. We are working to provide more options to handle use cases like yours in the future. Sorry I don't have better news.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages