protected void configureJdbcAuthenticationProvider ( final AuthenticationManagerBuilder auth , final MonitorProperties . Endpoints . JdbcSecurity jdbc ) throws Exception { val cfg = auth . jdbcAuthentication ( ) ; cfg . usersByUsernameQuery ( jdbc . getQuery ( ) ) ; cfg . rolePrefix ( jdbc . getRolePrefix ( ) ) ; cfg . dataSource ( JpaBeans . newDataSource ( jdbc ) ) ; cfg . passwordEncoder ( PasswordEncoderUtils . newPasswordEncoder ( jdbc . getPasswordEncoder ( ) ) ) ; }
Configure jdbc authentication provider .