I need to throw RuntimeException for the KeycloakAuthenticationProvider . We are using SonarQube tool for code review purpose.
Here is the code
public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
KeycloakAuthenticationProvider keycloakAuthenticationProvider = keycloakAuthenticationProvider();
auth.authenticationProvider(keycloakAuthenticationProvider);
}
Now, SonarQube raises an issue for the same , Now what should be replaced to fix the sonar violation.