We build the flow using the code based on [email protected]:passport/express-4.x-local-example.git. The example demonstrates how to use Express 4.x and Passport to authenticate users using a username and password by form-based authentication.
We customize the flow for cassandra database.
Start the server using Jade template.
$ node server.js
Start the server using EJS template.
$ node server_ejs.js
Open a web browser http://localhost:3000/
Log in using username kitty
and password hello
.
Cassandra: 2.0.11 (some parts in datastax's node.js driver for Cassandra 3.0 have glitches at this moment, 2015-11-24)
cqlsh: 4.1.1
CQL spec 3.1.1
Thrift protocol 19.39.0
Regards,
Hao Zhuang, and Zhou Fang
UCSD CSE
2015 Nov.