Skip to main content
felixr
January 19, 2022
Solved

Is there a way to pass a token in oauth 2.0 through the integration object ?

  • January 19, 2022
  • 7 replies
  • 0 views

I'm trying to connect to a system called QuickBooks that requires oauth 2.0 in order to access information from it. I know that appian allows "oauth 2.0: client credential grant", in order to connect just with one global account for all the user to retrieve  the information.

But "oauth 2.0: client credential grant" is not available in QuickBooks online at the current moment, I can only access through the "oauth 2.0: authorization code grant".

The site lets me get tokens that I could use for a period of time  and I would like to see if there is a way to pass those tokens

The way that QuickBooks works is:  

1:the  site  can give me an access token (valid for 60 minutes) and a  refresh token (valid for 100 days).

2 the refresh token needs to send a request in order to obtain the new access token.

 Because of this  I'm trying to figure out  a  way to pass this

tokens through the integration object.

 is there any way to do it ?.

    Best answer by stefanhelzle0001

    Sure. First implement an integration to fetch the access token. In the second integration, you add a header to send that token. To get it you call the first integration inside the second one.

    Does that help?

    7 replies

    stefanhelzle0001
    January 19, 2022

    Sure. First implement an integration to fetch the access token. In the second integration, you add a header to send that token. To get it you call the first integration inside the second one.

    Does that help?

    felixr
    felixrAuthor
    January 19, 2022

    Of course it helps but  im having some issues fetching the acces token 

    this is how my http request  should look like.

    but  this  is the   request that I'm   getting right now. How should i fix this request in order to get it look like  the    first picture ?

    I appreciate your help sir !

    stefanhelzle0001
    January 19, 2022

    I cannot spot the difference ?!?

    August 3, 2022

    Hi [mention:4ca9c2084d484f76baebad853144e332:e9ed411860ed4f2ba0265705b8793d05] we are also having similar kind of requirement to generate refresh token to access adobe sign using rest API V6 could you please help us with your solution by sharing components configuration and steps you followed