Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  • Main configuration is located in
  • Custom extended is used to add hidden field with CSRF token. 
  • Ajax client configuration is done in where we inject CSRF token for all POST AJAX requests.
  • Custom is used for simple redirect to login page when session is invalid or doesn't contain correct CSRF token.

Web services are not protected by CSRF. Configuration is located in, in fact spring security ignores web services URL's. Security for services is handled manually via CXF interceptors.


To disable CSRF protection one has to create application.yml inside midpoint.home folder. Add following key to this configuration file.