implement basic authentication config