A web service for self registration of users in Folio. One path for public users and one path for SAML authenticated users which are authorized against a user directory to lookup which sort of account should get created.
- Users need an email address and a swedish personnummer (social security number) to create an account
- Public users get blocked for check out so that they identify them selves at the library first.
- Authenticated users are not blocked.
Users have the ability to reset their password via email.
For testing purposes you can configure your setup to point to the different test servers available from the Folio project found in the Folio wiki.
SAML authentication testing can be done against https://samltest.id. Regarding authorization you need to write your own implementation for your directory.
Before getting started, make sure you have installed Node.js (preferably the LTS version) and Visual Studio Code.
- Clone this repository.
- Run npm install from inside the directory.
- Make a copy of .env_example.
- Change the name of the copied file to .env
- Add configurations to the .env file (you can try the project without adding anything).
- Open the folder in Visual Studio Code.
- Open app.js and click f5 to run the project.
- Visit localhost:8080 in your browser.