code: function(next) {
        var secured = targetServiceProperties.security.indexOf('none') === -1;
        if (!secured) return next(); // no security
        if (!passphrase || passphrase === '') {
          if (targetServiceProperties.favorite) next();
          else next(new Error('No passphrase supplied for secured network'));
        } else {
          //configFiles.create(ssid, passphrase, next);
          passphraseSender = function(service, fields, cb){
            debug('RequestInput');
            if(fields["Passphrase"] != null) {
              cb({"Passphrase": passphrase});
            }
          }
          self.connman.Agent.on('RequestInput', passphraseSender);
          next();
        }
      }
docs: handle security