问题描述
我正在尝试通过以下链接为我的应用程序使用Google身份平台 Google身份识别平台
I am trying to use google identity platform for my application by following the below linkGoogle Identity Platfrom
但是在此页面上,没有提及LinkedIn的身份提供者,并且无法在网络上搜索到.
But on this page, no identity provider mentioned for LinkedIn and same is not searchable on web.
我了解到Google的Identity平台在下面使用Firebase.我只是想知道,在Firebase门户上,有人提到LinkedIn需要自定义实现,而在GCP帐户下->添加提供程序,我可以看到LinkedIn.
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.
我想知道的是,是否有可能在身份平台下立即将LinkedIn添加为提供者.
What I would like to know is, if it is possible to add LinkedIn as provider out of the box under identity platform.
推荐答案
您可以直接通过Identity Platform使用LinkedIn.com提供程序,而无需使用自定义身份验证.它与使用通用OAuth提供程序(如Microsoft或任何其他提供程序)相同.这是一个网络示例:
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.
});
但是,Firebase目前尚不可用.
However, this is currently not yet available in Firebase.
这篇关于谷歌身份平台是否像Facebook或Gmail一样开箱即用地支持LinkedIn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!