http://expressjs.com/api.html#basicAuth
Am Donnerstag, 25. Oktober 2012 11:23:08 UTC+2 schrieb gng:
>
> Hi,
>
> Can anyone provide some sample code to show how a node http server can be
> secured using basic username/password authentication. Here's my sample
> server :-
>
> var express = require('express');
> var server = express.createServer();
>
> server.use(express.static(__dirname + '/public'));
> server.listen(80);
>
> I've seen packages such as http-auth etc ...
>
> Thanks in advance !
>
>
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en