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

Question

Question

Can we build a URL to access a Documents directly with out signing into the system.

SDK
asked on August 13, 2015

Have a customer that is looking to integrate PeopleSoft with Laserfiche and they want to know if they can do the above (using the toolkit)?

0 0

Replies

replied on August 13, 2015

Technically they would still need to pass credentials to Laserfiche from PeopleSoft, but I think that should be possible.

0 0
replied on August 13, 2015 Show version history
 
 
 
 
 
 

As Blake said, yep. Here's some more detail.

 

Public, non-authenticated access - Public Portal Add On to WebLink

(Bunch of customization options) - https://www.laserfiche.com/solutionexchange/how-to-enhance-your-laserfiche-weblink-portal-with-search-urls/

 

Authenticated/Controlled access - WebLink and WebAccess allow read only authentication through Active Directory. You would have to allow this to pass through, settings in IIS and your network may require kerberos depending on the setup.  There may also be web browser specific settings to manage depending on which type. For example FireFox requires configuration to allow Windows Authentication to pass through without a prompt.

https://www.laserfiche.com/support/webhelp/webaccess/9.1/en-US/WA/WebAccess.htm#URLs.htm

 

Here's a glimpse at some code i just wrote to update an external SQL database with the URL of a performed search on the repository using the SDK. You can also use Laserfiche Workflow to do the same thing.

Console.WriteLine("Enter path to operate on: (include \\ at beginning)");
                string lfspath = Console.ReadLine();

                lfqlCommand.CommandText = "select e.entry_name, e.entry_id from lf.entry e where is_descendantof(e.path, '" + lfspath + "') = 1 AND e.type='document'";
                LfDataReader reader = lfqlCommand.ExecuteReader();
                if (reader.HasRows) // non=zero result set
                {
                    Console.WriteLine("Total Entries: " + reader.RecordsAffected.ToString()); // show total
                    while (reader.Read())
                    {
                      
string url = "http://lfserver/Weblink/DocView.aspx?id=" + reader["e.entry_id"].ToString();

 

 

 
 
 
 
 
 
 
0 0
replied on August 13, 2015
 
 

In a more concise way, something has to authenticate or log in to view a document regardless of the URL or using WebAccess or Weblink.

 

If using weblink, in the weblink administrator utility you must setup a directory to:

a. Use automatic windows authentication (which passes through the browser making the request)

b. Use a singular laserfiche account to anonymously authenticate everyone (configured to consume the public portal license)

The windows authentication method is also able to be set to automatic for Web Access. Again, depending on your network, Kerberos may be required. Laserfiche has produced some white papers on how to set that up too.

 

Then you can pass constructed URLS either by document ID, or populating a URL which returns a search query, to view documents without requiring the user to manually login.

 

-Carl

 

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

Sign in to reply to this post.