feat(lti): add LTI 1.3 provider support for LMS integration#61
Open
nymulinfoinlet wants to merge 3 commits intomainfrom
Open
feat(lti): add LTI 1.3 provider support for LMS integration#61nymulinfoinlet wants to merge 3 commits intomainfrom
nymulinfoinlet wants to merge 3 commits intomainfrom
Conversation
Expand the quiz system from 4 to 8 question types to support deeper assessments. New types include partial credit scoring (matching, ordering), auto-graded code execution via code-sandbox service (coding), and AI-evaluated long-form answers with rubric-based feedback (essay). Closes #46 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add a new import-export module that enables students to bring in their existing flashcard collections and export study sets for use in other tools. - AnkiImportService: parses .apkg files (ZIP + SQLite), extracts notes with field separator parsing, strips HTML/media references, creates flashcards via existing FlashcardsService.createBulk - AnkiExportService: generates minimal .apkg files with proper Anki schema (col, notes, cards tables), Basic model template, and media stub - CsvImportService: handles CSV/TSV with auto-detected delimiters, quoted field parsing, header detection (Quizlet compatible) - CsvExportService: exports study set as CSV with front, back, tags columns - ImportExportController: four endpoints mounted on study-sets/:id (POST import/anki, POST import/csv, GET export/anki, GET export/csv) Dependencies: adm-zip, better-sqlite3 (+ @types) Closes #47 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Implement LTI 1.3 (Learning Tools Interoperability) so Studyield can be embedded as a learning tool inside Canvas, Moodle, Blackboard, and other LMS platforms. Uses manual OAuth2 + JWT implementation for clean NestJS integration instead of ltijs. - OIDC login initiation and launch callback endpoints - JWT verification against platform JWKS - User mapping (find-or-create by email on LTI launch) - Assignment and Grade Services (AGS) for posting scores back to the LMS - Admin API for registering/listing/deleting LMS platforms - JWKS endpoint for platforms to verify tool signatures - Database migration for lti_platforms and lti_contexts tables - Environment variables for LTI configuration Closes #48 Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jsonwebtokenandjwks-rsa, both already in the project) for clean NestJS integration rather than the Express-basedltijslibraryWhat's included
LTI Module (
backend/src/modules/lti/)POST /lti/login(OIDC initiation),POST /lti/launch(launch callback),GET /lti/keys(JWKS),POST /lti/grade(grade passback), plus admin CRUD for platformsRegisterPlatformDto,PostGradeDtowith class-validator decoratorsDatabase Migration
lti_platformstable: stores registered LMS platform credentials (client_id, auth/token/jwks endpoints)lti_contextstable: links LTI users to Studyield users with course/resource context for grade passbackOther changes
LtiModuleinapp.module.tsmain.tsLTI_ENABLED,LTI_KEY,LTI_SECRETto.env.exampleVerification
npx tsc --noEmitpasses with 0 errorsTest plan
POST /api/v1/lti/platformswith Canvas/Moodle credentialsGET /api/v1/lti/keysreturns valid JWK setPOST /api/v1/lti/gradeafter a quiz completionCloses #48
🤖 Generated with Claude Code