SAML integration reauest path cookie

Avatar

Avatar

ashisht85509954

Avatar

ashisht85509954

ashisht85509954

07-07-2018

Recently i integrated SAML(OOTB) with my AEM application, but i am facing issue of saml_request_path cookie. My requirement is once i click on sign in link(/system/sling/login), it should reirect to IDP and after successful login it should land to same page from where this link was clicked.

Issue i am facing is after login it always recirect to application root path(/).

I have seen on forums that saml_request_path cookie is responsible for that, but i am not sure how can i override this cookies because it is handled by OOTB AuthenticationHandler.

Any help is much appreciated.

Replies

Avatar

Avatar

Kunwar

Employee

Avatar

Kunwar

Employee

Kunwar
Employee

09-07-2018

This is expected as /system/sling/login doesn't actually exist in the system and per the SAML config and the attribute 'Default redirect' points to / hence the redirect you see.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

09-07-2018

Nice answer!

Avatar

Avatar

ashisht85509954

Avatar

ashisht85509954

ashisht85509954

09-07-2018

Thanks for response Kunvar, can you please let me know the possible solution so that landing page should be the page from where login link is clicked?

Avatar

Avatar

Kunwar

Employee

Avatar

Kunwar

Employee

Kunwar
Employee

10-07-2018

For someone reason(either cookie getting dropped or an extra redirect happening somewhere) could causing this. I'd suggest to open a daycare case so that someone can debug this dedicatedly.

Provide the following information once you raise the case :

- HAR file for a full cycle of login cycle

- SAML config