Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

SAML login does not redirect to original requested page

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor

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... for details.