set the strategy of basic authentication.