documentation and spring security configuration adapted