firebase-authentication-dotnet | C # library for Firebase Authentication | Authentication library
kandi X-RAY | firebase-authentication-dotnet Summary
kandi X-RAY | firebase-authentication-dotnet Summary
C# library for Firebase Authentication
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of firebase-authentication-dotnet
firebase-authentication-dotnet Key Features
firebase-authentication-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on firebase-authentication-dotnet
QUESTION
Background on my login flow:
I'm creating a C# WPF Application which will be distributed to an end-user.
On my Website, I'm using FirebaseUI Auth to do the login authentication so that the user can log in with Google, Facebook or Email.
When the user initiates a log into the Application, it transfers the user over to the Website temporarily which mints a custom JWT token on the server which is returned to the Website then -> Application and then Application then uses to the freshly minted JWT token to Authenticate with FirebaseAuthentication.net to generate a Firebase auth token. This works great for connecting to Firebase REST API's like Firestore to obtain user information on client Application.
The Problem: Not only do I want to connect to the Firebase API's, but to the Google Cloud Speech API as well (in this case Speech-To-Text). I don't believe the Firebase auth token is sufficient to achieve this. I can verify the user and access their Firebase data on the server or the client, yet this is insufficient to connect to the Google Speech-To-Text API. In Google's examples using the client credentials first requires obtaining an auth-code from their authorization endpoint. In Google's Windows Application OAuth Example This is the https://accounts.google.com/o/oauth2/v2/auth authorization endpoint.
Theorizing creates another potential question which could sooner answer the question: Could I use my FirebaseUI Auth page as an OAuth Endpoint to somehow authenticate my End-User Application with Google to connect to the Google Speech-to-Text API instead of using the https://accounts.google.com/o/oauth2/v2/auth endpoint?
The Question: How do I access the Google Cloud Speech-To-Text API from an end-user Application after authenticating them with Firebase Auth?
Google's reference for how to authenticate as an end-user: https://cloud.google.com/docs/authentication/end-user
...ANSWER
Answered 2019-Sep-21 at 17:09Google Cloud Speech API auth needs to happen separately. You would need to enable this API from Cloud Console and create the service account key. Since this is an end user app I would recommend doing it on the server side. API integration examples are available in the Firebase GCP Integration Doc.
QUESTION
I have added these 2 packages to my project: https://github.com/step-up-labs/firebase-database-dotnet and https://github.com/step-up-labs/firebase-authentication-dotnet
I am trying to access JSON data on Firebase from VB.NET, using API key and email/password for authentication. My code:
...ANSWER
Answered 2017-Mar-05 at 23:23The WithAuth()
method expects a Func(Of String)
rather than a normal String
.
A Func(Of String)
is a delegate method pointing to a function that returns a string, so you can just have it return auth.FirebaseToken
and it should work:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebase-authentication-dotnet
In the developer console make sure you have an OAuth client (set it either as iOS or Android app, that should work).
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page