Technical support This forum is closed.
Version 1.x > Technical support > Integrating with existing Forms authentication. View modes: 
User avatar
Member
Member
thalter - 8/5/2005 9:51:21 PM
   
Integrating with existing Forms authentication.
It appears that Kentico wants to take over the forms authentication on my site with its own login screen and <system.web><authentication> settings. Is there an easy way to integrate the Kentico authentication with my existing forms authentication?

User avatar
Guest
admin - 8/5/2005 10:24:26 PM
   
Re: Integrating with existing Forms authentication.
Hello,

could you please post here or send to my e-mail (petr.palas@kentico.com) your current sucerity settings in your web config? Do you have an existing application using forms authentication on your web site? Would it be possible for you to place this application into a separate virtual directory with its own web.config file?

Thank you.

Best Regards,

User avatar
Member
Member
thalter - 8/9/2005 5:31:12 PM
   
Re: Integrating with existing Forms authentication.
I got it to semi-work. I can't use our forms authentication and the CMS authentication at the same time, but the CMS authentication is only used administratively, and not by our customers, so that is not a problem.

My forms authentication occupies the main section of the web.config, like this.

<authentication mode="Forms">
<forms loginUrl="user/logon.aspx" protection="All" timeout="60" slidingExpiration="true"/>
</authentication>
<authorization>
<allow users="*" /><!-- Allow all users -->
</authorization>

I set up the Kentico CMS authenticaion for the cmsdesk folder only, like this:

<location path="cmsdesk">
<system.web>
<authentication mode="Forms">
<forms name="CMSCookie" loginUrl="cmsdesk/Logon.aspx" protection="All" timeout="60" slidingExpiration="true" />
</authentication>
</system.web>
</location>

User avatar
Member
Member
thalter - 8/11/2005 3:18:22 PM
   
Re: Integrating with existing Forms authentication.
Actually, this kind of works, but when I deploy it to production I get the following error message at the <authentication> line in the <location path="cmsdesk"> section:

c:\sourcetemp\web.config(306): error ASPCONFIG: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

I'll e-mail you off-line to discuss it with you more, Petr.

User avatar
Guest
admin - 8/15/2005 10:36:03 PM
   
Re: Integrating with existing Forms authentication.
Well, unfortunately, I'm not sure what causes this problem. However, could you please write me how you manage your web site and cms users? Perhaps it would be possible to use single logon form for both the web site and CMS Desk.

Best Regards,