protected void configure()

in src/main/java/org/openvasp/host/config/WebSecurityConfig.java [44:51]


    protected void configure(final AuthenticationManagerBuilder auth) throws Exception {
        val httpBasicAuth = hostConfig.getHttpBasicAuth();
        val encoder = PasswordEncoderFactories.createDelegatingPasswordEncoder();
        auth.inMemoryAuthentication()
                .withUser(httpBasicAuth.getName())
                .password(encoder.encode(httpBasicAuth.getPassword()))
                .roles(USER_ROLE);
    }