Expand my Community achievements bar.

SOLVED

Access Control on SPA Components (using React)

Avatar

Level 3

 

Hi,

 

After creating a login page in AEM, what is the best approach to manage access control on the components in the pages.

 

for example:

We have following 2 users,

user 1

user 2

 

AEM Page 1

  • Component 1 (User 1 and User 2 both can view)
  • Component 2 (User 1 only)
  • Component 3 (User 2 only)

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

we achieved this by creating the cug container component which basically a wrapper that has a dialog to add cug groups. Inside this other component can be drag and drop.

Make sure you load this using ajax at the run time otherwise you will have caching issues.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

we achieved this by creating the cug container component which basically a wrapper that has a dialog to add cug groups. Inside this other component can be drag and drop.

Make sure you load this using ajax at the run time otherwise you will have caching issues.



Arun Patidar