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

Question

Question

Connect to Laserfiche cloud repository got an error about SAML token

asked on September 23, 2021

Hello,

 

I tried to follow the SDK documentation and create a very simple connection test to Laserfiche cloud repo.

The test code has only the following:

CloudTicketRequestSettings cloudTicketSettings = new CloudTicketRequestSettings();
cloudTicketSettings.AccountId = "XXXXXXX";
cloudTicketSettings.UserName = "[username]";
cloudTicketSettings.Password = "[password]";

CloudTicket cloudTicket = CloudTicket.GetTicket(cloudTicketSettings);

 

as I step through the execution of the code and hit the line to run GetTIcket(), I got an exception error saying:
Failed to retrieve SAML token from the provided session key.

 

What have I done wrong or am I missing something?

 

0 0

Answer

SELECTED ANSWER
replied on October 1, 2021

With the support from LF, here is the working code to connect to LF Canadian Cloud using SDK 10.4

 

CloudTicketRequestSettings cloudTicketSettings = new CloudTicketRequestSettings();
                cloudTicketSettings.AccountId = "[your account #]";
                cloudTicketSettings.UserName = "[your cloud login]";
                cloudTicketSettings.Password = "[your cloud password]";
                cloudTicketSettings.CustomEndpoint = new Uri("https://acs.laserfiche.ca/ACS/");

                CloudTicket cloudTicket = CloudTicket.GetTicket(cloudTicketSettings);


                string repositoryHost = "r-000[your cloud repo id]" + ".laserfiche.ca";
                Session cloudSession = Session.Create(repositoryHost, cloudTicket);

 

Since it is Canadian Cloud, make sure all URL is .laserfiche.ca

I assume if it is for US Cloud that will be .laserfiche.com

1 0

Replies

replied on September 23, 2021

If your account is in the Canadian cloud (as your profile suggests), try setting the `CustomEndpoint` property to "https://acs.laserfiche.ca".

0 0
replied on September 27, 2021

Hi Brian,

I added:

cloudTicketSettings.CustomEndpoint = new Uri("https://acs.laserfiche.ca");

It still gave me the same error

0 0
replied on September 30, 2021

You should probably open a support case so we can look into it.

0 0
replied on April 8, 2023

for me it worked with the /ACS/ 

 cloudTicketSettings.CustomEndpoint = new Uri("https://acs.laserfiche.ca/ACS/");

 

while if I use without /ACS/ it as Kevin said:

cloudTicketSettings.CustomEndpoint = new Uri("https://acs.laserfiche.ca");

it gives me the error: Authenticating with the account control system failed. Status code=404.

 

Good luck!

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

Sign in to reply to this post.