User Redirection on Login | Community
Skip to main content
Tuhin_Ghosh
Level 8
Sep 19, 2016 11:53 PM UTC
Solved

User Redirection on Login

Good Morning Community,

I have to redirect different user to different pages after login based on their profile, such as User A would be landed on /content/project/product/path1 and User B would be landed on /content/project/product/path2

Have anyone implemented something like this?
  
Now what I understand from this is we might need to override authentication handler for this, correct? I am also was thinking how the session would be managed? Like if user A logs in and then closes the browser and then again come back and hit the website he should be taken to the desired home page, would this be taken care by the OOTB AEM functionality or we need to write custom code for the same. I have not much experience on working with Login Module. So please bare with me if I have asked some silly questions.

Thanks and Regards,
Tuhin

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Sep 27, 2016 1:25 PM UTC

I got this reply from Eng: 

They could look at creating a universal authentication handler hook [1] should be a universal.

https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/bundle/src/main/java/com/adobe/acs/samples/authentication/impl/SampleLoginHookAuthenticationHandler.java

16 replies

kautuk_sahni
Employee
Sep 27, 2016 9:40 AM UTC

I will forward this to Scott

~kautuk

Translate
Kautuk Sahni
Tuhin_Ghosh
Level 8
Sep 27, 2016 2:22 AM UTC

Hi Scott/Members,

Did anyone find anything relevant to this problem statement?

Thanks

Tuhin

Translate
Tuhin_Ghosh
Level 8
Sep 22, 2016 6:22 AM UTC

Hi Scott/Community,

 

Did you get any chance to take a look into this ?

 

Thanks and Regards,

Tuhin

Translate
Tuhin_Ghosh
Level 8
Sep 20, 2016 12:50 AM UTC

Thanks Scott for the quick reply. That would really be helpful if we could get some implementation to start with and build from.

 

Thank and Regards,

Tuhin

Translate
smacdonald2008
Level 10
Sep 20, 2016 12:13 AM UTC

That sounds like a good use case - i think you are correct - you would need a custom handler for this. I will check tomorrow (Tues USA Time) to see if anyone has implemented this. 

Translate