How to set up a redirect URL in workfront | Community
Skip to main content
July 8, 2024
Question

How to set up a redirect URL in workfront

  • July 8, 2024
  • 1 reply
  • 2620 views

Hi Team,

 

I am trying to create an OAuth2 application in Workfront for my client application to access it . One of the steps required for this is the redirect URL .

Could you please help me how to set up this redirect URL in Workfront and use it  ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

lgaertner
Level 9
July 8, 2024

Hi,

 

You do not need to setup the redirect URL in Workfront, but within your application, which should get access to Workfront via OAuth.

 

So, the question is, what you want to achieve and on which basis your application is working.

 

Regards

Lars

NehaDh1Author
July 8, 2024

Hi Lars,

 

Thanks for your response. Yes, I want to set up the redirect URL in my OAuth2 application.

We are trying to integrate Workfront with an external system for which we need to first authorize and authenticate ourselves with Workfront via OAuth2 application.

So when I am creating this OAuth2 application. , am asked for setting up redirect url .

 

The authorization url looks like this : 

https://<URL of your organization's domain>/integrations/oauth2/authorize?client_id=<Your ClientID>&redirect_uri=<Your redirect URL>&response_type=code

 

I am providing below details to the above URL: 

 

https://salix.sb02.workfront.com//integrations/oauth2/authorize?client_id=db8c6c604fa26aea1f761e575cb7de3c&redirect_uri=https://salix.sb02.workfront.com&response_type=code.

 

I have provided replaced the actual values here with some dummy values.

 

So when I am hitting this endpoint . I get error from postman:

 

 

Could you pls help me to find out what am missing here ?

lgaertner
Level 9
July 8, 2024

Hi,

 

If you’re testing from Postman’s web application, add the following redirect URI: https://oauth.pstmn.io/v1/browser-callback. If you’re testing from the Postman desktop application, add this URI: https://oauth.pstmn.io/v1/callback. If you switch between the web and desktop application during your development workflow, you should add both URIs.

 

If you will use another application later, you will need to setup a redirect url on your own. 

For example, I access the Workfront API via Python and have set up a local web server for OAuth authentication, which is briefly activated for the redirect.

 

 

Regards

Lars