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

Question

Question

ProcessLogin does not authenticate on first attempt.

asked on January 8, 2017 Show version history

Hi, we have a web application which is integrated with Laserfiche and we launch WebAccess (version 10.1.2.286) to view documents by posting to ProcessLogin. ProcessLogin does not authenticate on first attempt and redirects to WebAccess login screen. If user authenticates on WebAccess Login screen and don't close the browser or in other word don't close the browser session. ProcessLogin will work for the rest of time even with different users without asking to re-authenticate.

 

For convenience, I have attached a simple HTML file (took from WebAccess help files). It simply asks (Laserfiche Repository, Username & Password) and posts to WebAccess ProcessLogin. You will have to change TocId in the file which exists in your repository. Now try to follow what I'm facing.

 

  1. Launch HTML and fill three text boxes as per your environment. Press Login button.
  2. It will launch WebAccess and redirects to Login screen.
  3. Re-Enter username & password on WebAcess login screen and press login.
  4. It will login and take you to the folder browser (not to the document viewer as mentioned in destination URL!).
  5. Press browser's back button twice to reach back to the HTML page. (do not close browser)
  6. Fill again three text boxes and press login button.
  7. It will launch WebAccess and successfully auto login to open document viewer right away.
  8. Press browser's back button once to reach back to the HTML page.
  9. Fill again three text boxes with different user and press login button.
  10. It will launch WebAccess and successfully login to open document viewer right away.

 

Next if you close the browser and try again. WebAccess Login screen will appear on first time and will work rest of the time if re-authenticate (on first time) & don't close the browser.

 

You may find a bit different behavior but definitely there is a problem. We have customers using WebAccess 9 and processlogin is working perfectly. We can't upgrade them because of this auto-login issue in WebAccess 10. Will appreciate if someone finds a solution. Or We have to open a Laserfiche case smiley.

 

Using Windows Internet Explorer 11 latest on Windows 7 Ultimate single machine environment.

0 0

Answers

APPROVED ANSWER
replied on January 9, 2017

I just checked on a build of 10.2 and this fix has in fact already been incorporated, so when 10.2 releases, ProcessLogin should function as expected out-of-the-box.

1 0
SELECTED ANSWER
replied on January 9, 2017 Show version history

Hello,

I could reproduce the issue. I'll let the Web Access team know, but I was able to get this to work by commenting out line 21in the ASPX file; namely,

//Laserfiche.RepositoryAccess.Session session = cm.GetRepositoryByName(repository).Session;

and editing line 24 to include the class for variable declaration:

/***
original line:
session = cm.GetRepositoryByName(repository).Session;
***/
Laserfiche.RepositoryAccess.Session session = cm.GetRepositoryByName(repository).Session;

With this, I was able to log in and open the specified entry ID using the sample web page you'd attached to the post. Does this work for you?

Hope this helps!

EDIT: Re-attaching the sample page as apparently editing topics will clear any attachments. It can also be found in the version history.

0 0

Replies

replied on January 9, 2017

Thanks a lot. That worked for me.

 

I hope Laserfiche can provide a fix for this in near future.

0 0
APPROVED ANSWER
replied on January 9, 2017

I just checked on a build of 10.2 and this fix has in fact already been incorporated, so when 10.2 releases, ProcessLogin should function as expected out-of-the-box.

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

Sign in to reply to this post.