Integrating with spring security authentication