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
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
AnmolBhardwaj1808
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Establish
View profile

Avatar
Validate 1
Level 1
AnmolBhardwaj1808
Level 1

Likes

0 likes

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Establish
View profile
AnmolBhardwaj1808
Level 1

21-07-2021

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

AEM aem6.5

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

109 likes

Total Posts

132 posts

Correct Reply

39 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile

Avatar
Boost 100
Level 6
Dipti_Chauhan
Level 6

Likes

109 likes

Total Posts

132 posts

Correct Reply

39 solutions
Top badges earned
Boost 100
Give Back 10
Affirm 25
Boost 50
Boost 25
View profile
Dipti_Chauhan
Level 6

21-07-2021

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

Answers (0)