1.2.1 Getting started with Workfront Fusion
Learn how to use Workfront Fusion and Adobe I/O to query Adobe Firefly Services APIs.
1.2.1.1 Create new scenario
Go to https://experience.adobe.com/. Open Workfront Fusion.
Go to Scenarios.
Click the + icon to create a new folder for your work.
Name the folder --aepUserLdap--
and select Save.
Select your folder, and then select Create new scenario.
An empty scenario appears, select tools and select Set multiple variables.
Move the clock icon onto the newly added Set multiple variables.
Your screen should look like this.
Right-click on the question mark and select Delete module.
Next, right-click on Set multiple variables and select Settings.
1.2.1.2 Configure Adobe I/O authentication
You now need to configure the variables that are needed to authenticate against Adobe I/O. In the previous exercise, you created an Adobe I/O project. The variables of that Adobe I/O project now need to be defined in Workfront Fusion.
The following variables need to be defined:
CONST_client_id
CONST_client_secret
CONST_scope
Find these variables by going to https://developer.adobe.com/console/projects and opening your Adobe I/O project, which is named --aepUserLdap-- One Adobe tutorial
.
In your project, select OAuth Serverto-Server to see the values for the above keys.
Using the above keys and values, you can configure the Set multiple variables object. Select Add item.
Enter the Variable name: CONST_client_id and its Variable value, select Add.
Select Add item.
Enter Variable name: CONST_client_secret and its Variable value, select Add.
Select Add item.
Enter Variable name: CONST_scope and its Variable value, select Add.
Select OK.
Hover over Set multiple variables and select the big + icon to add another module.
Your screen should look like this.
In the search bar, enter http. Select HTTP to open it.
Select Make a request.
URL
https://ims-na1.adobelogin.com/ims/token/v3
Method
POST
Body Type
x-www-form-urlencoded
Select Add item.
Add items for each of the below values:
client_id
CONST_client_id
client_secret
CONST_client_secret
scope
CONST_scope
grant_type
client_credentials
Configuration for client_id
:
Configuration for client_secret
.
Configuration for scope
.
Configuration for grant_type
.
Scroll down and check the box for Parse response. Select OK.
Your screen should look like this. Select Run once.
Once the scenario has run, your screen should look like this:
Select the question mark icon on the Set multiple variables object to see what happened when that object ran.
Select the question mark icon on the HTTP - Make a request object to see what happened when that object ran. In the OUTPUT, see the access_token being returned by Adobe I/O.
Hover over HTTP - Make a request and select the + icon to add another module.
In the search bar, search for tools
. Select Tools.
Select Set multiple variables.
Select Add item.
Set Variable name to bearer_token
. Select access_token
as the dynamic Variable value. Select Add.
Your screen should look like this. Select OK.
Select Run once again.
Once the scenario runs, select the question mark icon on the last Set multiple variables object. You should see that the access_token is being stored in the variable bearer_token
.
Next, right-click on the first object Set multiple values and select Rename.
Set the name to Initialize Constants. Select OK.
Rename the second object to Authenticate to Adobe I/O. Select OK.
Rename the third object to Set Bearer Token. Select OK.
Your screen should look like this:
Next, change the name of your scenario to --aepUserLdap-- - Adobe I/O Authentication
.
Select Save.
Next Steps
Go to Use Adobe APIs within Workfront Fusion
Go back to Creative Workflow Automation with Workfront Fusion
Go back to All Modules