【问题标题】:Integrate Laravel with AWS cognito将 Laravel 与 AWS cognito 集成
【发布时间】:2019-12-02 11:45:36
【问题描述】:

几个月前我配置了一个 AWS Cognito 用户池并将其连接到 node.js 应用程序,一切都很完美

现在,我想将 laravel 连接到 AWS Cognito,我按照article 中的说明进行操作

我收到以下错误

Error executing "AdminInitiateAuth" on "https://cognito-idp.eu-west-1.amazonaws.com"; AWS HTTP error: Client error: `POST https://cognito-idp.eu-west-1.amazonaws.com` resulted in a `400 Bad Request` response:
{"__type":"UnrecognizedClientException","message":"The security token included in the request is invalid."}
UnrecognizedClientException (client): The security token included in the request is invalid. - {"__type":"UnrecognizedClientException","message":"The security token included in the request is invalid."}  

我确信凭据是正确的,但我得到了这个错误。 文章有没有遗漏的配置?

【问题讨论】:

    标签: amazon-web-services aws-sdk amazon-cognito


    【解决方案1】:

    我在同一篇文章之后遇到了同样的“问题”。我已经通过在 .env 中验证我的凭据来修复它

    AWS_COGNITO_KEY=
    AWS_COGNITO_SECRET=
    

    这些是 IAM 用户的访问密钥

    https://github.com/black-bits/laravel-cognito-auth#cognito-user-pool

    【讨论】:

      猜你喜欢
      • 2018-11-01
      • 2021-04-25
      • 1970-01-01
      • 2021-09-10
      • 1970-01-01
      • 2018-08-23
      • 2020-08-16
      • 1970-01-01
      • 2019-03-26
      相关资源
      最近更新 更多