Helper tool to get the credentials for the SomToday API using SSO login
Feel free to use the code in your own project.
- Clone the repository
git clone https://github.com/Underlyingglitch/SomtodaySSOLogin - Run
npm installto install dependencies
- Get the UUID for your school from
https://servers.somtoday.nl/organisaties.json
- Run
node run {uuid}and replace {uuid} by the uuid for your school - A browser window will open with the login screen for your school. NOTICE: This is the real login window and is therefore secure. The code is open source, so you can verify I'm not doing anything with the credentials. They don't end up in de script anywhere and are sent to Microsoft over secure HTTPS only
- When you arrive at the last step, the browser will automatically close
- The token will be found in the
token.jsonfile that is automatically created