Does google identity platform supports LinkedIn out of the box like it does for Facebook or Gmail

十年热恋 提交于 2019-12-24 04:54:06

问题


I am trying to use google identity platform for my application by following the below link Google Identity Platfrom

But on this page, no identity provider mentioned for LinkedIn and same is not searchable on web.

What I understood is Google's Identity platform is using Firebase underneath. I am just wondering, on Firebase portal it is mentioned that a custom implementation is required for LinkedIn whereas under the GCP account -> Add provider I can see LinkedIn.

What I would like to know is, if it is possible to add LinkedIn as provider out of the box under identity platform.


回答1:


You can use LinkedIn.com provider directly via Identity Platform without using custom authentication. It is the same as using a generic OAuth provider like Microsoft or any other provider. Here is an web example:

const provider = new firebase.auth.OAuthProvider('linkedin.com');
firebase.auth().signInWithPopup(provider)
  .then((userCredential) => {
    // User signed in.
  })
  .catch((error) => {
    // Error signing in.
  });

However, this is currently not yet available in Firebase.



来源:https://stackoverflow.com/questions/57303334/does-google-identity-platform-supports-linkedin-out-of-the-box-like-it-does-for

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!