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

Question

Question

Custom Login Page

asked on May 4, 2015

Hi 

 

I am creating a custom login page (web page). I am using following piece of code for windows authentication.

 lfApplication = new LFApplication();
 lfServer = lfApplication.GetServerByName(serverName) as LFServer;
 lfRepository = lfServer.GetDatabaseByName(repositoryName) as LFDatabase;
 lfConnection = new LFConnection();
 lfConnection.Shared = windowsUser;
 lfConnection.Create(lfRepository);

Now, I want to use Auto login feature. I am having a check box for this at my login page name "Auto login'. When user checks this check box first time, then user should not be prompted to login page henceforth. Instead should be windows authentication should be automatically done and redirected to home page.

 

I am not able to find any API for this. Do we need to save this auto login information as attribute to a user and read it at login page load and act accordingly.

 

Please suggest.

 

Thanks

Sanjay

0 0

Replies

replied on May 4, 2015 Show version history

Your application would set a cookie on the browser when the user chooses auto-login, and your application would check for the presence of that cookie next time.

Note that if you are going to do single sign-on authentication, you need to set up Kerberos to allow delegation on the web server.  Also, my advice is to not develop this application using Casini - develop and test with IIS set up in a configuration similar to how it will be deployed.

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

Sign in to reply to this post.