Unsecured Page or anonymous page access | Community
Skip to main content
suresh_kumar_ve
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

Unsecured Page or anonymous page access

Hi All, I am working on AEM 5.6.1 and trying to grant anonymous/unsecured(access the page without logging in) page access in author instance. 

Had granted read permission to the test page as shown in the attachment[img]access.jpg[/img]

Please suggest what is that I need to modify to get this accessed by anonymous users without logging into the CQ author instance.

Thanks.

-Suresh Kumar.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

What is your usecase? Seems something not correct to have everyone access for few pages at author instance. 

However along with permission You need to select "Allow Anonymous Access" at http://localhost:4502/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator

7 replies

anupampat
New Participant
Mar 29, 2019 6:08 AM UTC

I was able to apply the anonymous access to a single page, but the clientlibs are not loading/blocked, not even the OOTB ones e.g. /etc/clientlibs/foundation/personalization/kernal due to the anonymous access, I suppose these urls(clientlibs) also need anonymous access, there are at-least 15 of them blocked. I provided the access to each which is a tiring job, and could still not achieve the access properly as it asked to login when I added  /etc/clientlibs/foundation/personalization/kernal, any way I can achieve this?

Translate
Sham_HC
Sham_HCAccepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

What is your usecase? Seems something not correct to have everyone access for few pages at author instance. 

However along with permission You need to select "Allow Anonymous Access" at http://localhost:4502/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator

Translate
suresh_kumar_ve
Level 2
Oct 16, 2015 2:28 AM UTC

fantastic !! Thanks Sham, it worked fine and also I have narrowed the read permission only to the test page, removing read access for content also and still it works fine.

UseCase: We have healthcheck impl for which we need the script to access an static AEM page anonymously to check if the system is up and running fine(heartbeat).

Translate
Sham_HC
Level 10
Oct 16, 2015 2:28 AM UTC

For use case You can use existing page [1] for it depending on aem version.

[1]  http://<host>:<port>/libs/cq/core/content/login.html

http://<host>:<port>//libs/granite/core/content/login.html

Translate
suresh_kumar_ve
Level 2
Oct 16, 2015 2:28 AM UTC

Thanks Sham, agreed with your response.

But, in my case the client needs the url strictly to be

http://[host]:8080/health/heartbeat

- which does not contain any /content,

- should run on specified port by their standard

- no extension 

- anonymously accessible

So, I had to create sling match for this url and anonymously accessible as you briefed.

Please clarify, is there any security threat if I have enabled anonymous read access to few required pages in our environments ?

Thanks.

Suresh.

Translate
Sham_HC
Level 10
Oct 16, 2015 2:28 AM UTC

Configure vanity url with /health/heartbeat

Translate
suresh_kumar_ve
Level 2
Oct 16, 2015 2:28 AM UTC

Sham, I tried configuring vanity URL with "/health/heartbeat" but it does not work but it works if it is just one word ex: heartbeat

and from Forum I saw it is a known issue with Vanity URL having restrictions and so went ahead with sling:internalRedirect.

Translate