如何使用fusionauth实现Apostropecms认证

How to implement Apostropecms authentication with fusionauth

我正在使用 fusionauth 实施 Apostropecms 身份验证。为此,我使用 apostrophe-passport 和 passport-oauth2 模块。我在必须获取用户信息的流程步骤中遇到问题。我没有通过 /oauth2/userinfo 或 /api/user.

从 fusionauth 获取用户信息

我修改了 passport-oauth2 策略以使其适应 fusionauth 流程。

这是错误: InternalOAuthError:无法获取用户配置文件

您可以在 verify callback 中使用用户 API 或用户信息端点。

调用User API provide the accessToken passed into the verify callback to send to FusionAuth in the Authorization header as described in the API JWT authentication

或使用示例中所述的 Userinfo 端点。