Q&A: Social Media and Cloud Application Integration in Centerprise

Q: Can you talk about security and different authentication mechanisms available for REST calls.

A: Centerprise is the tool, but not the application. You’ll need to register an application for the web service provider.   Figure 1 shows a registration for box.com using OauthV2. They will give you an application key as well as an application secret and you’ll get back an access token, which you can use along with a refresh token to authenticate yourself. You can think of this as a valet key.

Figure 1

OauthV1 works similarly (Figure 2).

Figure 2

When you click on “Generate” you can see that there are end point variables, shown in the left column, of Figure 3, that help us fill in the other points.

Figure 3

When you select the service and sign in, a website will be presented (shown in blue) that is a three-part handshake. You fill in the key and confirm to the service who you are and you will be given an access token. From then on you’ll use that access token to get data back form the service.

Oauth V1 is more complicated and most sites are now moving to Oauth V2 because it is simpler. It doesn’t require as much handshaking and relies completely on SSL for security, as opposed to Oauth1, which uses an additional encryption method.

Q: Can you describe how to build the layout for REST click call for mapping?

A: First you need some sort of layout because you are sending a payload. The payload you’re going to send depends on what the actual web service call body structure looks like.   As an example, let’s look at Updating Tickets. For Updating Tickets, if you scroll down you can see that it provides the documentation you’ll need under Request Parameters (Figure 4).

Figure 4

It is a very common mechanism for web service providers to detail how to work with their service. Because there is no WSDL editing tool for REST services, they have everything in documentation. Many provide some sort of sample request that you can use for your structure (Figure 5, highlighted in blue).

Figure 5

If you click on the option “use sample text” and then “build layout,” the request will then run and will give you that structure (Figure 6).

Figure 6

Now that you have the structure you can see that it shows up in your tree (Figure 7).

Figure 7

Q: What are the deployment options for dataflows containing web service calls?

A: All the authentication passwords, etc. can be parameterized and stored in a file. For services, you select Schedules (Figure 8).

Figure 8

You’ll see that you have Job Parameters (Figure 9).

Figure 9

Any time you use a service you’ll find it in Job Parameters along with the credential information. You can replace the access token and the refresh token so that you don’t have to keep sending it. Also, you can drive the service through an external configuration file and then when you deploy it all your credentials for that service will be there. You can specify in the file whether it is a sandbox service versus a real service.

Q: Are the calls to your service synchronous or asynchronous?

A: Currently they are synchronous, but the next version of the software will include an option for asynchronous as well.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.