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
  • 2663 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 ?

NehaDh1Author
July 9, 2024

Hi,

 

I am quite sure, that this will not work. You are sending a GET request to the Authorization URI.

 

I would follow this to setup OAuth in Postman. You need to set everything up under the Authorization tab of your collection in Postman.

 

Regards

Lars


Hi @lgaertner ,

 

As per your suggestion, I set up everything under Authorization tab in postman and now I am able to get access token and refresh token successfully.

But it asks me to sign in every time (whenever I need access token) into Workfront and ask for access allow to my OAuth2 application and then provide the authentication code to postman (using redirect URL).

Do I need authentication code every single time for getting access token and refresh token or its an one time activity just to authenticate my application.?

 

(I am doing postman POC right now just to establish the connectivity with Workfront but later now I am going to create an application which will connect with Workfront and get the data so I need to confirm if I will have to create a redirect URL in my application also for authentication code or I can just use postman redirect URL if its a one time activity to get the authenticate code and then use access token/ refresh token going forward )

 

 

Attaching the screenshots here , 

 

After signing up ,

 

 

 

Thanks,

Neha