Access Control on SPA Components (using React) | Community
Skip to main content
New Participant
April 28, 2022
Solved

Access Control on SPA Components (using React)

  • April 28, 2022
  • 1 reply
  • 525 views

 

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)

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
April 29, 2022

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