AEM OKTA : Okta login page where a spinner appears indefinitely | Community
Skip to main content
January 29, 2024
Solved

AEM OKTA : Okta login page where a spinner appears indefinitely

  • January 29, 2024
  • 3 replies
  • 1301 views

Hi Everyone,

In the context of the AEM (Adobe Experience Manager) integration with Okta, if you are encountering a situation where the OKTA login page displays an endless spinner, I would appreciate any insights or suggestions you may have based on your prior experience with similar errors. Please share your thoughts and ideas on how to address this issue effectively.

 

 

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 Sudheer_Sundalam

@sateesh583 ,

Try configuring the CORS Policy OSGI configuration on the server where the OKTA authentication is happening.
https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/security/understand-cross-origin-resource-sharing.html?lang=en

 

Allowed Origin value should be your OKTA IDP domain name.

 

 

3 replies

Sudheer_Sundalam
Community Advisor
Sudheer_SundalamCommunity AdvisorAccepted solution
Community Advisor
January 29, 2024

@sateesh583 ,

Try configuring the CORS Policy OSGI configuration on the server where the OKTA authentication is happening.
https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/security/understand-cross-origin-resource-sharing.html?lang=en

 

Allowed Origin value should be your OKTA IDP domain name.

 

 

kautuk_sahni
Community Manager
Community Manager
January 30, 2024

@sateesh583 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
February 11, 2024

Thank you for your all inputs @kautuk_sahni  @sudheer_sundalam @arunpatidar . 

 

The issue resides with the CORS configuration after adding the below configuration the OKTA infinite spinner is resolved. 

 

Config:  com.adobe.granite.cors.impl.CORSPolicyImpl~wknd.cfg.json

{
"alloworigin": ["null","https://dev-92XXXXX-admin.okta.com"],
"allowedpaths": [
".*/content/wknd/us/en/saml_login"
],
"supportedheaders": [
"Authorization",
"Origin",
"Accept",
"X-Requested-With",
"Content-Type",
"Access-Control-Request-Method",
"Access-Control-Request-Headers"
],
"alloworiginregexp": [],
"supportedmethods": [
"POST"
]
}
 
Among all these main property is "Authorization" for this spinner issue. 
 
Thank you all ...
Sateesh Anasani.