Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to manage user creation and login on a site

Avatar

Level 3

Hello everyone,

I've already looked for it in a lot of places, but I couldn't find a tutorial or guiding page about creating a user register page on my site and then the login mechanism with that information.

Let me clarify: I want to create a website that can only be viewed by logged users and in this site the homepage should show a register process.

So, to be as clear as possible, what I want is:

- Create a new website from scratch;

- Create a page on this website that can only be viewed by a logged user (on my website, not on AEM);

- Provide a login component and a page to register users;

- To know where in the content repository is the users data stored and how to configure my login component to read this data and authenticate the user;

 

I've already saw the login foundation component and how it is used on Geometrixx, but without succeed in understand the process (couldn't find a new registered user on jcr, couldn't login with a new created user). So, is there any guide out there or some of you guys can tell me how can I create a login on my website, where the user data will be stored, how can I manage this, etc. etc.?

Obs: I've also looked into Closed Groups, but didn't find a resource to teach me how to properly use it. If I put a login component on my page and create a closed group with a user on User Management, even configuring (or without this configuration) on the root page about the closed group, the login component can't find my user.

1 Accepted Solution

Avatar

Correct answer by
Level 9

There is not much change in documentation, but u can get latest from http://docs.adobe.com/docs/en/aem/6-0/administer/security/identity-management.html

Users will be stored at /home/users 

You  can create fully featured website using following link

http://dev.day.com/docs/en/cq/current/howto/website.html

You can assign permissions to your pages and components to restrict access to your pages using following link

http://docs.adobe.com/docs/en/aem/6-0/administer/security/security.html

You need to create pages for Login and registration account and drop the components, pls look how it is done for

geometrixx login http://localhost:4502/cf#/content/geometrixx/en/toolbar/account/login.html

geometrixx registration http://localhost:4502/cf#/content/geometrixx/en/toolbar/account/register.html

Your users data is stored in /home/users/.... CQ5 will take care of reading and checking for pages permissions before displaying to users.

View solution in original post

6 Replies

Avatar

Level 3

Yes, I did.

Notice that this page is about Adobe CQ 5.4, and only have info on Geometrixx login functionality. I have created a user login on Geometrixx and coudn't find it anywhere in the content repository (even with a query on the email provided). 

So, even with the links to other pages (and I did read those pages, eg. Closed Groups or Personalization) unfortunately, this page doesn't helped me :(

Avatar

Correct answer by
Level 9

There is not much change in documentation, but u can get latest from http://docs.adobe.com/docs/en/aem/6-0/administer/security/identity-management.html

Users will be stored at /home/users 

You  can create fully featured website using following link

http://dev.day.com/docs/en/cq/current/howto/website.html

You can assign permissions to your pages and components to restrict access to your pages using following link

http://docs.adobe.com/docs/en/aem/6-0/administer/security/security.html

You need to create pages for Login and registration account and drop the components, pls look how it is done for

geometrixx login http://localhost:4502/cf#/content/geometrixx/en/toolbar/account/login.html

geometrixx registration http://localhost:4502/cf#/content/geometrixx/en/toolbar/account/register.html

Your users data is stored in /home/users/.... CQ5 will take care of reading and checking for pages permissions before displaying to users.

Avatar

Level 3

Mshajiahmed,

A few questions to help me better understand and make this work:

- To replicate users created on publish, I need a reverse replication agent on Publish, right? And I have one, only it doesn't work. I can't even enable it. Tried with the OOB one and with one I've created.

- I've already created users (even on author) on Geometrixx and Geometrixx Outdoors and I can even log-in with them, but they don't appear anywhere on the JCR. No, they are not in /home/users or anywhere like this. Can you help me find them?

- In general, it's very nice on Geometrixx. On Geometrixx. I kind of begin to understand the term "CRXDespair" when a simple thing like creating a Register page and a Login function in a custom website (the link you gave to "Create a functional website" has nothing related to Login, I created this sometimes in every version from 5.4 to today) feels like hell. Maybe I should change my approach, and build it with fixed html on a template?

 

Thanks in advance,

Matheus Barreto.

Avatar

Level 3

Mat.Barreto wrote...

 

Mshajiahmed,

A few questions to help me better understand and make this work:

- To replicate users created on publish, I need a reverse replication agent on Publish, right? And I have one, only it doesn't work. I can't even enable it. Tried with the OOB one and with one I've created.

- I've already created users (even on author) on Geometrixx and Geometrixx Outdoors and I can even log-in with them, but they don't appear anywhere on the JCR. No, they are not in /home/users or anywhere like this. Can you help me find them?

- In general, it's very nice on Geometrixx. On Geometrixx. I kind of begin to understand the term "CRXDespair" when a simple thing like creating a Register page and a Login function in a custom website (the link you gave to "Create a functional website" has nothing related to Login, I created this sometimes in every version from 5.4 to today) feels like hell. Maybe I should change my approach, and build it with fixed html on a template?

 

Thanks in advance,

Matheus Barreto.

 

Although marked as answered, it will help me a lot if anyone could answer these last questions. 

Also, a new question:

I've changed the page template on Geometrixx so that I could use it on my custom site. Then, copied the "geometrixx-outdoors/en/user/register" page on my website and registered a new user. The page alow me to sign-in, whats amazing, but if I run a QueryBuilder searching for, in example, the email registered, I get no results (the query: http://localhost:4502/bin/querybuilder.json?property.value=cq%3amobarreto, as the email is "mobarreto@live.com", tryed to add an "*" or the rest of the email in the end, same result; and the result of this is: {"success":true,"results":0,"total":0,"offset":0,"hits":[]}). So, where can I find this user data on the JCR?

 


Thank you guys in advance,

Matheus Barreto.

 

 

 

EDIT: Solved, tried again to configure the form component and could find the user node where I configured on the "Action Configuration". 

Topic solved.

Avatar

Level 10

Hi Matheus,

 All the users will be created under /home/users