【问题标题】:Mule ESB and OAuthMule ESB 和 OAuth
【发布时间】:2018-04-10 16:02:18
【问题描述】:

我想在 Mule RESTful 流程中使用 OAuth 1.1

我一直在阅读以下网站:

http://www.mulesoft.org/documentation/display/current/Using+a+Connector+to+Access+an+OAuth+API

本文档声明如下:

There are currently two versions of OAuth that are generally n 
use: OAuth1 and OAuth2. This document explains the process for 
working with OAuth2. OAuth1 implementation details vary from 
connector to connector, so please review the connector's 
specific documentation if you need to consume OAuth1. 

所以我找到了这个网站:

http://www.mulesoft.org/documentation-3.2/display/32X/Authorizing+your+Connector+with+OAuth+1.0a

其中描述了如何使用 Mule ESB 支持 OAuth 1

我的基本理解是 OAuth 1 更简单,更受欢迎(尤其是在移动设备使用中)

...而且 OAuth 2 更复杂,使用频率更低

我注意到 OAuth 2 是由 SalesForce 连接器提供的

我的问题:

一般来说哪种协议使用更广泛,以及 在 Mule 社区中哪个更常用

在 Mule 中更难执行

(我需要这些问题的答案才能获得对一种或另一种协议方向的批准)

【问题讨论】:

    标签: oauth mule esb


    【解决方案1】:

    不确定 OAuth 1,但我猜 OAuth 2 更容易实现,并且在实现 Rest API 时非常受欢迎。 以下是 OAuth 2 https://developer.mulesoft.com/docs/display/current/Mule+STS+OAuth+2.0a+Example+Application 的几个实现示例

    https://dzone.com/articles/oauth-20-mule

    【讨论】:

      【解决方案2】:

      在 Mule 中,我们通过 API 管理器在 API 上应用了一些策略,您可以在其中配置三种类型的 OAuth 2.0 安全策略。 This is the screenshot of applying and configuring the API policies on API managerenter image description here

      关于 OAuth 1.0,我在 MuleSoft 的 API 管理器中没有看到任何 OAuth 1.0 策略。但总的来说,这完全取决于 OAuth 协议适合您的要求的场景。

      【讨论】:

      • 好像你忘了附上截图
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多