Skip to main content

flutter3d_lti 0.8.0 copy "flutter3d_lti: ^0.8.0" to clipboard
flutter3d_lti: ^0.8.0 copied to clipboard

LTI 1.3 launch and xAPI reporting: OIDC login, id_token verification against a platform's JWKS, an Assignment and Grade Services client, and an xAPI statement client — no shelf, no jaspr, no Flutter.

flutter3d_lti #

LTI 1.3 launch and xAPI reporting, for the edu-03 line of doc/tooling-plan.md (doc/edu-03-lti-plan.md has the full plan). It is plain Dart, without shelf, jaspr or Flutter, so a service that only needs to verify a launch or file a grade does not have to carry any of them.

What is here #

  • LtiPlatformConfig holds one LMS registration (issuer, client ID, deployment ID, JWKS URL, auth-login URL), read once from environment variables the same way cloud/lessons/cloud/server already read theirs.
  • OidcLoginInitiation builds the redirect for LTI's OIDC third-party login initiation, with a fresh state/nonce per login.
  • LtiLaunchValidator verifies an incoming id_token's signature against the platform's JWKS (cached by kid), its issuer/audience/expiry, and the state/nonce from the login that started it, then parses the result into LtiLaunchClaims.
  • AgsClient gets a Bearer token from the platform through a client-credentials grant this tool signs itself (LtiToolCredentials), then posts an AgsScore to a line item's /scores endpoint. It caches the access token until the token is close to expiring.
  • XapiClient PUTs an XapiStatement (actor/verb/object/result) to a Learning Record Store, keyed by the statement's own UUID so a retried submission cannot double a student's record.

What is not here yet #

  • cloud/lti (lti-03): the service that runs the /login and /launch routes over this package.
  • The wire from check to both clients above (lti-04). A launch's quiz result does not yet reach AgsClient/XapiClient on its own; see doc/edu-03-lti-plan.md §2 and §3 for the order.

Tests #

dart test

test/support/test_platform.dart generates a real RSA key pair per test run and signs real id_tokens with it, so LtiLaunchValidator is tested against an actual RS256 signature and an actual JWKS document rather than mocks.

0
likes
140
points
47
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

LTI 1.3 launch and xAPI reporting: OIDC login, id_token verification against a platform's JWKS, an Assignment and Grade Services client, and an xAPI statement client — no shelf, no jaspr, no Flutter.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#lti #xapi #education

License

MIT (license)

Dependencies

dart_jsonwebtoken, http, pointycastle

More

Packages that depend on flutter3d_lti