5

If I wanted to force users to go through a login for the entire site. I would previously add requireLogin and loginPage attributes to my site configuration.

In 8.2 I am unable to do this. However in 8.1 this works. Any ideas how this has changed? Or am I doing something wrong and missing something.

<site name="website">
    <patch:attribute name="loginPage">/sitecore modules/shell/login.aspx</patch:attribute>
    <patch:attribute name="requireLogin">true</patch:attribute>
</site>

The attributes work for admin site configuration.

Read access for extranet/anonymous was removed for the protected area of the page as well.

Any ideas?

  • Please check that you denied access to extranet\Anonymous, rather than to other anonymous accounts. Then open the site in incognito mode, because you already have a logged-in admin session on the site. Please come back with results. – Dmytro Shevchenko Oct 5 '16 at 11:52
  • Can confirm this has been reproduced by Sitecores own team. Awaiting response @DmytroShevchenko – Anicho Oct 5 '16 at 12:38
  • Can confirm this was due to custom code, not an issue with sitecore :). – Anicho Feb 22 '17 at 16:22
3

You have to tell which areas of your site require the login.

Remove read access for extranet/anonymous user for the item which should be protected with login.

| improve this answer | |
  • This is also true, I did this already and am still getting the issue. I have raised a question with sitecore support. – Anicho Oct 4 '16 at 19:35
  • Ok, I have added this to the answer. – Szymon Kuzniak Oct 4 '16 at 20:22
  • I will add to this that after you deny Read Permission to say Home item for extranet\Anonymous user. You need to publish master database to web to get this working. – bdoshi Sep 22 '17 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.