Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
17d140e
initial impl work for lti integration
bhunt02 Aug 9, 2025
1c5148b
Revert "initial impl work for lti integration"
bhunt02 Aug 13, 2025
7a1a347
Merge remote-tracking branch 'origin/main' into bridgette/canvas-lti-…
bhunt02 Aug 13, 2025
ee48e12
setup ltijs as an express application middleware placed at /api/v1/l…
bhunt02 Aug 13, 2025
5f58de8
commented out stupid auth cookie stuff cuz i know it's not going to w…
bhunt02 Aug 13, 2025
989bc50
mods needed for hosting on render (for testing LTI stuff)
bhunt02 Aug 14, 2025
86b6e5d
misc fixes start
bhunt02 Aug 17, 2025
f9a9e79
Merge remote-tracking branch 'origin/bridgette/bugfix/misc-fixes' int…
bhunt02 Aug 17, 2025
33cf304
eslint disable fix
bhunt02 Aug 17, 2025
09393c6
Merge remote-tracking branch 'origin/bridgette/bugfix/misc-fixes' int…
bhunt02 Aug 17, 2025
7e6fe84
type definitions & some minor changes. learning more about how this a…
bhunt02 Aug 18, 2025
9aa8ab3
starting reconfiguration w/ my fork of ltijs to use ts and typeorm
bhunt02 Aug 24, 2025
f361d29
Merge branch 'main' into bridgette/canvas-lti-integration
bhunt02 Aug 24, 2025
8b96a0b
Merge branch 'main' into bridgette/canvas-lti-integration
bhunt02 Aug 24, 2025
045654b
Merge branch 'main' into bridgette/canvas-lti-integration
bhunt02 Aug 27, 2025
1a98cf3
whew. lots of additions here, modifications, can't summarize
bhunt02 Aug 31, 2025
c765d3e
lots. of. stuff. again. summary: tested the canvas stuff locally and …
bhunt02 Sep 1, 2025
bf319ce
oauth pipeline "fully" impl'd w/ access token generation + invalidati…
bhunt02 Sep 1, 2025
ba21064
slight change to how frontend determines whether or not it should fet…
bhunt02 Sep 2, 2025
b99f5a7
* various updates, expansions on pages, access token management, etc.
bhunt02 Sep 5, 2025
868de4c
okay i'm not gonna bother with this commit message
bhunt02 Sep 7, 2025
5a85078
this file didn't go through i suppose
bhunt02 Sep 7, 2025
40d0283
Merge remote-tracking branch 'origin/main' into bridgette/canvas-lti-…
bhunt02 Sep 7, 2025
5926e58
better tests and stuff
bhunt02 Sep 7, 2025
78a9c1e
tests added + updated + functionality updated; impl'd the stuff neede…
bhunt02 Sep 9, 2025
67e5b03
test fixes (unit)
bhunt02 Sep 9, 2025
4a07d8d
integration test fixes + lti bugfix
bhunt02 Sep 9, 2025
e15af8b
some test updates + fixes, various code/logic updates
bhunt02 Sep 10, 2025
512362a
Merge remote-tracking branch 'origin/main' into bridgette/canvas-lti-…
bhunt02 Sep 10, 2025
4462e9a
merge w/ main
bhunt02 Sep 10, 2025
7f43fe6
mostly FE changes but some test fixes; iframe now calls for itself to…
bhunt02 Sep 11, 2025
d8a7283
oops accidental import
bhunt02 Sep 16, 2025
ce934af
more MW import fixes sigh
bhunt02 Sep 16, 2025
2a86fd0
little bits and pieces
bhunt02 Sep 17, 2025
54d3f69
across-the-board fixes and adjustments (having tested in actual, live…
bhunt02 Sep 19, 2025
2f00935
Merge branch 'main' into bridgette/canvas-lti-integration
bhunt02 Sep 19, 2025
2d3a767
remove console.log
bhunt02 Sep 19, 2025
b24ef71
Merge remote-tracking branch 'origin/main' into bridgette/canvas-lti-…
bhunt02 Sep 19, 2025
57f8c9e
db migration added, small general changes overall to some entities, etc
bhunt02 Sep 19, 2025
cf1b56c
Merge remote-tracking branch 'origin/bridgette/canvas-lti-integration…
bhunt02 Sep 19, 2025
d49f455
test fix
bhunt02 Sep 19, 2025
725338b
oops, didn't rename import
bhunt02 Sep 22, 2025
1691443
some updates
bhunt02 Sep 25, 2025
b8c3aac
Merge remote-tracking branch 'origin/main' into bridgette/canvas-lti-…
bhunt02 Sep 30, 2025
bb8bff1
some changes to accommodate quiz stuff & header bar change sync w/ lt…
bhunt02 Sep 30, 2025
cfbb533
almost an oversight w/ the auto-shib-link in the warning message lol
bhunt02 Sep 30, 2025
de80b63
add diff lti icon that fits better
bhunt02 Sep 30, 2025
269ba7e
new icons :> also some LMS integration QOL stuff (e.g., two profs w/ …
bhunt02 Sep 30, 2025
eaa95a1
oh token thing for org stuff as well
bhunt02 Sep 30, 2025
5331947
slight change to verification manual redirect stuff
bhunt02 Oct 1, 2025
461874d
add logos to public page exceptions
bhunt02 Oct 1, 2025
9b0c9a0
nvm, add public files exceptions type for this purpose (because it ne…
bhunt02 Oct 1, 2025
f04f517
lol oops i made the middleware cause infinite redirect again
bhunt02 Oct 1, 2025
3f36d0e
QOL changes AND: added model for tracking users w/ disassociated canv…
bhunt02 Oct 2, 2025
73a54c3
some mistakes were made but are now corrected
bhunt02 Oct 2, 2025
743cd58
forgot the lti user id in ON for the join that would've been bad
bhunt02 Oct 2, 2025
f3c6326
some rearranging + more tests
bhunt02 Oct 2, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ services:
- ./infrastructure/dev/docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
- pg:/var/lib/postgresql/data
environment:
- POSTGRES_MULTIPLE_DATABASES=prod,dev,test,chatbot,chatbot_test
- POSTGRES_MULTIPLE_DATABASES=prod,dev,test,chatbot,chatbot_test,lti,lti_test
env_file:
- ./packages/server/postgres.env # this is where the root user credentials are set. Please make this file with postgres.env.example as a base if you haven't already
# command: ["postgres", "-c", "log_statement=all"] # Uncomment this and re-run yarn dev:db:up to see all sql commands being ran on the container
Expand Down
18 changes: 12 additions & 6 deletions docs/ENVIRONMENT_VARIABLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@

**How to get:** Leave as-is from example (chatbot).

###### POSTGRES_LTI_DB

**Purpose:** database name for the postgres lti database

**How to get:** Leave as-is from example (lti).

###### POSTGRES_USER

**Purpose:** username of the root user for the postgres db
Expand Down Expand Up @@ -110,12 +116,6 @@

**How to get:** Can get it from https://developers.google.com/identity/sign-in/web/sign-in

###### GOOGLE_REDIRECT_URI

**Purpose:** same as GOOGLE_CLIENT_ID

**How to get:** `domain` + `/api/v1/auth/callback/google` (e.g. `http://localhost:3000/api/v1/auth/callback/google`)

###### GOOGLE_CLIENT_SECRET

**Purpose:** same as GOOGLE_CLIENT_ID
Expand Down Expand Up @@ -146,6 +146,12 @@

**How to get:** Ask me (Adam) and I can provide you with mine. NOTE: This is a different SENTRY_AUTH_TOKEN from the frontend one.

###### LTI_SECRET_KEY

**Purpose:** Used for encrypting LTI database entries and in general throughout the LTI process.

**How to get:** If testing with LTI locally, create any secret key. Make sure to not change it or else existing database rows in the LTI database can't be decrypted.

## client .env (place in packages/app)

###### NEXT_PUBLIC_RECAPTCHA_SITE_KEY
Expand Down
4 changes: 2 additions & 2 deletions infrastructure/dev/devProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const proxy = createProxyMiddleware({
target: 'http://localhost:3001',
router: {
'/api': 'http://localhost:3002',
'/admin-static': 'http://localhost:3002',
'/admin': 'http://localhost:3002/api/v1',
//'/admin-static': 'http://localhost:3002',
//'/admin': 'http://localhost:3002/api/v1',
'/socket.io': 'http://localhost:3002',
'/course': 'http://localhost:3001', // so that course/:cid/settings/chatbot_questions doesn't get proxied to /chat
'/chat': 'http://localhost:3003',
Expand Down
1 change: 1 addition & 0 deletions infrastructure/test_createdb.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CREATE DATABASE chatbot_test; GRANT ALL PRIVILEGES ON DATABASE chatbot_test TO helpme; ALTER DATABASE chatbot_test OWNER TO helpme;
CREATE DATABASE lti_test; GRANT ALL PRIVILEGES ON DATABASE lti_test TO helpme; ALTER DATABASE lti_test OWNER TO helpme;
CREATE DATABASE test; GRANT ALL PRIVILEGES ON DATABASE test TO helpme; ALTER DATABASE test OWNER TO helpme;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
"@babel/plugin-proposal-decorators": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-typescript": "^7.12.1",
"@eslint/js": "^9.32.0",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.32.0",
"@typescript-eslint/eslint-plugin": "^8.38.0",
"@typescript-eslint/parser": "^8.38.0",
"brace-expansion": "^2.0.2",
Expand Down
Loading
Loading