SAML integration reauest path cookie

Avatar

Avatar
Give Back 3
Level 2
ashisht85509954
Level 2

Likes

3 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 3
View profile

Avatar
Give Back 3
Level 2
ashisht85509954
Level 2

Likes

3 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 3
View profile
ashisht85509954
Level 2

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
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
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
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

09-07-2018

Nice answer!

Avatar

Avatar
Give Back 3
Level 2
ashisht85509954
Level 2

Likes

3 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 3
View profile

Avatar
Give Back 3
Level 2
ashisht85509954
Level 2

Likes

3 likes

Total Posts

24 posts

Correct reply

1 solution
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 1
Boost 3
View profile
ashisht85509954
Level 2

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
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile

Avatar
Give Back 50
Employee
Kunwar
Employee

Likes

65 likes

Total Posts

253 posts

Correct reply

72 solutions
Top badges earned
Give Back 50
Give Back 5
Give Back 3
Give Back 25
Give Back 10
View profile
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