菜鸟教程小白 发表于 2022-12-11 18:26:53

ios - AWS Cognito 在 Swift 中获取用户组


                                            <p><p>所以我在 Swift 中的 iOS 应用程序上实现了 Amazon Cognito 登录,并且一切正常。但是,我现在正试图找出登录用户所属的组。我似乎无法从应用程序中找到执行此操作的好方法。从我所见,SDK 似乎没有提供这样做的方法。任何帮助将不胜感激!</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>目前,这些组在发给用户的 IDtoken 中公开。
它填充在声明“cognito:groups”中。
更多详情:<a href="http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html" rel="noreferrer noopener nofollow">http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-user-groups.html</a> </p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - AWS Cognito 在 Swift 中获取用户组,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/45524882/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/45524882/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - AWS Cognito 在 Swift 中获取用户组