Skip to main content


 

Symptoms


The smartform server have one more project and login use form authentication. Is it possible is create a login page for each project?
 

Diagnoses


As long as all your projects are in the same SmartForms SERVER and SITE, they will all share the same login page. What this means is, if you open a form from a project and log in, all other forms from other projects will also be accessible, as they share the same login and authentication method.
 

Resolution

One way to introduce a separate login and authentication method is to create separate RUNTIME SITE for each projects. For example, you can configure the following:

1. Two runtime sites, eg. .../RuntimeA and .../RuntimeB

2. Configure different authentication method and authorization rules for .../RuntimeA and .../RuntimeB

3. Provide users for Project A the link to the form on RuntimeA site. (eg. .../RuntimeA/Runtime/ProjectA/someform)

4. Provide users for Project B the link to the form on RuntimeB site. (eg. .../RuntimeB/Runtime/ProjectB/someform)

The problem with this is once a user logs in to a form using RuntimeA site, the user will be able to access other project's forms through RuntimeA site (eg. .../RuntimeA/Runtime/ProjectB/someform). The same applies to other user who logs in via a different runtime site. This is because all your projects are still on the same SmartForms server. The workaround to this is to introduce checks in your forms to make sure only certain group of users can perform operations on the form. I have included a video on how to do that below.

In addition, once you have created a copy of SmartForms Runtime site,

1. Open web.config inside the copy of the runtime site folder, and search for the line:

2. Modify the realm property to reflect your secondary runtime site. If I am not wrong, you should only need to replace the "Runtime" portion.

3. Perform an iisreset

4. Since you are using form login, you will also need to add a new site realms. You can do so by going https://{SmartFormsServer}/Runtime/Form/Manage Site Realms/

5. Make sure the URI and Reply URI field are correctly entered to point to your new secondary runtime site.


References:
http://help.k2.com/kb001332
http://help.k2.com/kb001309
http://help.k2.com/videos/6507
 




 
Be the first to reply!

Reply