Update CustomAuthenticationProvider.groovy