Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Has someone managed to implement a LinkedIn login with Firebase on iOS?

I'm currently building an app and I would like people to be able to sign up with their LinkedIn account.

I'm using Firebase for the back-end and LinkedIn isn't currently supported by the FirebaseAuth framework.

I know Firebase allows Custom Auth System but even after reading the doc about this, I still struggle to understand how I can plug LinkedIn there and what the so-called authentification server is.

Has someone managed to make this work?

Thanks in advance for your inputs.

like image 890
Edouard Barbier Avatar asked Oct 14 '16 09:10

Edouard Barbier


People also ask

Who uses Firebase authentication?

Firebase Authentication provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter, and more.

Can I use Firebase just for authentication?

You can use Firebase Authentication to allow users to sign in to your app using one or more sign-in methods, including email address and password sign-in, and federated identity providers such as Google Sign-in and Facebook Login.

Can I use Firebase without authentication?

No Firebase Authentication…To use the Firebase Storage we need to authenticate a user via Firebase authentication. The default security rules require users to be authenticated. Firebase Storage is basically a powerful and simple object storage, in which you can store your files easily.

Is twitter using Firebase?

You can integrate Twitter authentication either by using the Firebase SDK to carry out the sign-in flow, or by carrying out the Twitter OAuth flow manually and passing the resulting access token and secret to Firebase.


2 Answers

Firebase Authentication supports only four federated Identity Providers out of the box: Google, Facebook, Twitter and GitHub.

For every other provider you have to use custom tokens (you will need an external Webservice).

You can read more here for a full example (the link is for Instagram but it will also work for LinkedIn as they say).

like image 110
Bronx Avatar answered Sep 18 '22 08:09

Bronx


See this example in official Firebase repo: Use LinkedIn Sign In with Firebase

In this sample we use OAuth 2.0 based authentication to get LinkedIn user information then create a Firebase Custom Token (using the LinkedIn user ID).

like image 30
FelixEnescu Avatar answered Sep 18 '22 08:09

FelixEnescu