User Redirection on Login | Community
Skip to main content
Tuhin_Ghosh
New Participant
September 19, 2016
Solved

User Redirection on Login

  • September 19, 2016
  • 15 replies
  • 7074 views

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.
Best answer by smacdonald2008

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

15 replies

kautuk_sahni
Employee
September 27, 2016

I will forward this to Scott

~kautuk

Kautuk Sahni
Tuhin_Ghosh
New Participant
September 27, 2016

Hi Scott/Members,

Did anyone find anything relevant to this problem statement?

Thanks

Tuhin

Tuhin_Ghosh
New Participant
September 22, 2016

Hi Scott/Community,

 

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

 

Thanks and Regards,

Tuhin

Tuhin_Ghosh
New Participant
September 20, 2016

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

smacdonald2008
New Participant
September 20, 2016

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.