Clear the user session from the cache, then redirect to the Harvard Key logout page.
This is the entrypoint to the authentication process. We will first save 'referer' header value in session so that we can later redirect back to the initiating page. Then we redirect the user to Harvard Key's login page
After the user logs in with HarvardKey, this endpoint will submit their authentication ticket back to Harvard Key, which will return their user data. We simply parse the data in to a User object and store it in the session.
Generated using TypeDoc
This controller implements the CAS 3.0 protocol, which is used to authenticate users with Harvard Key. The intended login flow is roughly as follows:
If the user has already logged in and their session cookie is still valid when they initially load the application, the user data stored in session will be used, bypassing this flow.
For more information, see: https://apereo.github.io/cas/4.2.x/protocol/CAS-Protocol-Specification.html#cas-protocol-30-specification