使用Firebase身份验证链接Amazon帐户 [英] Amazon account linking using firebase authentication

查看:103
本文介绍了使用Firebase身份验证链接Amazon帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以选择使用Firebase实施亚马逊帐户关联, 我们知道我们可以使用Firebase身份验证提供程序实现Google,Facebook和Twitter的帐户链接.

Is there any option to implement amazon account linking using firebase, We know we can implement account linking for google, facebook and twitter using firebase auth provider.

我正在使用Firebase身份验证实现Google,Twitter,Facebook的帐户链接.下面的代码显示

I am implementing account linking for google, twitter, facebook using firebase auth. The below code shows

firebase.auth.GoogleAuthProvider()
firebase.auth.FacebookAuthProvider()
firebase.auth.TwitterAuthProvider()

那我得到的结果就是使用

then i am getting result using

firebase.auth().signInWithRedirect(provider)
firebase.auth().getRedirectResult()

我想使用亚马逊登录页面链接帐户.有什么办法吗?或者提供任何建议以显示亚马逊登录页面,然后用户输入电子邮件和密码,我想获取用户数据

I want to link account using amazon login page.Is there any way to do it or please provide any suggestion to show amazon login page then user enter email and password i want to get user data

推荐答案

Firebase身份验证没有用于Amazon登录的内置提供程序.这意味着,要允许使用Amazon帐户登录Firebase,您必须创建一个自定义提供程序.

Firebase Authentication has no built-in provider for Amazon sign-in. That means that, to allow signing in to Firebase with Amazon accounts, you'll have to create a custom provider.

当前不支持将自定义提供程序帐户链接到现有帐户(从内置提供程序中).但是,如果您查看此Github线程,则有一些不错的信息如何通过使用自定义声明或其他机制来实现相同目标.

Linking custom provider accounts into existing accounts (from built-in providers) is not currently supported. But if you look at this Github thread, there's some good info on how to accomplish the same by using custom claims or another mechanism.

这篇关于使用Firebase身份验证链接Amazon帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆