Brendan Abolivier 0c6edf6b4d Our authentication is actually identification | 7 anos atrás | |
---|---|---|
.. | ||
.gitignore | 7 anos atrás | |
README.md | 7 anos atrás | |
form.html | 7 anos atrás | |
package.json | 7 anos atrás | |
server.js | 7 anos atrás |
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.