【问题标题】:Hyperledger Compose REST API authentication with apigee使用 apigee 进行 Hyperledger Compose REST API 身份验证
【发布时间】:2018-05-02 23:30:15
【问题描述】:

我正在使用 apigee oauth2 服务以多用户模式运行 Hyperledger Composer REST api。 https://hyperledger.github.io/composer/latest/integrating/enabling-multiuser.html

在上面的链接中,我通过了 github oauth 身份验证步骤 (https://hyperledger.github.io/composer/latest/integrating/enabling-rest-authentication.html),但想使用 apigee。

如何构造特定于 apigee 的 COMPOSER_PROVIDERS 环境变量对象文字?需要使用什么样的passportjs 模块?

【问题讨论】:

    标签: hyperledger-fabric hyperledger hyperledger-composer


    【解决方案1】:

    可在http://www.passportjs.org/packages/ 找到 Composer REST 服务器支持的身份验证策略(搜索 OAUTH2)。我在那里没有看到 apigee(尽管它使用 Node.js passportpassport-oauth2 模块来实现其 OAuth 2.0 授权流程)。

    此外,我们确实有一个 OAUTH2 教程 - 使用 Google OAUTH2.0 策略,您可以查看 -> https://hyperledger.github.io/composer/latest/tutorials/google_oauth2_rest

    【讨论】:

    • 是的。由于 composer 使用 loopback 来生成 rest api,它不支持位于公司代理后面的 APIGEE 的 oauth2 护照包实现。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-10-12
    • 2013-01-05
    • 2018-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多