简体   繁体   English

Cognito用户池-缓存的用户ID

[英]Cognito User Pools - Cached User ID

I'm using Cognito User Pools for my mobile app. 我正在为自己的移动应用程序使用Cognito用户池。 I'm storing user data to DynamoDB and S3 where necessary and using the user ID returned by getCachedUserID() to differentiate users. 我在必要时将用户数据存储到DynamoDB和S3,并使用getCachedUserID()返回的用户ID区分用户。

What exactly is this cached user id (eg us-east-1:6fa3bcf6-45bd-4b93-bd68-5cfaffabc123) and can it be used to trace back to specific users in the Cognito user pool? 缓存的用户ID到底是什么(例如us-east-1:6fa3bcf6-45bd-4b93-bd68-5cfaffabc123),它可用于追溯到Cognito用户池中的特定用户? I don't see any ID like this explicitly listed anywhere in the user pool console. 我在用户池控制台的任何地方都没有看到明确列出的任何此类ID。

Thanks 谢谢

getCachedUserId() returns the Identity pool ID and there currently is not an API that maps Identity Id to the User Pool ID. getCachedUserId()返回标识池ID,当前没有将标识ID映射到用户池ID的API。

A workaround is to create a custom mapping of user pool ID and the identity ID and use it to trace user pool ID from the corresponding cached user ID. 一种解决方法是创建用户池ID和标识ID的自定义映射,并使用它来从相应的缓存用户ID跟踪用户池ID。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM