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

AEM 6.3 CUG : Authentication redirecting to "/" when accessing links from webserver url

Avatar

Avatar
Boost 1
Level 1
mayank_saklech1
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
mayank_saklech1
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
mayank_saklech1
Level 1

09-08-2019

All - I am trying to implement CUG for a website. I enabled authentication on root node of my website and added correct group for permissions. This all setup works fine when i access links on publish. I am redirected to login page and once i login, i am able to see correct page. But same scenario sporadically works from webserver url. I have added this config in dispatcher.any file: /allowAuthorized "0" for all pages. I can confirm that pages are not being cached. I am seeing below error in log file:

09.08.2019 11:09:45.379 *WARN* [qtp42840439-9676] org.apache.sling.auth.core.AuthUtil isRedirectValid: Redirect target 'http://<webserver_url>/content/abc/en/home.html' must not be an URL

09.08.2019 11:09:45.387 *ERROR* [qtp42840439-10299] com.day.crx.security.token.impl.TokenAuthenticationHandler Redirect target 'http://<webserver_url>/content/abc/en/home.html' is invalid, redirecting to /

This is causing issue as users are redirected to "/" instead of a requested page.

Did anyone face above issue? Any pointers/ help will be highly appreciated.

Regards,

Mayank

Accepted Solutions (0)

Answers (0)