CAS stands for Central Authentication System. When creating apps for this course, you may find the need to authenticate students using Yale's CAS (ex. CourseTable). This example project uses Yale CAS to implement a simple sign-in/sign-out.
To run this app locally, there are some prerequisites:
Once you installed all the stuff above, follow these directions:
- Run
yarn install:all
. This will install all of the necessary npm packages. - Open another terminal window and run
yarn dev:server
. This will run the REST API on port4000
. - Open another terminal window and run
yarn dev:client
. This wll serve the client on port3000
.
After completing the steps above, you should be able to go to http://localhost:3000
on your browser and see the app.
Quick thanks to the developers of CourseTable for making their fork of sadne/passport-cas
open-source! If you want to see Yale CAS auth implementation in a production app, check out the CourseTable monorepo.