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

Question

Question

Sample json to connect to Laserfiche cloud

asked on March 3, 2023

Hi,

I'm trying to get a token from the credentials I own with no success.
In one example I saw the following statement

string key = File.ReadAllText(@"LF API CloudAccessKey.json");//ServiceKey downloaded from App Configuration Authentication, placed on same folder as this app.

Where is this file and how do I get it?

How is it structured and what information should it contain.
Thanks for your help

0 0

Answer

SELECTED ANSWER
replied on March 8, 2023

Hello,


The initial problem is that I couldn't reach "Devconsole"
On your page https://developer.laserfiche.com/guides/guides_oauth-service.html, the devconsole URL is indicated:
https://app.laserfiche.com/devConsole.

This URL is redirected to https://accounts.laserfiche.com/websts/login and suddenly it is impossible to reach "devconsole".
For France I must use the following URL: https://app.eu.laserfiche.com/devcsonsole

Then I was able to download my  jsonfile and now everything works perfectly.

Best regards

1 0

Replies

replied on March 8, 2023

I don't know the context of where you found that code example, but it could just be that someone manually retrieved the key from the integrations page and saved it to a local text file. One thing that's a little unclear is if the contents of the file actually is json, or if it's simply the key. The file extension would imply json, but there is no json deserialization before the contents of the file are assigned to a variable `key`.

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

Sign in to reply to this post.