Make endpoint, username and password configurable