Skip to content

yale-swe/cas-auth-example-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yale SWE CAS Auth Example App

Overview

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.

Screen Shot 2022-02-13 at 9 56 36 PM Screen Shot 2022-02-13 at 9 56 46 PM Screen Shot 2022-02-13 at 9 56 46 PM

Running This App Locally

To run this app locally, there are some prerequisites:

Once you installed all the stuff above, follow these directions:

  1. Run yarn install:all. This will install all of the necessary npm packages.
  2. Open another terminal window and run yarn dev:server. This will run the REST API on port 4000.
  3. Open another terminal window and run yarn dev:client. This wll serve the client on port 3000.

After completing the steps above, you should be able to go to http://localhost:3000 on your browser and see the app.

Acknowledgements

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.

About

Example app for Yale CAS authentication.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published