text: //if dialog login UI is used like here, then dialogLoginPage property can be used to change default login form.
  require(["sbt/dom","sbt/config"], function(dom,config) {
  	var ep = config.findEndpoint("connections");
  	config.Properties["loginUi"] = "dialog";
  	config.Properties["dialogLoginPage"] = "authenticator/templates/ConnectionsLoginDialog.html";
  	ep.authenticate({ forceAuthentication: true }).then(
  		function(response){
  			dom.setText("content","You successfully logged in to connections");	
  		},
  		function(){
  			dom.setText("content","You are not logged in to connections");
  		}
  	);
  });
  