-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from TigerAppsOrg/more-cas
Add SvelteKit CAS implementation to resources
- Loading branch information
Showing
1 changed file
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,9 +24,11 @@ import HeaderShell from "../components/HeaderShell.astro"; | |
<main id="resources-page" class="space-y-4 w-11/12 max-w-5xl mx-auto my-8"> | ||
<h2 class="pt-16">TigerApps Resources Page</h2> | ||
<p> | ||
<strong>Purpose: </strong>List Princeton-specific data sources | ||
(along with helpful instructions on how to use these sources) for | ||
developers who want to create the next TigerApp. | ||
This page is a collection of resources for Princeton students | ||
looking to build apps for the Princeton community. If you have any | ||
questions or need assistance, please reach out to the TigerApps team | ||
at | ||
<strong>[email protected]</strong>. | ||
</p> | ||
<h2 id="possible-pre-requisites">Possible Pre-Requisites</h2> | ||
<h4 id="whitelist-for-cas-authentication-use"> | ||
|
@@ -52,10 +54,8 @@ import HeaderShell from "../components/HeaderShell.astro"; | |
<ul> | ||
<li>Under Requested By, enter your name.</li> | ||
<li> | ||
Under Service Name, enter your app's host, e.g. | ||
<a target="_blank" href="https://myapp.herokuapp.com" | ||
>https://myapp.herokuapp.com</a | ||
> | ||
Under Service Name, enter your app's host (e.g. | ||
https://myapp.herokuapp.com). | ||
</li> | ||
<li> | ||
Under More Information, type a sentence or two about your app's | ||
|
@@ -67,17 +67,18 @@ import HeaderShell from "../components/HeaderShell.astro"; | |
</li> | ||
</ul> | ||
<p> | ||
To use CAS Authentication in your app, you may follow this example | ||
from the TigerSnatch code. The documentation found <a | ||
To implement CAS, view the documentation found <a | ||
href="https://princeton.service-now.com/service?id=kb_article&sys_id=KB0012958" | ||
target="_blank">here</a | ||
> is also very helpful. | ||
> and/or use the following examples: | ||
</p> | ||
<ul> | ||
<li> | ||
Python CAS implementation: | ||
<a target="_blank" href="https://git.io/JRNLp" | ||
>https://git.io/JRNLp</a | ||
<strong> Python CAS implementation: </strong> | ||
<a | ||
target="_blank" | ||
href="https://git.io/JRNLp" | ||
aria-label="Python CAS implementation">link</a | ||
> | ||
<ul> | ||
<li> | ||
|
@@ -88,13 +89,38 @@ import HeaderShell from "../components/HeaderShell.astro"; | |
> | ||
in the header of your file. | ||
</li> | ||
<li> | ||
Triggering login and getting netID in Python: | ||
<a | ||
target="_blank" | ||
href="https://git.io/JRNtn" | ||
aria-label="Python login and netID retrieval" | ||
>link</a | ||
> | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
Triggering login and getting netID in Python: | ||
<a target="_blank" href="https://git.io/JRNtn" | ||
>https://git.io/JRNtn</a | ||
<strong> SvelteKit CAS implementation: </strong> | ||
<a | ||
target="_blank" | ||
href="https://github.com/TigerAppsOrg/tiger-study-2/blob/main/src/lib/db/cas.ts" | ||
aria-label="SvelteKit CAS implementation">link</a | ||
> | ||
<ul> | ||
<li> | ||
This implementation is specific to the TigerStudy app, | ||
so you'd need to make a few modifications. | ||
</li> | ||
<li> | ||
It also uses the v3 CAS protocol to get user info beyond | ||
just the netID. | ||
</li> | ||
<li> | ||
Contact Joshua Lau '26 ([email protected]) for | ||
assistance. | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
<h4 id="requesting-a-service-account">Requesting A Service Account</h4> | ||
|