Xamarin.Firebase.Auth and LinkedIn - please for advice - xamarin.forms

My project is Xamarin.Forms PCL for Android and iOS.
Current stage is:
I'm able to get LinkedIn authorization(with Xamarin.Auth - OAuth2Authenticator),
and get user info from LinkedIn - Android Project.
What I would like to do:
After authorization, SignIn/LogIn to application using FireBase - in other words integrate OAuth with FireBase?
Is it possible?
I'm not sure if I'm going in good direction, or if I'm thinking right.
Thanks

If you are using an unsupported provider (eg. LinkedIn), you will need to use custom authentication. You would verify the LinkedIn sign in on your server, mint a custom token using Admin SDK: https://firebase.google.com/docs/auth/admin/create-custom-tokens, send the custom token to the client and complete sign in using signInWithCustomToken. This is also available via REST API: https://firebase.google.com/docs/reference/rest/auth/#section-verify-custom-token

Related

Firebase - sendVerificationCode API

I am trying to authenticate the user with phone number using firebase through sendVerificationCode API. It is expecting phoneNumber and either of (iosReceipt and iosSecret) or recaptchaToken or safetyNetToken.
My app is on the Web, Android and also in IOS. I don't want to depend on the front-end to generate recaptchaToken or some other things. All these apps should just call one custom API with just phoneNumber and it should sendVerificationCode to the user. I am trying to implement a wrapper API to sendVerificationCode.
Can anyone help me with how to achieve this? Am I going on the right path?
Thanks in Advance!
Source: https://cloud.google.com/identity-platform/docs/reference/rest/v1/accounts/sendVerificationCode?hl=en_US

Unknown user in my firebase user authentication (Flutter/firebase)

I developed an app to test the google login feature using flutter and google authentication. The project is a closed project and only I have access to it. But recently I saw that there was a google sign in from an unknown Email ID. How did the user login without the build of my app? Has my account been hacked? What is going on?
Anyone with knowledge of your project's API Keys can access your Firebase Project using simple CURL Commands.
This is why it's a good idea to add restriction to those API Keys
In case you haven't, go to https://console.cloud.google.com and
Select your project
Click the menu icon at the top left (hamburger icon)
Go to API & Services and then credentials
You can view the APIs for your Google Cloud Project (linked to your Firebase Project) and then set restrictions for the API keys, refresh them or restrict access to specific platforms like Android or iOS.
You can also set restrictions on which components of Firebase the API key is allowed to access. For example, if your project doesn't require the use of Cloud Firestore, you can ensure that the API Key cannot be used to make calls to the Firestore Database
All said and done, I would still recommend that you shoot a mail to the Firebase Support team at https://firebase.google.com/support/troubleshooter/contact
To anyone still wondering about this:
If you provide a native google sign in and the registered
email adresses look like this:
karolynmccorkle.91842#gmail.com
normabrock.69306#gmail.com
guillermogeorge.53163#gmail.com
kylegomez.35423#gmail.com
opalbarrett.09499#gmail.com
they are probably test accounts used to generate Google Plays Pre-Launch reports.
You can read about it in the Play Console Help here.
If your app has a sign-in screen and you want the crawler to test the
sign-in process or the content behind it, you need to provide account
credentials.
Note that you do not need to provide credentials if your
app supports "Sign-in with Google,” which enables the crawler to log
in automatically.

Approval Request 2FA authentication

With Google Authenticator or Microsoft Authenticator I generate a Time-based One Time Password (TOTP).
User need to insert the code in my website complete two factor authentication.
How to generate a push notification "Approval Request" in Authenticator App with a custom account?
Like described here:
https://support.google.com/accounts/answer/7026266?co=GENIE.Platform%3DiOS&hl=en
https://techcommunity.microsoft.com/t5/Azure-Active-Directory-Identity/Microsoft-Authenticator-iOS-now-supports-push-approval-for/ba-p/245120
Could not find any technical documentation
Twilio developer evangelist here.
You can't build that sort of integration with Google Authenticator or Microsoft Authenticator.
One option you have is to check out the Authy push notification API. It uses the Authy app which is free to download for your users, and can perform authentication via push notification or drop back to in app code or even SMS.
Let me know if that helps at all.

How to Use new firebase authentication with angularfire for email and password Login

I am working on an application with firebase and I am looking for the user authentication with the new migrated google's firebase with angularfire.
I tried to search in the API provided but was not able to find any examples for the login mechanism using angularfire. I am just looking for email and password login.
Thereafter i tried with the legacy angularfire but some of the methods are no longer supported. can someone provide me with an example for the email/password login?
There is some documentation on migrating for the new firebase with AngularFire.
Make sure you are using 2.0.0+ firebase version and follow this migration guide.
Besides that you just need to follow the documentation for firebase 3.x.x provided on firebase webpage.

Firebase Google Auth "Authentication Disabled"

I am checking out Google Auth with the new firebase (web) and I am getting this "Authentication Disabled" message when I try to pop up Google Auth on click of a button.
I have clearly enabled Google sign in from Auth and followed configuration example from https://www.firebase.com/docs/web/guide/login/google.html.
I have generated client ID and secret as per the document.
Here are my urls configured in Google console
https://auth.firebase.com
https://auth.firebase.com/v2/exampleXXX-XXX-loss/auth/google/callback
I have pasted the client ID and secret in Web SDK configuration for Google Signin
What am I missing ?
Probably the best way to go with your current project is upgrade it to the newest Firebase version. Go to https://console.firebase.google.com/ scroll down to the section "Your projects currently at Firebase.com" and hit the "Import" button.
After this you'll be able to use the new capabilities of Firebase 3 and specifically for Google Sign-in you can check this page https://firebase.google.com/docs/auth/web/google-signin
Have fun out there!
Try to use the newest firebase sdk. Or try to switch to google firebase. Google firebase is similar to firebase, however, it is easier to implement the code, in your existing project.

Resources