2

I just started my journey as Sitecore developer.I want to create a user registration page and login page.I am totally confused where should i store the user details and how to authenticate him.

closed as too broad by Zachary Kniebel, Pete Navarra, Gatogordo, Richard Seal Mar 6 '17 at 15:53

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Hi, Welcome to Sitecore.Stack :) what do you mean by registration & login. Are you providing access to CMS Users or Visitors ? If visitors you have to store in SQL Custom Database. – Balaji Kuppuswamy Mar 6 '17 at 6:16
  • I think this one is helpful sitecore.link/#usr (Users and roles) – Viet Hoang Mar 6 '17 at 7:47
  • Srikar, I am voting to close this question, as it really is too broad for SSE, but don't fret: the answers posted include some really good pieces of advice and I was sure to post some, as well, just in case something happens to the others ;) I recommend that you re-ask this question in Sitecore Community Slack. Doing so will likely get you better answers and more good advice for getting started :) Good luck! – Zachary Kniebel Mar 6 '17 at 14:55
  • Please refer to sitecore.stackexchange.com/questions/1737/… for learning resources for those new to Sitecore. And sitecore.stackexchange.com/questions/1689/… for, where else to locate fellow Sitecore developers sharing their experiences. – Mark Cassidy Mar 6 '17 at 16:27
5

I am afraid this question is quite extensive.

Sitecore uses ASP.NET membership, role and profile providers.

As a starting place, please check this Security API Cookbook.

This will give you a really good overview of concepts and also sample code related to Sitecore User Management, authentication, authorization and user profile management.

I am sure things will be more clear to you after reading this.

Welcome to Sitecore Stack!

4

This sounds like you want visitors to be able to login to your site. Unless they have accounts in the Sitecore database already, you probably need to integrate using SSO or by using a user store such as Active Directory.

Sitecore has an Active Directory integration which you can download here: https://dev.sitecore.net/Downloads/Active_Directory/1_3/Active_Directory_1_3.aspx

This allows you to point at your existing Active Directory instance and use it for all your logins (including authors, if you wish).

Building the front-end

In terms of building the front-end, you might want to look at this older Extranet module on GitHub: https://github.com/markstiles/SitecoreExtranet/

It has some examples of how to build some components for an extranet site and integrate with the Sitecore API. That API hasn't changed a whole lot.

Storing your users

You can choose to store newly created users in Sitecore as real users (easy, but not always advised) or in a custom database. You'll likely want to build a membership provider implementation if you want to use the Sitecore APIs to create your users and assign roles and such.

2

First, have a look at this post that will help you to get started with learning Sitecore. Once you have a handle on Sitecore, you are going to have to decide what kind of membership provider you are going to use. I cannot make a valid recommendation on this, as the decision will ultimately be based on your requirements, but I do recommend that you at least create a testing/learning project and try to use Sitecore membership.

Note that you can always use a 3rd-party system for storing your users and integrate that system with Sitecore by writing your own membership provider. These docs are a little out of date, but they may help to point you in the right direction and may help you understand the concept of how to write your own membership provider.

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