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

查看:20
本文介绍了如何从 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天全站免登陆