You are viewing limited content. For full access, please sign in.

Question

Question

Find/Create a Refresh Token

asked on March 12, 2024

I'm integrating Laserfiche (cloud) with Celigo's Integrator.io. Before I'm able to use the connection I have to retrieve a new token. I want to use a refresh token, but I don't know where or how to get one. Does anyone know how that works?

0 0

Replies

replied on March 12, 2024

Hi Jack,

It would be helpful if you could describe which direction(s) this integration is going and which function(s) you're attempting to use for it. Knowing the general use case for the integration is often helpful as well.

For example, are you trying to:

  1. Use a Laserfiche Cloud (outbound) Web Request to call an Integrator.io web API endpoint?
  2. Use Integrator.io to call the Laserfiche Cloud web API?
  3. Something else?

We can likely assist once we have some details.

Cheers,
Sam

0 0
replied on March 13, 2024

Celigo is an iPaaS. What I'm doing is pulling fields from a document through the Laserfiche Cloud Web API and input it into an EDI transaction.

Currently, I'm able to make the connection, but every few hours I have to reauthorize the connection.

If I'm to use this for production, I need Celigo to be able to reauthorize on its own using a refresh token to obtain a new token. 

What I don't know and can't seem to figure out is how to create that token.

0 0
replied on March 13, 2024

Thanks, that's helpful info.

Per the Creating an OAuth Service App for the Laserfiche API guide under Register your Service App in the Developer Console (5):

  1. On the Authentication tab, create a new Access Key. There are two types of Access Keys you can create for the client credentials flow.
    • Choose create a public access key if the service app uses the Laserfiche API client libraries or is capable of generating an HMAC client credential.
    • Choose create a long-lasting authorization key if the service app does not have the capabilities of generating an HMAC client credential. This option is intended for low-code tools that require a static secret to connect to Laserfiche APIs.

Double check that you're using the appropriate Access Key type for this integration.

Then under Request an Access Token (2), it says:

For service applications, no refresh token will be returned. When the access token expires, the service application will need to start the client credentials flow again to get a new access token.

So while the Laserfiche Web API does not have a refresh token auth flow, you should not have to manually "reauthorize the connection" every few hours. When the current access token is expired, instead of trying to use a refresh token, Celigo should "start the client credentials flow again to get a new access token".

As I'm not familiar with Celigo's specific functionalities, I can't provide guidance on how specifically to implement that logic there.

Hope that helps.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.