Here you find an example for a possible user authentication, failing the connection if the username and password are not given, rejecting the connection if the given credentials do not match and finally accepting the connection if the credentials are ok.
To test this example, use the FLDev Flash project from the repository. With it you can specify comma separated arguments for a NetConnection. Run the auth example with
$> node example/auth.js
and then try connecting to the ip you are running the example on. You should the a message like Connection 4 status: NetConnection.Connect.Failed in the bottom console. Now try giving the connection the arguments "name,password" and you should be successfully connected. Try specifiying wrong credentials and you should see a NetConnection.Connect.Rejected message.