Brendan Abolivier c49d6c6c7c Removing vim's temporary files | преди 8 години | |
---|---|---|
.. | ||
.gitignore | преди 8 години | |
README.md | преди 8 години | |
form.html | преди 8 години | |
package.json | преди 8 години | |
server.js | преди 8 години |
This server handles user authentication. In our very simple case, it will only ask for an username, but we can think of improving it to interact with a LDAP server. Once the user authenticated itself, it server will place a Macaroon in the user's browser, with a status caveat, depending on the route used:
/
, they will have the "student" status./teacher
, they will have the "teacher" status.Just run npm install
in this directory to install the dependencies, then run either npm start
or node server.js
to start the server.