Hi Merlin,
I have talked to our developers. And they have provided a work around to solve the issue for WebLink 10.
I tested this method on WebLink 10.1.0.151 and it can now autoLogin with the correct login credentials.
1) Edit file "login.aspx.vb" under "installPath\Laserfiche\WebLink\WebLink\Web Files"
You're right that the logic has gotten a little more complicated, but a solution very similar to your old one should work. Because there so many branches, it'd be hard for us to say exactly what's going wrong without further detail, but here's a little bit of info and a general idea of what your solution should look like.
The LoginEntry class carries information about the configuration for the repository you're logging in as. Its members include:
public int DBID;
public string Database;
public string Server;
public string Username;
public string Password;
public string DisplayName;
public bool AutoLogin;
public bool UseWindowsAuthentication;
public string DefaultDomain;
public bool ShowLatestVersionOnly;
public bool UseSSL;
public bool UseLFDS;
These are the things you set up in the "Connection" tab of the Designer page.
The code in Login.aspx.vb populates TheLoginInterface with the info it gets from the LoginEntry. It includes more complicated branch logic than before because we're supporting more methods of authentication (like third-party SSO, ACS for Cloud users, etc.)
For me, logging on with a domain username and password to my default repository worked if I added:
TheLoginInterface.UserName = "domain\username"
TheLoginInterface.Password = "blahblah"
TheLoginInterface.UseWindowsAuthentication = True
TheLoginInterface.AutoLogin = False
TheLoginInterface.Login()
... right after the long Try-Catch block in Login.aspx.vb's Page_Load(), before the line TheLoginInterface.PreventReconnect = False. Note that setting UseWindowsAuthentication to True isn't strictly necessary if the configuration for the repository is set to use Windows auth. And even if it isn't, when we see a username in that format, we default to Windows authentication.
2) Open "WebLink.vbproj" inside Visual Studio under "installPath\Laserfiche\WebLink\WebLink\Web Files" and build the weblink solution.
The new .dll files under bin folder should now be updated to reflect the code change in step 1.
3) Refresh WebLink page.
WebLink should now be able to automatically login with the credentials entered in step 1.
If that doesn't work for you, please provide further details about what you're seeing. Getting it exactly right depends on a combination of your configuration for the repository and what information you provide TheLoginInterface to supplement or override what it gets from the LoginEntry. Also, make sure you're getting the LoginEntry for the correct repository - if the URL doesn't include a DBID and you're not attempting to log on to the default database, you may want to hard-code that DB in a call to GetLoginEntryByDBID() to minimize the number of things you need to set manually on TheLoginInterface.
Thanks!
Julia