SAML login does not redirect to original requested page | Community
Skip to main content
Level 2
October 18, 2022
Solved

SAML login does not redirect to original requested page

  • October 18, 2022
  • 1 reply
  • 551 views

Good morning all,

Apologies if this is a dumb question, I am new to AEM.

 

Using AEM 6.5

I have set up a SAML Authn implementation using Okta, adding some OSGi, and extending the AuthenticationInfoPostProcessor, all of that appears to be working just fine.

I have a site, with just a single protected page, that is working as expected.

When I attempt to extend the implementation to protect another site I am running into some unexpected behavior.

 

trying to go to site1.com/protected.html redirects me to okta for login, back to my postProcess, and then to site1.com/protected.html

trying to go to site2.com/(any page, all are protected) redirects to okta, back to my postProcess then strangely to site1.com (not even the protected page)

 

In my OSGi I have:

defaultRedirectURL="/"

path="[/content/site1,/content/site2]"

 

Not sure what is going on here, any thoughts?

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 rawvarun

You need to set okta (IDP) config for your site2.com as well.

Check https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/authentication/saml-2-0.html?lang=en for details.

1 reply

rawvarun
Community Advisor
rawvarunCommunity AdvisorAccepted solution
Community Advisor
May 31, 2023

You need to set okta (IDP) config for your site2.com as well.

Check https://experienceleague.adobe.com/docs/experience-manager-learn/cloud-service/authentication/saml-2-0.html?lang=en for details.