如何从AWS Cognito JWT中获取元数据以将其用于MongoDB Stitch元数据字段? [英] How to get metadata out of AWS Cognito JWT to use it for the MongoDB Stitch Metadata Fields?

查看:85
本文介绍了如何从AWS Cognito JWT中获取元数据以将其用于MongoDB Stitch元数据字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AWS Cognito作为MongoDB Stitch应用程序的自定义身份验证.我可以从AWS Cognito成功检索JWT并登录到MongoDB Stitch.我想将属性存储在JWT中.我需要有关如何获取元数据的JWT路径以放入MongoDB的用户"->提供者"->元数据字段"的帮助.

I am using AWS Cognito as the custom authentication for my MongoDB Stitch app. I can successfully retrieve the JWT from AWS Cognito and login to MongoDB Stitch. I would like to store attributes in the JWT. I need help on how to get the JWT path to the metadata to put in MongoDB's Users -> Providers -> Metadata Fields.

推荐答案

功能已添加到MongoDB Stitch的链接.这是配置自定义用户数据.

Feature has been added link to MongoDB Stitch. Here is the documentation to Configure Custom User Data.

这篇关于如何从AWS Cognito JWT中获取元数据以将其用于MongoDB Stitch元数据字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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