0

I have been integrating my web application developed in spring with spring saml for single sign on. Followed the tutorial on this link.

Its working as expected. Authenticating user and redirecting to my application. The only issue I'm facing is on all requests, like on clicking tabs in menu bar or even on clicking some internal links, the application calls idp for authenticating user. And because of that ajax-jquery calls in the application are breaking with error : "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'sp_host_name' is therefore not allowed access."

My configuration is same as what is explained in the link mentioned. Please help if someone knows solution to this problem.

Vladimír Schäfer
  • 15,375
  • 2
  • 51
  • 71
Mahesh Gosemath
  • 416
  • 1
  • 4
  • 12
  • Normally only the first request is authenticated with SAML. Then an auth cookie is set which is used for subsequent requests. Don't know the details for spring though. – Anders Abel Feb 11 '14 at 12:59
  • thanks for your response. I do understand that but the problem is with spring-security-3.1.1. Got this from http://stackoverflow.com/questions/17118623/spring-security-and-nested-filterchainproxy-writing-saml-service-provider followed the solution and upgraded security libraries to 3.1.4 and now my application is working as expected. – Mahesh Gosemath Feb 12 '14 at 06:45

0 Answers0