Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Ask user to login when opening a certain page in publish instance

AnmolBhardwaj1808
Level 2
Level 2

Hi All,

 

I have a requirement where I need to ask a user to login or redirected to the AEM login page whenever they try to open a page within a certain hierarchy. ( If they are not logged into AEM )

Example:

we-retail

/en

/en/home

en/home/about-us

 

Now I need to redirect the user to the login page whenever they try to access any page which is a child page of /en.

i.e. If user goes to /content/us/home, they should see the page .

But If they try to go to /content/en/home or /content/en/home/about-us or /content/en/.. they should be redirected to the login page (if they are not logged in, if they are , they should be able to see the page without logging in)

 

Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution
Dipti_Chauhan
Correct answer by
Community Advisor
Community Advisor

Hi @AnmolBhardwaj1808 

You can use CUG for your requirement.

more details you can find here

https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/cug.html?lang=e...

 

please go through this and let us know if you need any further information.

Thanks

dipti

View solution in original post

2 Replies
Dipti_Chauhan
Correct answer by
Community Advisor
Community Advisor

Hi @AnmolBhardwaj1808 

You can use CUG for your requirement.

more details you can find here

https://experienceleague.adobe.com/docs/experience-manager-64/administering/security/cug.html?lang=e...

 

please go through this and let us know if you need any further information.

Thanks

dipti

View solution in original post