Integration with spring security