Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

SAML login does not redirect to original requested page


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:




Not sure what is going on here, any thoughts?

1 Accepted Solution


Correct answer by
Community Advisor
1 Reply


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.