Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mongodb 是否可以在Stitch自定义身份验证/Stitch Auth中使用Firebase Signin with Email和Password_Mongodb_Firebase Authentication_Custom Authentication - Fatal编程技术网

Mongodb 是否可以在Stitch自定义身份验证/Stitch Auth中使用Firebase Signin with Email和Password

Mongodb 是否可以在Stitch自定义身份验证/Stitch Auth中使用Firebase Signin with Email和Password,mongodb,firebase-authentication,custom-authentication,Mongodb,Firebase Authentication,Custom Authentication,我想使用Firebase Signin with Email和Password对mongodb应用程序中的用户进行身份验证。可能吗 我研究了使用JWT签名密钥进行自定义身份验证。但是我不知道是否可以通过EmailandPassword方法从Firebase Signin获得JWT签名密钥您可以使用Firebase Signin with EmailandPassword进行自定义身份验证。所有firebase身份验证响应都包含由firebase创建的JWT令牌,您可以使用response.use

我想使用Firebase Signin with Email和Password对mongodb应用程序中的用户进行身份验证。可能吗


我研究了使用JWT签名密钥进行自定义身份验证。但是我不知道是否可以通过EmailandPassword方法从Firebase Signin获得JWT签名密钥

您可以使用Firebase Signin with EmailandPassword进行自定义身份验证。所有firebase身份验证响应都包含由firebase创建的JWT令牌,您可以使用
response.user.getIdToken()
调用获取该令牌。然后可以将此令牌发送到
stitch
进行自定义令牌身份验证

firebase使用的密钥以JWK uri-的形式提供

此外,令牌中定义的
aud
是firebase应用程序的
appId
。这将通过stitch进行验证,并可在“身份验证配置”选项卡中定义

这可以在stitch中的自定义身份验证配置中进行配置