SAML authentication does not redirect to original page

Avatar

Avatar
Validate 1
Level 1
ankitg2807
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
ankitg2807
Level 1

Likes

0 likes

Total Posts

10 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
ankitg2807
Level 1

03-01-2021

Hi,

We have configured SAML Authn handler in our AEM 6.5 . We have a public page (ex - /content/test/mypage.html ) which has a link to login page , ex - /content/test/login.html.
Login page URL is configured in SAML Authentication handler & Sling Authentication Service.

 

On click of login link, we redirect to http://localhost:4503/content/test/login.html?saml_request_path=http://localhost:4503/content/test/mypage.html . This takes us to Okta IDP login page and Okta then submits SAML response to ACS service configured in AEM viz.  "/content/test/saml_login" but after that we get redirected back to the login page : http://localhost:4503/content/test/login.html?saml_request_path=http://localhost:4503/content/test/m...

instead of going to public page from where login was started http://localhost:4503/content/test/mypage.html. 

 

How can I redirect back to public page , instead of going to login page ?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,462 likes

Total Posts

3,328 posts

Correct reply

949 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

16-02-2021

Hi Is login.html is custom page or componnet.

What request and callback URL are you sending to IDP server. I if you send correct request url, SAML will redirect you to correct page.