OKTA AEM integration in AMS | Community
Skip to main content
Level 7
September 17, 2025
Solved

OKTA AEM integration in AMS

  • September 17, 2025
  • 4 replies
  • 1333 views

Hello Team,

 

Anyone has implemented OKTA integration with AEM running on AMS? I am fine with this configuration steps on Author: https://experienceleague.adobe.com/en/docs/experience-manager-learn/foundation/authentication/okta-saml-integration

But, wanted to know about publish env. Sample scenario:

End user has created account in Okta. Then, the user logs in to my AEM live site(consider AMS has multiple publish env.) How to maintain the server session in sync with all publish env?  Note: This user is not an author. Will not get access to author env.

 

cc @arunpatidar  @aanchal-sikka  @veenavikraman  @sureshdhulipudi  @lukasz-m 

Thanks in advance.

Best answer by HrishikeshKagne

Hi @mahesh_gunaje ,

In AMS with multiple publish nodes, OKTA login works per node, but sessions are not auto-shared.
Put a load balancer/dispatcher with sticky sessions so each user stays on the same publish node.

Or use a shared session store/SSO token (e.g., OKTA JWT or SAML token validated on every request) instead of relying on AEM’s local session.

Avoid creating AEM users for site visitors-handle auth at the edge (dispatcher/CDN) or via OAuth bearer tokens.

Use sticky sessions or token-based validation, not AEM user sync, to keep sessions consistent across publish nodes.
Refer:

https://aem4beginner.blogspot.com/enabling-encapsulation-token-support-in

 

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-21491


https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/encapsulated-token

 

4 replies

arunpatidar
Community Advisor
Community Advisor
September 18, 2025
HrishikeshKagne
Community Advisor
HrishikeshKagneCommunity AdvisorAccepted solution
Community Advisor
September 18, 2025

Hi @mahesh_gunaje ,

In AMS with multiple publish nodes, OKTA login works per node, but sessions are not auto-shared.
Put a load balancer/dispatcher with sticky sessions so each user stays on the same publish node.

Or use a shared session store/SSO token (e.g., OKTA JWT or SAML token validated on every request) instead of relying on AEM’s local session.

Avoid creating AEM users for site visitors-handle auth at the edge (dispatcher/CDN) or via OAuth bearer tokens.

Use sticky sessions or token-based validation, not AEM user sync, to keep sessions consistent across publish nodes.
Refer:

https://aem4beginner.blogspot.com/enabling-encapsulation-token-support-in

 

https://experienceleague.adobe.com/en/docs/experience-cloud-kcs/kbarticles/ka-21491


https://experienceleague.adobe.com/en/docs/experience-manager-65/content/security/encapsulated-token

 

Hrishikesh Kagane
Level 7
September 25, 2025

Hi @hrishikeshkagne  @saravanan_dharmaraj  @sreenivasbr  @arunpatidar 

Sorry for late reply. I have referred this article: https://www.linkedin.com/pulse/how-configure-saml-local-aem-author-using-okta-aliaksei-baranouski/

Able to achieve the SSO configuration in AEM author side. As of now, I am not looking for publish env side.

Thanks all for your replies.

Saravanan_Dharmaraj
Community Advisor
Community Advisor
September 18, 2025
SreenivasBr
Level 4
September 19, 2025