简体   繁体   English

Mule ESB和OAuth

[英]Mule ESB and OAuth

I want to use OAuth 1.1 with a Mule RESTful flow 我想将OAuth 1.1与Mule RESTful流一起使用

I have been reading the following site: 我一直在阅读以下站点:

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

This document states the following: 本文档说明以下内容:

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. 

So I found this site: 所以我找到了这个网站:

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

Which describes how to support OAuth 1 with Mule ESB 其中介绍了如何通过Mule ESB支持OAuth 1

My basic understanding is that OAuth 1 is simpler and more popular (especially amoung mobile device use) 我的基本理解是OAuth 1更简单,更流行(尤其是在移动设备的使用中)

... and the OAuth 2 is more complex and less often used ...而OAuth 2更复杂且不常使用

I noticed taht OAuth 2 is supplied by the SalesForce connector 我注意到OAuth 2由SalesForce连接器提供

My questionw: 我的问题:

Which protocol is more widely used in general, and which one is more used within the Mule community 一般而言,哪种协议使用更广泛,而在Mule社区中哪种协议使用更广泛

Which is harder to perform within Mule 在Mule中很难执行

(I need the answers to these questions before I can gain approval for a direction towards one protocol or another) (我需要获得这些问题的答案,然后才能获得对一种或多种方案的指导)

Not sure about OAuth 1 but I guess OAuth 2 is easier to implement and is much popular specially implementing Rest Apis. 不确定OAuth 1,但我想OAuth 2更易于实现,并且在实现Rest Apis方面特别受欢迎。 Here are few examples of implementation of OAuth 2 https://developer.mulesoft.com/docs/display/current/Mule+STS+OAuth+2.0a+Example+Application 这是OAuth 2实现的几个示例https://developer.mulesoft.com/docs/display/current/Mule+STS+OAuth+2.0a+Example+Application

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

In Mule, we have some policies to apply on the APIs through API manager in which there are three types of OAuth 2.0 security policies that you can configure it. 在Mule中,我们有一些可通过API管理器应用于API的策略,在其中可以配置三种OAuth 2.0安全策略。 This is the screenshot of applying and configuring the API policies on API manager enter image description here 这是在API管理器上应用和配置API策略的屏幕快照,请 在此处输入图片描述

Regarding OAuth 1.0, I haven't seen any OAuth 1.0 policies present in the API manager at MuleSoft. 关于OAuth 1.0,我在MuleSoft的API管理器中没有看到任何OAuth 1.0策略。 But in general it totally depends upon the scenarios which OAuth protocols are suitable as per your requirements. 但总的来说,这完全取决于您需要哪种OAuth协议适合的方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM