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

Question

Question

LF SDK - Logging In To Cloud: Laserfiche.RepositoryAccess.CloudSessionException: 'Failed to retrieve SAML token...' Error

asked one day ago

I followed the SDK documentation above ("Connecting to Laserfiche Cloud") exactly how it is written but keep getting an error:

Laserfiche.RepositoryAccess.CloudSessionException: 'Failed to retrieve SAML token from the provided session key.'

On this line:

CloudTicket cloudTicket = CloudTicket.GetTicket(cloudTicketSettings);

I am brand new to creating a .NET app and C# so it may be something simple I am missing. I double-checked the account id, username, etc. and it is all correct. I also have the Laserfiche.RepositoryAccess project reference.

My entire Main() function consists of the code above and nothing else. Is there some set up from the documentation that is missing for this to work?

0 0

Replies

replied 11 hours ago

You may need to make use of CustomEndpoint if you are connecting to anything other than US Cloud (ie. Canadian Cloud).  The code below is from another answers post with a similar issue.

 

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);

 

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

Sign in to reply to this post.