Finally fixed the openId login with spring security