<tfoot id='tbJaZ'></tfoot>
    • <bdo id='tbJaZ'></bdo><ul id='tbJaZ'></ul>

    <small id='tbJaZ'></small><noframes id='tbJaZ'>

      <legend id='tbJaZ'><style id='tbJaZ'><dir id='tbJaZ'><q id='tbJaZ'></q></dir></style></legend>
      <i id='tbJaZ'><tr id='tbJaZ'><dt id='tbJaZ'><q id='tbJaZ'><span id='tbJaZ'><b id='tbJaZ'><form id='tbJaZ'><ins id='tbJaZ'></ins><ul id='tbJaZ'></ul><sub id='tbJaZ'></sub></form><legend id='tbJaZ'></legend><bdo id='tbJaZ'><pre id='tbJaZ'><center id='tbJaZ'></center></pre></bdo></b><th id='tbJaZ'></th></span></q></dt></tr></i><div id='tbJaZ'><tfoot id='tbJaZ'></tfoot><dl id='tbJaZ'><fieldset id='tbJaZ'></fieldset></dl></div>

      使用 AWS Cognito 开发人员身份从我的 ios 应用程序

      时间:2023-08-29

      • <bdo id='oTUUr'></bdo><ul id='oTUUr'></ul>
        1. <legend id='oTUUr'><style id='oTUUr'><dir id='oTUUr'><q id='oTUUr'></q></dir></style></legend>
            <tbody id='oTUUr'></tbody>

              <small id='oTUUr'></small><noframes id='oTUUr'>

              <tfoot id='oTUUr'></tfoot>
              <i id='oTUUr'><tr id='oTUUr'><dt id='oTUUr'><q id='oTUUr'><span id='oTUUr'><b id='oTUUr'><form id='oTUUr'><ins id='oTUUr'></ins><ul id='oTUUr'></ul><sub id='oTUUr'></sub></form><legend id='oTUUr'></legend><bdo id='oTUUr'><pre id='oTUUr'><center id='oTUUr'></center></pre></bdo></b><th id='oTUUr'></th></span></q></dt></tr></i><div id='oTUUr'><tfoot id='oTUUr'></tfoot><dl id='oTUUr'><fieldset id='oTUUr'></fieldset></dl></div>

              • 本文介绍了使用 AWS Cognito 开发人员身份从我的 ios 应用程序获得对 DynamoDB 的完全访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我已经实现了一个 AWS Lambda 函数并使用网关返回填充数据:

                I have implemented a AWS Lambda function and used the gateway to return the fulling data:

                var param =
                {
                    IdentityPoolId: "actualIdentityPoolId",
                    Logins: {} // To have provider name in a variable
                };
                param.Logins["com.testing.userLogin"] = userId;
                
                cognitoidentity.getOpenIdTokenForDeveloperIdentity(param,
                function(err, data)
                {
                    if (err) return fn(err); // an error occurred
                    else fn(null, data.IdentityId, data.Token); // successful response
                });
                

                因此,identityId 和 token 会被发送回 ios 设备.在我的设备中,我尝试连接到 AWS DynamoDB 表,但访问被拒绝.如何使用 identityId 和 token 来访问表?

                So the identityId and token get sent back to the ios device. In my device I try to connect to an AWS DynamoDB table but access is denied. How do I use the identityId and token to gain access to the tables?

                我在 IAM 中为 Unauth 设置了角色,该角色拒绝 Dydnamo 和 Auth,后者通过其策略授予对表的访问权限.

                I have set up roles in IAM for Unauth which denies Dydnamo and Auth which gives access to the tables through its policies.

                我正在尝试使用以下方式实现身份验证:http://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html

                I am trying to implement authentication using: http://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flow.html

                我看到有两个流程,基本流程和增强流程.文档说大多数用户将使用增强的流程并实现 GetCredentialForIdentity.

                I see there are two flows which are Basic and Enhanced. The documentation says most users will use the enhanced flow and that implements GetCredentialForIdentity.

                这是如何在我的 ios 代码中实现的,以便我可以将我的角色从 unauth 切换到 auth 并可以访问 dynamodb?这种访问会持续多久?我想在我的 ios 代码中完成这一切,而不是使用 lambda 或其他类似的东西.

                How is that implemented in my ios code so that I can switch my role from unauth to auth and can access to dynamodb? How long will this access last? I would like to do this all in my ios code instead of using lambda or something else like that.

                推荐答案

                如果您的用户未经身份验证,那么您需要在登录时清除您的凭据,并且您的登录"方法现在应该返回正确更新的登录映射.

                If your user is unauthenticated, then logs in you need to clear your credentials, and your 'logins' method should now return a properly updated logins map.

                以下是可帮助您的文档:http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html

                Here is the documentation to help you: http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html

                这篇关于使用 AWS Cognito 开发人员身份从我的 ios 应用程序获得对 DynamoDB 的完全访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:是否可以使用 AWS AppSync 构建离线优先的移动应用 下一篇:使用 Swift 3 在 DynamoDB 中保留关键字 ExpressionAttr

                相关文章

                最新文章

                <small id='41s3R'></small><noframes id='41s3R'>

                <legend id='41s3R'><style id='41s3R'><dir id='41s3R'><q id='41s3R'></q></dir></style></legend>

                1. <i id='41s3R'><tr id='41s3R'><dt id='41s3R'><q id='41s3R'><span id='41s3R'><b id='41s3R'><form id='41s3R'><ins id='41s3R'></ins><ul id='41s3R'></ul><sub id='41s3R'></sub></form><legend id='41s3R'></legend><bdo id='41s3R'><pre id='41s3R'><center id='41s3R'></center></pre></bdo></b><th id='41s3R'></th></span></q></dt></tr></i><div id='41s3R'><tfoot id='41s3R'></tfoot><dl id='41s3R'><fieldset id='41s3R'></fieldset></dl></div>

                    • <bdo id='41s3R'></bdo><ul id='41s3R'></ul>
                  1. <tfoot id='41s3R'></tfoot>