Add LTI 1.3 support with OIDC login and JWT authentication#2
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
Co-authored-by: yuttie <158553+yuttie@users.noreply.github.com>
…support Co-authored-by: yuttie <158553+yuttie@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add LTI 1.3 support. Only minimal implementation is required.
Add LTI 1.3 support with OIDC login and JWT authentication
Sep 4, 2025
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.
This PR implements minimal LTI 1.3 support alongside the existing LTI 1.0 functionality, providing a complete Learning Tools Interoperability solution.
What's Changed
New LTI 1.3 Endpoints
GET /lti13/login- OIDC login initiation endpoint that handles the first step of LTI 1.3 authentication flowPOST /lti13/launch- JWT token verification and launch handler for completing LTI 1.3 launchesKey Features
Example Usage
The LTI 1.3 login endpoint accepts standard OIDC parameters:
curl "http://localhost:3000/lti13/login?iss=https://platform.example.com&login_hint=testuser&target_link_uri=http://localhost:3000/lti13/launch"This returns a proper OIDC redirect:
Implementation Details
Dependencies Added
jsonwebtoken- JWT token handling and verificationrsa- RSA key operations for JWT signaturesserde_json- JSON serialization (already available)The implementation maintains the lightweight nature of the original application while providing modern LTI 1.3 compatibility for integration with contemporary learning management systems.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.