Skip to content

Commit

Permalink
Merge pull request #51 from TigerAppsOrg/more-cas
Browse files Browse the repository at this point in the history
Add SvelteKit CAS implementation to resources
  • Loading branch information
joshuamotoaki authored Oct 19, 2024
2 parents b95dc57 + 6c5b5c2 commit 94a4ad8
Showing 1 changed file with 42 additions and 16 deletions.
58 changes: 42 additions & 16 deletions src/pages/resources.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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
Expand All @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 94a4ad8

Please sign in to comment.