Link to the Authorize page for your users
Your users need to log in to authorize this integration in their own account. The page for them to authorize has a specifiic format, described here. Use this information to determine the address of the authorization page for the app, and provide your users with this address or a link to it.
-
The full URL of your organization’s domain. Example:
-
client_id: This is the client ID generated when you created the OAuth2 app in Workfront. -
redirect_uri: This URL must be the same as the redirect URL that you entered in Workfront when creating the OAuth2 app. Your users will be directed to this page after they authorize the app for their account. -
response_type: This must have the valuecode.
The URL for the authorization page is therefore:
Configure the third-party application
The third-party application may require configuration. The following table contains information about fields that may be required when you are configuring the third-party application.
Set up Authorization Code Flow
To log your users in with OAuth2, use the following process:
-
When the user opens the authorization page, it redirects to the Workfront login page, so the user can log in to Workfront. If the user has an SSO configuration, the identity provider login page will open.
If user is already logged in to Workfront on that same browser, or the user successfully logs into Workfront, the user is redirected to the consent screen:
-
If the user Allows the access, the page is redirected to the
redirect_url. The redirect must include the following query parameters:
-
code: The authorization code which is required for getting the access/refresh token. -
domain: Your organization’s domain. Example: inmyorganization.my.workfront.com, the domain ismyorganization. -
lane: the lane of the request. Example: inmyorganization.preview.workfront.com, the lane ispreview.IMPORTANT
Thecodeis only valid for 2 minutes. Therefore, you must get the refresh and access tokens within that time.
-
When you have a code, you can request refresh and access tokens by sending the code along with client app credentials to the
/integrations/oauth2/api/v1/tokenendpoint.The full token request URL is
Examples: Example of CURL call to token endpoint:
Example 1
Example 2
IMPORTANT
The Client secret was generated when registering the app in Workfront. You should store it in a secure place, because it cannot be recovered if it is lost.When all passed parameters are correct the token endpoint returns the following payload:
The access token is the same as
sessionID, and it expires the same way as regularsessionIDIMPORTANT
Store the refresh token in a secure place. You will need it to get a new refresh token when the old one is expired. Workfront does not store your refresh token. -
Now when you have an access token you can make API calls to Workfront
Set Up Refresh Access Token
To refresh the access_token we again need to do a ‘POST’ call to the token endpoint. This time we send a different form data as follows:
It will return the following result:
And again the access token is the sessionID which can be used to make an API request to Workfront.
Was this content helpful?
Announcements
Get hands-on with agentic AI.
Explore how AI agents work together through real examples and hands-on practice. Join your local User Group to design an agent workflow with your peers and leave with a practical framework you can apply to your own work.
Find an eventTransamerica’s Thrilling Journey to Workfront V2
Join the Transamerica team for a candid look at their Workfront V2 migration: the planning, the surprises, and lessons learned.
Workfront Fusion Office Hours: Get more from the new scenario designer (option 1)
Join the Workfront Fusion teams for an open session on the updated scenario designer - bring your questions and feedback! All Fusion users welcome, no prep needed.
Unified Review and Approvals: Your Questions Answered by the Product Team
Join the Product team for a Q&A session to address your outstanding questions related to Unified Review & Approvals in Workfront. Please submit your question(s) during registration!