Comments (4)
I found the answer so quickly and forked your code. if you want i can send you a PR. function would like as below according to explained here
/// <summary>
/// Using the provided Id token from google signin, get the firebase auth with token and basic user credentials.
/// </summary>
/// <param name="authType"> The auth type. </param>
/// <param name="IdToken"> The Id token retrieved from google signin </param>
/// <returns> The <see cref="FirebaseAuth"/>. </returns>
public async Task<FirebaseAuthLink> SignInWithIdTokenAsync(string IdToken)
{
var providerId = this.GetProviderId(FirebaseAuthType.Google);
var content = $"{{\"postBody\":\"id_token={IdToken}&providerId={providerId}\",\"requestUri\":\"http://localhost\",\"returnSecureToken\":true}}";
return await this.ExecuteWithPostContentAsync(GoogleIdentityUrl, content).ConfigureAwait(false);
}
from firebase-authentication-dotnet.
I hardcoded as google because i didnt see Idtoken is used beside google because facebook api returns access token as in the documentation but it can be also dynamic like your access token function
from firebase-authentication-dotnet.
Sure, make it a PR and I'll merge it. Just rename the method to make it clear it's google only, something like SignInWithGoogleIdTokenAsync
from firebase-authentication-dotnet.
Hi,
I'm wondering if there are any developments on this? I'm having the same issue, and am wondering if there's a good way to be able to sign in with the token that the standard Android GoogleSignInAccount
provides.
from firebase-authentication-dotnet.
Related Issues (20)
- [Help wanted] Best approach for login & main window navigation in Xamarin forms
- wpf with dependency injection HOT 1
- (Enchancement) Support Local Storage & Async for IUserRepository HOT 1
- Possibility to check user password HOT 1
- Question: do you not support sign in with custom token? HOT 1
- Email verification HOT 7
- Posibility to change the token expiration HOT 1
- Phone Authentication
- Exception occured during Firebase Http request. HOT 1
- Check if DisplayName already exists HOT 1
- Need Help with login with Google in .NET MAUI HOT 1
- Email Verification Implementation Help HOT 1
- [Endpoints Migration] : identitytoolkit v3 needs to be migrated to something else HOT 1
- Is there a way to get the last time user logged in?
- Create Email and Password issue in .Net MAUI
- [.NET MAUI] How implement "OpenBrowserAndWaitForRedirectToAuthDomain" HOT 2
- I can't get FetchSignInMethodsForEmailAsync to work HOT 2
- How to persist authentication across app restarts ? HOT 6
- Allow FirebaseAuthConfig.RedirectUri to be configurable
- Observed in version 3.7.2 : Parsing error when the password ends (or maybe contains also) a backslash \ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-authentication-dotnet.