Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Authentication and generic handlers View modes: 
User avatar
Member
Member
cormac.debarra-zoorepublic.com - 1/21/2014 6:54:23 PM
   
Authentication and generic handlers
Hi,

WE have a kentico site that utilizes Kentico authentication. My problem is I can't seem to figure out how to add a generic handler to CMSPages/Handlers/xxxx.ashx, so that I can call it without logging in to the website. I basically want to bypass authentication just for this page.

Has anyone done this?

Thanks

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 1/22/2014 6:40:27 AM
   
RE:Authentication and generic handlers
First off you want to follow the general best practice Kentico suggests in regards to the file system and where to place files. I'd suggest placing your handler in your site directory i.e.: site name = "MySite" your directory would be named /MySite. So maybe something like /MySite/Handlers/AuthHandler.ashx. You could also use the /CMSGlobalFiles directory as suggested in the link above.

Secondly, try to access that page without being logged in, if it works great, if not, go to Site Manager>Settings>URLs and SEO>URL format>Excluded URLs and add/MySite to the list.