在 Squarespace 网站上添加 AWS Cognito 登录/注册功能

Add AWS Cognito SignIn/ SignUp Feature on Squarespace Website

我们在 Squarespace 上托管了一个网站。我们想使用 AWS Cognito.The 向我们的网站添加 sign-in/sign-up 功能 Cognito.The 网站支持我们使用 AWS Cognito 用户池的移动应用程序。我们如何将 AWS Cognito 集成到我们的 Squarespace 网页中?还有哪些其他方法可以实现此目的?

Squarespace 上没有关于第三方集成的具体文档。

因为 you can only add "client-side code" to a Squarespace site, and not server-side code, you can only integrate with third-party services if it A) it is within their rather limited and internally-curated list of extensions 或 B) 它可以完全通过 front-end 上的 JavaScript 完成。

You can't add server-side code

Server-side code is handled by a server, not by a browser, and includes: PHP, Ruby, Ruby on Rails, SQL

因此您必须完全使用 client-side 代码来集成服务,很可能使用 AWS SDK for JavaScript, if that is possible. See the client-side authentication flow section here. The "Implicit grant" section here 也可能适用。