我必须创建一个 json 返回托管在 aws 上的 api(aws 必须不能使用 Firebase 云函数)。
登录webapp的用户只能访问api。
我找到了带有 Aws Api Gateway + DynamoDB 的 Serverless Api,它不使用 Aws Lambda 函数。
可以使用非免费的 AWS Cognito 来限制访问!
FirebaseAuth 是免费的!. 所以我的问题是如何使用 firebase auth 来限制对上述 api 的访问?
我必须创建一个 json 返回托管在 aws 上的 api(aws 必须不能使用 Firebase 云函数)。
登录webapp的用户只能访问api。
我找到了带有 Aws Api Gateway + DynamoDB 的 Serverless Api,它不使用 Aws Lambda 函数。
可以使用非免费的 AWS Cognito 来限制访问!
FirebaseAuth 是免费的!. 所以我的问题是如何使用 firebase auth 来限制对上述 api 的访问?
这篇文章Firebase 身份验证与 AWS Cognito可能会有所帮助。
您需要设置自定义授权方:
https://aws.amazon.com/blogs/mobile/integrating-amazon-cognito-user-pools-with-api-gateway/ https://blog.novoda.com/custom-authentication-with-amazon-cognito-和火力基地/