Implementing extranet login

Sometimes, we get a requirement to have password-protected pages on public-facing websites. Sitecore provides an out-of-the-box extranet login functionality, which is very simple and easy to achieve compared to ASP.NET.

In this recipe, we will implement extranet login for public-facing websites.

Getting ready

In our site, we have a Members section, which should be accessible only by authenticated or logged in users. All other pages should be accessible to everyone. So, the site structure looks like the following image:

Getting ready

If you have implemented the 404 Page Not Found handler, it will show the 404 page on the request of these ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.