asp.net - Sitecore - Require login -


so sitecore site trying make user logged in , can not use extranet\annoymous account. have read , tried

implementing sitecore extranet login on website

but missed something, asp forms authentication has side issues returns original page , ignoring user's option of desktop or page editor.

the part frustrated seems logic built sitecore. example if try go http://site/sitecore/shell , not logged in site core redirects me login page. how can turn on entire site.

update

my security editor looks enter image description here enter image description here

even if unprotect sitecore object , deny access main object can still site. enter image description here

in web.config sites section looks

<sites>   <site name="shell" virtualfolder="/sitecore/shell" physicalfolder="/sitecore/shell" rootpath="/sitecore/content" startitem="/home" language="en" database="core" domain="sitecore" loginpage="/sitecore/login" content="master" contentstartitem="/base" enableworkflow="true" enableanalytics="false" analyticsdefinitions="content" xmlcontrolpage="/sitecore/shell/default.aspx" browsertitle="international" htmlcachesize="2mb" registrycachesize="3mb" viewstatecachesize="200kb" xslcachesize="5mb" disablebrowsercaching="true" />   <site name="login" virtualfolder="/sitecore/login" physicalfolder="/sitecore/login" enableanalytics="false" database="core" domain="sitecore" disablexmlcontrols="true" />   <site name="admin" virtualfolder="/sitecore/admin" physicalfolder="/sitecore/admin" enableanalytics="false" enableworkflow="true" domain="sitecore" loginpage="/sitecore/admin/login.aspx" />   <site name="service" virtualfolder="/sitecore/service" physicalfolder="/sitecore/service" />   <site name="modules_shell" virtualfolder="/sitecore modules/shell" physicalfolder="/sitecore modules/shell" rootpath="/sitecore/content" startitem="/home" language="en" database="core" domain="sitecore" content="master" enableanalytics="false" enableworkflow="true" />   <site name="modules_website" virtualfolder="/sitecore modules/web" physicalfolder="/sitecore modules/web" rootpath="/sitecore/content" startitem="/home" language="en" database="web" domain="extranet" allowdebug="true" cachehtml="true" />   <site name="website" virtualfolder="/" physicalfolder="/" rootpath="/sitecore/content" startitem="/base" database="web" domain="extranet" allowdebug="true" cachehtml="true" htmlcachesize="10mb" registrycachesize="0" viewstatecachesize="0" xslcachesize="5mb" filtereditemscachesize="2mb" enablepreview="true" enablewebedit="true" enabledebugger="true" disableclientdata="false" loginpage="/sitecore/login/default.aspx" />   <site name="scheduler" enableanalytics="false" domain="sitecore" cachemedia="false" />   <site name="system" enableanalytics="false" domain="sitecore" />   <site name="publisher" domain="sitecore" enableanalytics="false" enableworkflow="true" /> </sites> 

i know logged in because added homepage

<asp:label id="id" runat="server"><%=httpcontext.current.user.identity.name%></asp:label> 

the solution add

requirelogin="true"  

to site "website" tag

<site name="website" virtualfolder="/" physicalfolder="/" rootpath="/sitecore/content" startitem="/base" database="web" domain="extranet" allowdebug="true" cachehtml="true" htmlcachesize="10mb" registrycachesize="0" viewstatecachesize="0" xslcachesize="5mb" filtereditemscachesize="2mb" enablepreview="true" enablewebedit="true" enabledebugger="true" disableclientdata="false" requirelogin="true" loginpage="/sitecore/login/default.aspx" /> 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -